diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 1f3c9eb98500..81c4e3392f40 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -21,9 +21,7 @@ | |||
21 | #include "ieee80211_rate.h" | 21 | #include "ieee80211_rate.h" |
22 | #include "sta_info.h" | 22 | #include "sta_info.h" |
23 | #include "debugfs_sta.h" | 23 | #include "debugfs_sta.h" |
24 | #ifdef CONFIG_MAC80211_MESH | ||
25 | #include "mesh.h" | 24 | #include "mesh.h" |
26 | #endif | ||
27 | 25 | ||
28 | /* Caller must hold local->sta_lock */ | 26 | /* Caller must hold local->sta_lock */ |
29 | static void sta_info_hash_add(struct ieee80211_local *local, | 27 | static void sta_info_hash_add(struct ieee80211_local *local, |
@@ -309,10 +307,8 @@ void sta_info_remove(struct sta_info *sta) | |||
309 | } | 307 | } |
310 | local->num_sta--; | 308 | local->num_sta--; |
311 | 309 | ||
312 | #ifdef CONFIG_MAC80211_MESH | 310 | if (ieee80211_vif_is_mesh(&sdata->vif)) |
313 | if (sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT) | ||
314 | mesh_accept_plinks_update(sdata->dev); | 311 | mesh_accept_plinks_update(sdata->dev); |
315 | #endif | ||
316 | } | 312 | } |
317 | 313 | ||
318 | void sta_info_free(struct sta_info *sta) | 314 | void sta_info_free(struct sta_info *sta) |
@@ -329,13 +325,8 @@ void sta_info_free(struct sta_info *sta) | |||
329 | sta_info_remove(sta); | 325 | sta_info_remove(sta); |
330 | write_unlock_bh(&local->sta_lock); | 326 | write_unlock_bh(&local->sta_lock); |
331 | 327 | ||
332 | #ifdef CONFIG_MAC80211_MESH | 328 | if (ieee80211_vif_is_mesh(&sdata->vif)) |
333 | if (sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT) { | ||
334 | spin_lock_bh(&sta->plink_lock); | ||
335 | mesh_plink_deactivate(sta); | 329 | mesh_plink_deactivate(sta); |
336 | spin_unlock_bh(&sta->plink_lock); | ||
337 | } | ||
338 | #endif | ||
339 | 330 | ||
340 | while ((skb = skb_dequeue(&sta->ps_tx_buf)) != NULL) { | 331 | while ((skb = skb_dequeue(&sta->ps_tx_buf)) != NULL) { |
341 | local->total_ps_buffered--; | 332 | local->total_ps_buffered--; |