WPS: Fix WPS commands in wpa_supplicant AP mode
Commit 9290cc1800
broke this by moving
to use for_each_interface() which is not available in wpa_supplicant
AP mode.
This commit is contained in:
parent
ca0d6b81d6
commit
4e698e5c30
1 changed files with 2 additions and 2 deletions
|
@ -75,10 +75,10 @@ static int hostapd_wps_for_each(struct hostapd_data *hapd,
|
||||||
{
|
{
|
||||||
struct hostapd_iface *iface = hapd->iface;
|
struct hostapd_iface *iface = hapd->iface;
|
||||||
struct wps_for_each_data data;
|
struct wps_for_each_data data;
|
||||||
if (iface->for_each_interface == NULL)
|
|
||||||
return -1;
|
|
||||||
data.func = func;
|
data.func = func;
|
||||||
data.ctx = ctx;
|
data.ctx = ctx;
|
||||||
|
if (iface->for_each_interface == NULL)
|
||||||
|
return wps_for_each(iface, &data);
|
||||||
return iface->for_each_interface(iface->interfaces, wps_for_each,
|
return iface->for_each_interface(iface->interfaces, wps_for_each,
|
||||||
&data);
|
&data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue