DPP: Add the crypto suite field to the frames
This additional field was added to DPP Public Action frames in DPP tech spec v0.2.3 to support cryptographic agility in the future. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
22a0147557
commit
8c19ea3f21
3 changed files with 26 additions and 13 deletions
|
@ -484,13 +484,14 @@ struct wpabuf * dpp_alloc_msg(enum dpp_public_action_frame_type type,
|
|||
{
|
||||
struct wpabuf *msg;
|
||||
|
||||
msg = wpabuf_alloc(7 + len);
|
||||
msg = wpabuf_alloc(8 + len);
|
||||
if (!msg)
|
||||
return NULL;
|
||||
wpabuf_put_u8(msg, WLAN_ACTION_PUBLIC);
|
||||
wpabuf_put_u8(msg, WLAN_PA_VENDOR_SPECIFIC);
|
||||
wpabuf_put_be24(msg, OUI_WFA);
|
||||
wpabuf_put_u8(msg, DPP_OUI_TYPE);
|
||||
wpabuf_put_u8(msg, 1); /* Crypto Suite */
|
||||
wpabuf_put_u8(msg, type);
|
||||
return msg;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue