{
struct hostapd_iface *iface = hapd->iface;
struct wps_for_each_data data;
{
struct hostapd_iface *iface = hapd->iface;
struct wps_for_each_data data;
- if (iface->for_each_interface == NULL)
- return -1;
data.func = func;
data.ctx = ctx;
data.func = func;
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,
&data);
}
return iface->for_each_interface(iface->interfaces, wps_for_each,
&data);
}