path: root/wpa_supplicant/ap.c
diff options
authorJouni Malinen <j@w1.fi>2013-09-01 07:08:30 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-01 07:14:29 (GMT)
commit05766ed8de2df822948e4bdc279ae7c461702bf4 (patch)
tree1adbca926898e13851d2ab162f41b8e403e38ae3 /wpa_supplicant/ap.c
parent698e921b9efd697af00590f8dafb6803a8535a06 (diff)
P2P: Allow per-device PSK to be assigned
"wpa_cli p2p_set per_sta_psk <0/1>" can now be used to disable/enable use of per-device PSKs in P2P groups. This is disabled by default. When enabled, a default passphrase is still generated by the GO for legacy stations, but all P2P and non-P2P devices using WPS will get a unique PSK. This gives more protection for the P2P group by preventing clients from being able to derive the unicast keys used by other clients. This is also a step towards allowing specific clients to be removed from a group reliably without having to tear down the full group to do so. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ap.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 2950d2d..99c6d8a 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -148,6 +148,7 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
bss->isolate = !wpa_s->conf->p2p_intra_bss;
+ bss->force_per_enrollee_psk = wpa_s->global->p2p_per_sta_psk;
#endif /* CONFIG_P2P */
if (ssid->ssid_len == 0) {