diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-01-29 01:56:21 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-04 15:58:11 -0500 |
commit | dbd72850dcc9738b42a9762ef8c4a1a66b30d897 (patch) | |
tree | 11a1f250e7af7bdeaa8f154762522b8a7db0deb8 /net/mac80211/mesh.c | |
parent | cc901de1bcb0372583466075bfa62e3049dc6288 (diff) |
mac80211: add missing CSA locking
The patch adds a missing sdata lock and adds a few
lockdeps for easier maintenance.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index bd55115c8922..f70e9cd10552 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -864,6 +864,8 @@ ieee80211_mesh_process_chnswitch(struct ieee80211_sub_if_data *sdata, | |||
864 | int err; | 864 | int err; |
865 | u32 sta_flags; | 865 | u32 sta_flags; |
866 | 866 | ||
867 | sdata_assert_lock(sdata); | ||
868 | |||
867 | sta_flags = IEEE80211_STA_DISABLE_VHT; | 869 | sta_flags = IEEE80211_STA_DISABLE_VHT; |
868 | switch (sdata->vif.bss_conf.chandef.width) { | 870 | switch (sdata->vif.bss_conf.chandef.width) { |
869 | case NL80211_CHAN_WIDTH_20_NOHT: | 871 | case NL80211_CHAN_WIDTH_20_NOHT: |