projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0d6b8
)
WPS: Fix WPS commands in wpa_supplicant AP mode
author
Jouni Malinen
<j@w1.fi>
Sun, 10 Oct 2010 14:43:42 +0000
(17:43 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 10 Oct 2010 14:43:42 +0000
(17:43 +0300)
Commit
9290cc180040b77afbf3ccf088fb14d0121bc5b3
broke this by moving
to use for_each_interface() which is not available in wpa_supplicant
AP mode.
src/ap/wps_hostapd.c
patch
|
blob
|
history
diff --git
a/src/ap/wps_hostapd.c
b/src/ap/wps_hostapd.c
index
d131a84
..
ff435d6
100644
(file)
--- a/
src/ap/wps_hostapd.c
+++ b/
src/ap/wps_hostapd.c
@@
-75,10
+75,10
@@
static int hostapd_wps_for_each(struct hostapd_data *hapd,
{
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;
+ if (iface->for_each_interface == NULL)
+ return wps_for_each(iface, &data);
return iface->for_each_interface(iface->interfaces, wps_for_each,
&data);
}