Skip to content

Commit

Permalink
mac80211: simplify AP interface stop
Browse files Browse the repository at this point in the history
For AP interfaces, there's no need to flush stations
or keys again when the interface is stopped as already
happened when the BSS was stopped on the interface.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Mar 6, 2013
1 parent 7b4396b commit 1861b84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,14 +836,16 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
rcu_barrier();
sta_info_flush_cleanup(sdata);

skb_queue_purge(&sdata->skb_queue);

/*
* Free all remaining keys, there shouldn't be any,
* except maybe in WDS mode?
*/
ieee80211_free_keys(sdata);

/* fall through */
case NL80211_IFTYPE_AP:
skb_queue_purge(&sdata->skb_queue);

drv_remove_interface_debugfs(local, sdata);

if (going_down)
Expand Down

0 comments on commit 1861b84

Please sign in to comment.