]> 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)
commit4520a75a53ead3bec3540de0a9427b96bac747e1
tree0ccc2701939bf2ef7e0451db4b6ab8368cfd6f9a
parenta8ab0c7d0c5814be054cf1a3e80967efff029cc8
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