From: Felix Fietkau <nbd@nbd.name>
Date: Mon, 27 Oct 2014 00:00:00 +0100
Subject: [PATCH] mac80211: preseve AP mode keys across STA reconnect

Used for AP+STA support in OpenWrt - preserve AP mode keys across STA reconnect
---
 net/mac80211/cfg.c | 1 -
 1 file changed, 1 deletion(-)

--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1647,12 +1647,6 @@ static int ieee80211_stop_ap(struct wiph
 
 	__sta_info_flush(sdata, true, link_id);
 
-	ieee80211_remove_link_keys(link, &keys);
-	if (!list_empty(&keys)) {
-		synchronize_net();
-		ieee80211_free_key_list(local, &keys);
-	}
-
 	link_conf->enable_beacon = false;
 	sdata->beacon_rate_set = false;
 	sdata->vif.cfg.ssid_len = 0;
