2
0

110-mac80211_keep_keys_on_stop_ap.patch 402 B

123456789101112
  1. Used for AP+STA support in OpenWrt - preserve AP mode keys across STA reconnects
  2. --- a/net/mac80211/cfg.c
  3. +++ b/net/mac80211/cfg.c
  4. @@ -1014,7 +1014,6 @@ static int ieee80211_stop_ap(struct wiph
  5. sdata->u.ap.driver_smps_mode = IEEE80211_SMPS_OFF;
  6. __sta_info_flush(sdata, true);
  7. - ieee80211_free_keys(sdata, true);
  8. sdata->vif.bss_conf.enable_beacon = false;
  9. sdata->vif.bss_conf.ssid_len = 0;