Search Linux Wireless

Re: [PATCH v2] cfg80211: fix set_monitor_enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2012-07-12 at 18:05 +0200, Johannes Berg wrote:

>  	if (!err && ntype != otype && netif_running(dev)) {
> -		cfg80211_update_iface_num(rdev, ntype, 1);
> -		cfg80211_update_iface_num(rdev, otype, -1);
> +		cfg80211_update_iface_num(rdev, otype,
> +					  CFG80211_IFACE_DOWN);
> +		cfg80211_update_iface_num(rdev, ntype,
> +					  CFG80211_IFACE_PRE_UP);
> +		cfg80211_update_iface_num(rdev, ntype,
> +					  CFG80211_IFACE_UP);

Ok actually the other way around like it was previously makes more sense
to avoid spurious going into/out of monitor...

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux