]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix idle handling in monitor mode
authorFelix Fietkau <nbd@openwrt.org>
Sat, 23 Feb 2013 17:40:57 +0000 (18:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Feb 2013 20:53:01 +0000 (21:53 +0100)
commit6c0ee306b74b0c1795e5ec861f64c7499b5a4b7b
tree79dcf58cb041956eafe8ca8a07321e48581e1ec5
parentf9108b9da3c6e285824bcf70fc4dbe5d1e89172b
mac80211: fix idle handling in monitor mode

When the driver does not want a monitor mode VIF, no channel context is
allocated for it. This causes ieee80211_recalc_idle to put the hardware
into idle mode if only a monitor mode is active, breaking injection.

Fix this by checking local->monitors in addition to active channel
contexts.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c