]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: Fix tracking of beaconing for multi-vif
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 22 Oct 2013 11:11:17 +0000 (14:11 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Oct 2013 14:11:07 +0000 (15:11 +0100)
commit6d53d8390d0f27c9322bad2876abdfc301a0dddc
tree0ccc2701939bf2ef7e0451db4b6ab8368cfd6f9a
parentf5dce6bc66e1b6b95c39f06824c1b2f9bbb88ee6
mac80211_hwsim: Fix tracking of beaconing for multi-vif

mac80211_hwsim canceled beacon_timer on any vif changing from enabled
to disabled beaconing. This breaks cases where there are multiple
beaconing vifs and only one of them is removed. Fix this by tracking
beaconing status per vif and disable beacon_timer only if no active vif
remain with beaconing enabled.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c