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:
parent
e59d2a31cf
commit
7a9587ceef
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
wpabuf_head(secret), wpabuf_len(secret),
|
||||
&pasn->ptk, pasn->akmp,
|
||||
|
|
Loading…
Reference in a new issue