PASN: Copy PMK to PASN context on responder

Wi-Fi Aware pairing responder needs to forward the derive PMK to the
framework on successful pairing setup. The framework will set
corresponding PMK while a pairing verification is initiated by the
paired peer. Since the PMK is not updated for responder's PASN context,
framework does not have a valid PMK and verification fails. Hence copy
the derived PMK to PASN context.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Vinay Gannevaram 2023-09-26 20:17:43 +05:30 committed by Jouni Malinen
parent e59d2a31cf
commit 7a9587ceef

View file

@ -335,6 +335,8 @@ pasn_derive_keys(struct pasn_data *pasn,
} }
} }
pasn->pmk_len = pmk_len;
os_memcpy(pasn->pmk, pmk, pmk_len);
ret = pasn_pmk_to_ptk(pmk, pmk_len, peer_addr, own_addr, ret = pasn_pmk_to_ptk(pmk, pmk_len, peer_addr, own_addr,
wpabuf_head(secret), wpabuf_len(secret), wpabuf_head(secret), wpabuf_len(secret),
&pasn->ptk, pasn->akmp, &pasn->ptk, pasn->akmp,