aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-27 11:02:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-27 11:02:23 +0000
commite6da32c086c3cb22be14c348be7821e0c98a7566 (patch)
treeec774161795b414a067efc667fb0a41aafe52748 /package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch
parentba48074622ba4f756a7ca686a9aef43f490563e5 (diff)
downloadupstream-e6da32c086c3cb22be14c348be7821e0c98a7566.tar.gz
upstream-e6da32c086c3cb22be14c348be7821e0c98a7566.tar.bz2
upstream-e6da32c086c3cb22be14c348be7821e0c98a7566.zip
mac80211: fix key flush handling in AP+STA
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43079
Diffstat (limited to 'package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch')
-rw-r--r--package/kernel/mac80211/patches/110-mac80211_keep_keys_on_stop_ap.patch12
1 files changed, 12 insertions, 0 deletions
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;