aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-07-11 14:01:49 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-27 19:44:30 (GMT)
commit86e320819c5ae246f55ce0a9e53cda605fb088f9 (patch)
tree4a03a8c255ee1382d1d1b37dc00e37432ef74d95 /wpa_supplicant
parentd4b4d7fe3c8792b05199f16bb3dc78036d3a20fe (diff)
downloadhostap-86e320819c5ae246f55ce0a9e53cda605fb088f9.zip
hostap-86e320819c5ae246f55ce0a9e53cda605fb088f9.tar.gz
hostap-86e320819c5ae246f55ce0a9e53cda605fb088f9.tar.bz2
P2P NFC: Copy DH parameters to a separate group interface
The DH public and private key needs to be copied for the separate group interface if that is used for a P2P group. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/p2p_supplicant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 254314d..5867087 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -1370,6 +1370,11 @@ static void wpas_p2p_clone_config(struct wpa_supplicant *dst,
d->dtim_period = s->dtim_period;
d->disassoc_low_ack = s->disassoc_low_ack;
d->disable_scan_offload = s->disable_scan_offload;
+
+ if (s->wps_nfc_dh_privkey && s->wps_nfc_dh_pubkey) {
+ d->wps_nfc_dh_privkey = wpabuf_dup(s->wps_nfc_dh_privkey);
+ d->wps_nfc_dh_pubkey = wpabuf_dup(s->wps_nfc_dh_pubkey);
+ }
}