aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-23 21:32:33 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-23 21:32:33 (GMT)
commitaf4103e5e94a7f4bd7a1f587840fc701ca821e7b (patch)
tree17a7fb6cd180f83f31a60285e639688dc45eeb79 /wpa_supplicant
parent918a2ac40f390c3363e7a59f29c048a5ebc875f5 (diff)
downloadhostap-af4103e5e94a7f4bd7a1f587840fc701ca821e7b.zip
hostap-af4103e5e94a7f4bd7a1f587840fc701ca821e7b.tar.gz
hostap-af4103e5e94a7f4bd7a1f587840fc701ca821e7b.tar.bz2
DPP: Provide peer_mac to PKEX Initiator through function argument
Avoid unnecessary direct write to a struct dpp_pkex member from outside dpp.c. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dpp_supplicant.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 07f2e94..f544294 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -1796,8 +1796,7 @@ wpas_dpp_rx_pkex_exchange_resp(struct wpa_supplicant *wpa_s, const u8 *src,
eloop_cancel_timeout(wpas_dpp_pkex_retry_timeout, wpa_s, NULL);
wpa_s->dpp_pkex->exch_req_wait_time = 0;
- os_memcpy(wpa_s->dpp_pkex->peer_mac, src, ETH_ALEN);
- msg = dpp_pkex_rx_exchange_resp(wpa_s->dpp_pkex, buf, len);
+ msg = dpp_pkex_rx_exchange_resp(wpa_s->dpp_pkex, src, buf, len);
if (!msg) {
wpa_printf(MSG_DEBUG, "DPP: Failed to process the response");
return;