projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aab524
)
WPS: Allow config_methods to be cleared with an empty string
author
Jouni Malinen
<j@w1.fi>
Sat, 5 Sep 2015 18:49:38 +0000
(21:49 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 5 Sep 2015 18:49:38 +0000
(21:49 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_common.c
patch
|
blob
|
history
diff --git
a/src/wps/wps_common.c
b/src/wps/wps_common.c
index
16d466e
..
88f85fe
100644
(file)
--- a/
src/wps/wps_common.c
+++ b/
src/wps/wps_common.c
@@
-528,7
+528,7
@@
u16 wps_config_methods_str2bin(const char *str)
{
u16 methods = 0;
- if (str == NULL) {
+ if (str == NULL
|| str[0] == '\0'
) {
/* Default to enabling methods based on build configuration */
methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD;
methods |= WPS_CONFIG_VIRT_DISPLAY;