mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-25 16:13:05 +00:00
4225e4b2d8
SVN-Revision: 31080
13 lines
245 B
Diff
13 lines
245 B
Diff
--- a/hostapd/ctrl_iface.c
|
|
+++ b/hostapd/ctrl_iface.c
|
|
@@ -343,6 +343,9 @@ static int hostapd_ctrl_iface_wps_ap_pin
|
|
char *pos;
|
|
const char *pin_txt;
|
|
|
|
+ if (!hapd->wps)
|
|
+ return -1;
|
|
+
|
|
pos = os_strchr(txt, ' ');
|
|
if (pos)
|
|
*pos++ = '\0';
|