projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728fae1
)
WPS: Get AP PIN from configuration instead of using hardcoded value
author
Jouni Malinen
<j@w1.fi>
Sat, 29 Nov 2008 19:07:35 +0000
(21:07 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 29 Nov 2008 19:07:35 +0000
(21:07 +0200)
src/eap_peer/eap_wsc.c
patch
|
blob
|
history
diff --git
a/src/eap_peer/eap_wsc.c
b/src/eap_peer/eap_wsc.c
index
2cf52f8
..
b1a29b0
100644
(file)
--- a/
src/eap_peer/eap_wsc.c
+++ b/
src/eap_peer/eap_wsc.c
@@
-207,8
+207,10
@@
static void * eap_wsc_init(struct eap_sm *sm)
"yet fully supported - using test values");
u8 uuid_e[UUID_LEN];
os_memset(uuid_e, 0, UUID_LEN);
- wps_registrar_add_pin(data->wps_ctx->registrar, uuid_e,
- (const u8 *) "12345670", 8);
+ if (cfg.pin) {
+ wps_registrar_add_pin(data->wps_ctx->registrar, uuid_e,
+ cfg.pin, cfg.pin_len);
+ }
}
return data;