diff options
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 09bebed99416..6c4da99bc4fb 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -517,7 +517,9 @@ void mesh_neighbour_update(struct ieee80211_sub_if_data *sdata, | |||
517 | ieee80211_mps_frame_release(sta, elems); | 517 | ieee80211_mps_frame_release(sta, elems); |
518 | out: | 518 | out: |
519 | rcu_read_unlock(); | 519 | rcu_read_unlock(); |
520 | sdata_lock(sdata); | ||
520 | ieee80211_mbss_info_change_notify(sdata, changed); | 521 | ieee80211_mbss_info_change_notify(sdata, changed); |
522 | sdata_unlock(sdata); | ||
521 | } | 523 | } |
522 | 524 | ||
523 | static void mesh_plink_timer(unsigned long data) | 525 | static void mesh_plink_timer(unsigned long data) |
@@ -1068,6 +1070,9 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata, | |||
1068 | 1070 | ||
1069 | rcu_read_unlock(); | 1071 | rcu_read_unlock(); |
1070 | 1072 | ||
1071 | if (changed) | 1073 | if (changed) { |
1074 | sdata_lock(sdata); | ||
1072 | ieee80211_mbss_info_change_notify(sdata, changed); | 1075 | ieee80211_mbss_info_change_notify(sdata, changed); |
1076 | sdata_unlock(sdata); | ||
1077 | } | ||
1073 | } | 1078 | } |