During the pairing verification process, the KEK might not be derived,
and the PASN encrypted elements are absent in the P2P2 IE. Therefore, it
is necessary to permit other attributes such as PCEA and the Action
Frame Wrapper attribute in the Authentication frame for the invitation
process.
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
}
if (p2p_pasn_add_encrypted_data(p2p, dev, extra_ies) < 0)
- goto out;
+ p2p_dbg(p2p, "Failed to add PASN encrypted elements");
pasn->extra_ies = os_memdup(wpabuf_head_u8(extra_ies),
wpabuf_len(extra_ies));
u8 *len;
size_t pad_len = 0;
+ if (!pasn->ptk.kek_len) {
+ wpa_printf(MSG_DEBUG, "PASN: KEK not available");
+ return -2;
+ }
+
pad_len = data_len % 8;
if (pad_len) {
pad_len = 8 - pad_len;