Interface changes for Aware 4.0 Bootsrapping and Shared Key

Some methods like service managed bootstrapping required SDEA attribute to
carry service specific information during bootstrapping handshake. Also
once Pairing is setup User can transmit follow up frames to share NIK to the
peer which should carry shared key descriptor. Comeback timeout can be set by
Bootstrapping responder to defer the ongoing handshake.
Hence Add interface changes for above requirements.

Bug: 279363671
Test: build, flash and CtsWifiTestCases
Change-Id: I67c4e5283189cfc80ef86b610d9d7f021ff4b29b
This commit is contained in:
Vinay Gannevaram 2023-04-22 11:35:01 +05:30 committed by Nate Jiang
parent 2b3c3a49bf
commit d1de22e90f

View file

@ -1561,6 +1561,12 @@ typedef struct {
*/
u16 sdea_service_specific_info_len;
u8 sdea_service_specific_info[NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN];
/*
Add shared key descriptor attribute to the Followup request when the
flag is set
*/
u8 shared_key_desc_flag;
} NanTransmitFollowupRequest;
/*
@ -2906,6 +2912,20 @@ typedef struct {
/* Proposed bootstrapping method */
u16 request_bootstrapping_method;
/*
Sequence of values which further specify the published service beyond
the service name.
*/
u16 service_specific_info_len;
u8 service_specific_info[NAN_MAX_SERVICE_SPECIFIC_INFO_LEN];
/*
Sequence of values indicating the service specific info in SDEA
Used for service managed bootstrapping method
*/
u16 sdea_service_specific_info_len;
u8 sdea_service_specific_info[NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN];
/* The length of cookie. */
u32 cookie_length;
@ -2924,10 +2944,35 @@ typedef struct {
*/
u32 service_instance_id;
/* Discovery MAC addr of the peer/initiator */
u8 peer_disc_mac_addr[NAN_MAC_ADDR_LEN];
/*
Sequence of values which further specify the published service beyond
the service name.
*/
u16 service_specific_info_len;
u8 service_specific_info[NAN_MAX_SERVICE_SPECIFIC_INFO_LEN];
/*
Sequence of values indicating the service specific info in SDEA
Used for service managed bootstrapping method
*/
u16 sdea_service_specific_info_len;
u8 sdea_service_specific_info[NAN_MAX_SDEA_SERVICE_SPECIFIC_INFO_LEN];
/* Response Code indicating ACCEPT/REJECT */
NanBootstrappingResponseCode rsp_code;
/* The delay of bootstrapping in seconds */
u32 come_back_delay;
/* The length of cookie. */
u32 cookie_length;
/* Cookie for the follow up response */
u8 cookie[];
} NanBootstrappingIndicationResponse;
/*