]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit0bb861e6be624111e9f85ade89b9e7548c5eb968
tree0ccc2701939bf2ef7e0451db4b6ab8368cfd6f9a
parent0951ebb8aa219115cec6a53c033ee34715a248db
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