mac80211_hwsim: Fix bcn_en_iter to use atomic iteration
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 6 Nov 2013 10:06:30 +0000 (12:06 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:50:14 +0000 (16:50 +0100)
commitcdb1b8057a44bbda67d403000a26be00de1d2326
tree3b32561622393afb76e74cf5b0d1abab8204d0fa
parent3f718fd8401d7db86b9efc3ea1cdf5df41354b9f
mac80211_hwsim: Fix bcn_en_iter to use atomic iteration

'mac80211_hwsim: Fix tracking of beaconing for multi-vif' introduced an
iteration of active interfaces into the bss_info_changed handler.
However, it used a wrong type of iteration and could result in a dead
lock since iflist_mtx can already be held. Fix this by using the atomic
version of the iteration function.

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