aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorMoshe Benji <Moshe.Benji@intel.com>2014-03-05 12:55:29 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-05 21:57:02 (GMT)
commit354c903f8e47ae0fb41fb54ecc018e61d9573506 (patch)
treec27f11ea9808df85054b4ea015b24720656a669f /wpa_supplicant/ap.c
parent8bc4372f37921d88bb0e65fae80577bcbb2c8067 (diff)
downloadhostap-354c903f8e47ae0fb41fb54ecc018e61d9573506.zip
hostap-354c903f8e47ae0fb41fb54ecc018e61d9573506.tar.gz
hostap-354c903f8e47ae0fb41fb54ecc018e61d9573506.tar.bz2
AP/GO interface teardown optimization
This commit adds an option to optimize AP teardown by leaving the deletion of keys (including group keys) and stations to the driver. This optimization option should be used if the driver supports stations and keys removal when stopping an AP. For example, the optimization option will always be used for cfg80211 drivers since cfg80211 shall always remove stations and keys when stopping an AP (in order to support cases where the AP is disabled without the knowledge of wpa_supplicant/hostapd). Signed-off-by: Moshe Benji <moshe.benji@intel.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index f150679..af27303 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -669,6 +669,9 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
wpa_s->ap_iface->bss[0]->p2p_group = NULL;
wpas_p2p_group_deinit(wpa_s);
#endif /* CONFIG_P2P */
+ wpa_s->ap_iface->driver_ap_teardown =
+ !!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT);
+
hostapd_interface_deinit(wpa_s->ap_iface);
hostapd_interface_free(wpa_s->ap_iface);
wpa_s->ap_iface = NULL;