mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
wpa_supplicant: Fix CONFIG_AP build without CTRL_IFACE
wpas_ap_pmksa_cache_list() and wpas_ap_pmksa_cache_flush() should be under the #ifdef since they're only called for the control iface and use functionality that otherwise isn't available. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
This commit is contained in:
parent
d58b60da87
commit
3dd0e9e4e4
@ -1368,7 +1368,6 @@ int wpas_ap_stop_ap(struct wpa_supplicant *wpa_s)
|
|||||||
hapd = wpa_s->ap_iface->bss[0];
|
hapd = wpa_s->ap_iface->bss[0];
|
||||||
return hostapd_ctrl_iface_stop_ap(hapd);
|
return hostapd_ctrl_iface_stop_ap(hapd);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_CTRL_IFACE */
|
|
||||||
|
|
||||||
|
|
||||||
int wpas_ap_pmksa_cache_list(struct wpa_supplicant *wpa_s, char *buf,
|
int wpas_ap_pmksa_cache_list(struct wpa_supplicant *wpa_s, char *buf,
|
||||||
@ -1421,6 +1420,7 @@ void wpas_ap_pmksa_cache_flush(struct wpa_supplicant *wpa_s)
|
|||||||
if (wpa_s->ifmsh)
|
if (wpa_s->ifmsh)
|
||||||
hostapd_ctrl_iface_pmksa_flush(wpa_s->ifmsh->bss[0]);
|
hostapd_ctrl_iface_pmksa_flush(wpa_s->ifmsh->bss[0]);
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_CTRL_IFACE */
|
||||||
|
|
||||||
|
|
||||||
#ifdef NEED_AP_MLME
|
#ifdef NEED_AP_MLME
|
||||||
|
Loading…
Reference in New Issue
Block a user