forked from espressif/esp-idf
fix(wpa_supplicant): Avoid delaying removal of wps enrollee by 10ms
This is no longer needed as eloop timers are now executed in wifi task context.
This commit is contained in:
@ -2620,21 +2620,6 @@ send_resp:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_WPS_REGISTRAR
|
|
||||||
static void ap_free_sta_timeout(void *ctx, void *data)
|
|
||||||
{
|
|
||||||
struct hostapd_data *hapd = (struct hostapd_data *) ctx;
|
|
||||||
u8 *addr = (u8 *) data;
|
|
||||||
struct sta_info *sta = ap_get_sta(hapd, addr);
|
|
||||||
|
|
||||||
if (sta) {
|
|
||||||
ap_free_sta(hapd, sta);
|
|
||||||
}
|
|
||||||
|
|
||||||
os_free(addr);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool wpa_ap_remove(u8* bssid)
|
bool wpa_ap_remove(u8* bssid)
|
||||||
{
|
{
|
||||||
struct hostapd_data *hapd = hostapd_get_hapd_data();
|
struct hostapd_data *hapd = hostapd_get_hapd_data();
|
||||||
@ -2657,19 +2642,6 @@ bool wpa_ap_remove(u8* bssid)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_SAE */
|
#endif /* CONFIG_SAE */
|
||||||
|
|
||||||
#ifdef CONFIG_WPS_REGISTRAR
|
|
||||||
wpa_printf(MSG_DEBUG, "wps_status=%d", wps_get_status());
|
|
||||||
if (wps_get_status() == WPS_STATUS_PENDING) {
|
|
||||||
u8 *addr = os_malloc(ETH_ALEN);
|
|
||||||
|
|
||||||
if (!addr) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
os_memcpy(addr, sta->addr, ETH_ALEN);
|
|
||||||
eloop_register_timeout(0, 10000, ap_free_sta_timeout, hapd, addr);
|
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
ap_free_sta(hapd, sta);
|
ap_free_sta(hapd, sta);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user