aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
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.h
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.h')
-rw-r--r--wpa_supplicant/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 3c2fc4a..52add9d 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -317,6 +317,7 @@ struct wpa_cred {
#define CFG_CHANGED_P2P_PREF_CHAN BIT(13)
#define CFG_CHANGED_EXT_PW_BACKEND BIT(14)
#define CFG_CHANGED_NFC_PASSWORD_TOKEN BIT(15)
+#define CFG_CHANGED_P2P_PASSPHRASE_LEN BIT(16)
/**
* struct wpa_config - wpa_supplicant configuration data
@@ -716,6 +717,14 @@ struct wpa_config {
int p2p_group_idle;
/**
+ * p2p_passphrase_len - Passphrase length (8..63) for P2P GO
+ *
+ * This parameter controls the length of the random passphrase that is
+ * generated at the GO.
+ */
+ unsigned int p2p_passphrase_len;
+
+ /**
* bss_max_count - Maximum number of BSS entries to keep in memory
*/
unsigned int bss_max_count;