From 9337856e365511b8b49e5724f82699b5ff1d11fe Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 27 Oct 2014 11:02:23 +0000 Subject: mac80211: fix key flush handling in AP+STA Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43079 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch (limited to 'package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch') diff --git a/package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch b/package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch new file mode 100644 index 0000000000..d1d9fbd9b1 --- /dev/null +++ b/package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch @@ -0,0 +1,12 @@ +Used for AP+STA support in OpenWrt - preserve AP mode keys across STA reconnects + +--- a/net/mac80211/cfg.c ++++ b/net/mac80211/cfg.c +@@ -846,7 +846,6 @@ static int ieee80211_stop_ap(struct wiph + sdata->u.ap.driver_smps_mode = IEEE80211_SMPS_OFF; + + __sta_info_flush(sdata, true); +- ieee80211_free_keys(sdata, true); + + sdata->vif.bss_conf.enable_beacon = false; + sdata->vif.bss_conf.ssid_len = 0; -- cgit v1.2.3