aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-06-21 21:15:53 (GMT)
committerJouni Malinen <j@w1.fi>2014-06-21 21:15:53 (GMT)
commit1b928f96b64138fbd4c681bb863aeb71c809c520 (patch)
treea7da3b2b928606e1a761313d5a668d427707a660 /wpa_supplicant/config.c
parente9852462d58750e2ec4be498e82db0e0a2dfaf7f (diff)
downloadhostap-1b928f96b64138fbd4c681bb863aeb71c809c520.zip
hostap-1b928f96b64138fbd4c681bb863aeb71c809c520.tar.gz
hostap-1b928f96b64138fbd4c681bb863aeb71c809c520.tar.bz2
P2P: Allow passphrase length to be configured
Previously, eight character random passphrase was generated automatically for P2P GO. The new p2p_passphrase_len parameter can be used to increase this length to generate a stronger passphrase for cases where practicality of manual configuration of legacy devices is not a concern. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 4cea2ef..86d6d72 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -3836,6 +3836,8 @@ static const struct global_parse_data global_fields[] = {
{ INT_RANGE(persistent_reconnect, 0, 1), 0 },
{ INT_RANGE(p2p_intra_bss, 0, 1), CFG_CHANGED_P2P_INTRA_BSS },
{ INT(p2p_group_idle), 0 },
+ { INT_RANGE(p2p_passphrase_len, 8, 63),
+ CFG_CHANGED_P2P_PASSPHRASE_LEN },
{ FUNC(p2p_pref_chan), CFG_CHANGED_P2P_PREF_CHAN },
{ FUNC(p2p_no_go_freq), CFG_CHANGED_P2P_PREF_CHAN },
{ INT_RANGE(p2p_add_cli_chan, 0, 1), 0 },