347-mac80211-flush-keys-for-AP-mode-on-ieee80211_do_stop.patch 686 B

1234567891011121314151617181920212223
  1. From: Felix Fietkau <[email protected]>
  2. Date: Mon, 27 Oct 2014 11:50:28 +0100
  3. Subject: [PATCH] mac80211: flush keys for AP mode on ieee80211_do_stop
  4. Userspace can add keys to an AP mode interface before start_ap has been
  5. called. If there have been no calls to start_ap/stop_ap in the mean
  6. time, the keys will still be around when the interface is brought down.
  7. Signed-off-by: Felix Fietkau <[email protected]>
  8. ---
  9. --- a/net/mac80211/iface.c
  10. +++ b/net/mac80211/iface.c
  11. @@ -931,9 +931,6 @@ static void ieee80211_do_stop(struct iee
  12. * another CPU.
  13. */
  14. ieee80211_free_keys(sdata, true);
  15. -
  16. - /* fall through */
  17. - case NL80211_IFTYPE_AP:
  18. skb_queue_purge(&sdata->skb_queue);
  19. }