2011-03-21 23:02:12 +00:00
|
|
|
--- a/hostapd/ctrl_iface.c
|
|
|
|
+++ b/hostapd/ctrl_iface.c
|
2012-09-13 12:38:51 +00:00
|
|
|
@@ -450,6 +450,9 @@ static int hostapd_ctrl_iface_wps_ap_pin
|
2011-03-21 23:02:12 +00:00
|
|
|
char *pos;
|
|
|
|
const char *pin_txt;
|
|
|
|
|
|
|
|
+ if (!hapd->wps)
|
|
|
|
+ return -1;
|
|
|
|
+
|
|
|
|
pos = os_strchr(txt, ' ');
|
|
|
|
if (pos)
|
|
|
|
*pos++ = '\0';
|