mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-12 05:51:52 +02:00
e827a711a3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31080 3c298f89-4303-0410-b956-a3cf2f4a3e73
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';
|