[RFC v2] ap: AP/GO interface teardown optimization
j at w1.fi
Wed Mar 5 17:51:55 EST 2014
On Wed, Mar 05, 2014 at 02:55:29PM +0200, Ilan Peer wrote:
> 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).
Thanks, applied. I realize that this was an RFC, but still, compilation
testing would be appreciated.. :) Fixed wpa_supplicant build:
> diff --git 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->p2p_group = NULL;
> #endif /* CONFIG_P2P */
> + wpa_s->ap_iface->driver_ap_teardown =
> + !!(iface->drv_flags & WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT);
iface is not a visible variable here..
Jouni Malinen PGP id EFC895FA
More information about the HostAP