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