projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea2fd9
)
Fix AP mode wps_pin command to return the entered PIN
author
Jouni Malinen
<jouni.malinen@atheros.com>
Thu, 29 Jul 2010 00:56:37 +0000
(17:56 -0700)
committer
Jouni Malinen
<j@w1.fi>
Thu, 9 Sep 2010 14:17:21 +0000
(07:17 -0700)
This command is supposed to return the PIN value that was generated
or passed in as an argument. In the AP case, the entered PIN was not
being returned.
wpa_supplicant/ap.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ap.c
b/wpa_supplicant/ap.c
index
dd41c20
..
f638186
100644
(file)
--- a/
wpa_supplicant/ap.c
+++ b/
wpa_supplicant/ap.c
@@
-481,7
+481,8
@@
int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
unsigned int rpin = wps_generate_pin();
ret_len = os_snprintf(buf, buflen, "%d", rpin);
pin = buf;
- }
+ } else
+ ret_len = os_snprintf(buf, buflen, "%s", pin);
ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin,
0);