summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-12-18 13:44:59 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-19 07:33:13 -0500
commit6924d0138acdf5026ee4463134d98e139fe025a2 (patch)
tree97ced66fdc8e6652278fc562775ab74128434682 /net/mac80211/cfg.c
parent5fe2bb8688cad3608f9fe0d0875f9f6ff776ba51 (diff)
mac80211: remove unnecessary iflist_mtx locking
The radar detection code changed a few times, and due to the changes some iflist_mtx locking stayed in that isn't actually necessary - remove it. One version of the code needed it because an AP interface's VLAN list was changed to use this, but then we moved the list handling outside of the chanctx handling and thus the locking was no longer needed. Tested-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index ac185286842d..bfe54daab4b1 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2903,10 +2903,8 @@ static int ieee80211_start_radar_detection(struct wiphy *wiphy,
2903 sdata->needed_rx_chains = local->rx_chains; 2903 sdata->needed_rx_chains = local->rx_chains;
2904 sdata->radar_required = true; 2904 sdata->radar_required = true;
2905 2905
2906 mutex_lock(&local->iflist_mtx);
2907 err = ieee80211_vif_use_channel(sdata, chandef, 2906 err = ieee80211_vif_use_channel(sdata, chandef,
2908 IEEE80211_CHANCTX_SHARED); 2907 IEEE80211_CHANCTX_SHARED);
2909 mutex_unlock(&local->iflist_mtx);
2910 if (err) 2908 if (err)
2911 return err; 2909 return err;
2912 2910