diff options
-rw-r--r-- | net/mac80211/iface.c | 8 | ||||
-rw-r--r-- | net/mac80211/mesh.c | 6 |
2 files changed, 5 insertions, 9 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 2d6ac78971ea..5a81577879ed 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -778,14 +778,6 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, | |||
778 | skb_queue_purge(&sdata->skb_queue); | 778 | skb_queue_purge(&sdata->skb_queue); |
779 | 779 | ||
780 | /* | 780 | /* |
781 | * Disable beaconing here for mesh only, AP and IBSS | ||
782 | * are already taken care of. | ||
783 | */ | ||
784 | if (sdata->vif.type == NL80211_IFTYPE_MESH_POINT) | ||
785 | ieee80211_bss_info_change_notify(sdata, | ||
786 | BSS_CHANGED_BEACON_ENABLED); | ||
787 | |||
788 | /* | ||
789 | * Free all remaining keys, there shouldn't be any, | 781 | * Free all remaining keys, there shouldn't be any, |
790 | * except maybe group keys in AP more or WDS? | 782 | * except maybe group keys in AP more or WDS? |
791 | */ | 783 | */ |
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 571d5183060e..035cd0c8ce33 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -621,9 +621,13 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) | |||
621 | 621 | ||
622 | netif_carrier_off(sdata->dev); | 622 | netif_carrier_off(sdata->dev); |
623 | 623 | ||
624 | /* stop the beacon */ | ||
624 | ifmsh->mesh_id_len = 0; | 625 | ifmsh->mesh_id_len = 0; |
625 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); | 626 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); |
626 | sta_info_flush(local, NULL); | 627 | |
628 | /* flush STAs and mpaths on this iface */ | ||
629 | sta_info_flush(sdata->local, sdata); | ||
630 | mesh_path_flush_by_iface(sdata); | ||
627 | 631 | ||
628 | del_timer_sync(&sdata->u.mesh.housekeeping_timer); | 632 | del_timer_sync(&sdata->u.mesh.housekeeping_timer); |
629 | del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); | 633 | del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); |