qcacmn: Update assoc resp ie len and ptr in connect response
Update assoc resp ie len and ptr in connect response Change-Id: I31f175da43fe1548aa9621320339bd242c8d67d1
This commit is contained in:

committed by
Madan Koyyalamudi

parent
32caa92ae8
commit
4aa4060acf
@@ -43,6 +43,19 @@ void osif_cm_get_assoc_req_ie_data(struct element_info *assoc_req,
|
||||
*ie_data_len = assoc_req->len - WLAN_ASSOC_REQ_IES_OFFSET;
|
||||
*ie_data_ptr = assoc_req->ptr + WLAN_ASSOC_REQ_IES_OFFSET;
|
||||
}
|
||||
#else
|
||||
void osif_cm_get_assoc_req_ie_data(struct element_info *assoc_req,
|
||||
size_t *ie_data_len,
|
||||
const uint8_t **ie_data_ptr)
|
||||
{
|
||||
/* Validate IE and length */
|
||||
if (!assoc_req->len || !assoc_req->ptr)
|
||||
return;
|
||||
|
||||
*ie_data_len = assoc_req->len;
|
||||
*ie_data_ptr = assoc_req->ptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
void osif_cm_get_assoc_rsp_ie_data(struct element_info *assoc_rsp,
|
||||
size_t *ie_data_len,
|
||||
@@ -57,34 +70,6 @@ void osif_cm_get_assoc_rsp_ie_data(struct element_info *assoc_rsp,
|
||||
*ie_data_ptr = assoc_rsp->ptr + WLAN_ASSOC_RSP_IES_OFFSET;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void osif_cm_get_assoc_req_ie_data(struct element_info *assoc_req,
|
||||
size_t *ie_data_len,
|
||||
const uint8_t **ie_data_ptr)
|
||||
{
|
||||
/* Validate IE and length */
|
||||
if (!assoc_req->len || !assoc_req->ptr)
|
||||
return;
|
||||
|
||||
*ie_data_len = assoc_req->len;
|
||||
*ie_data_ptr = assoc_req->ptr;
|
||||
}
|
||||
|
||||
void osif_cm_get_assoc_rsp_ie_data(struct element_info *assoc_rsp,
|
||||
size_t *ie_data_len,
|
||||
const uint8_t **ie_data_ptr)
|
||||
{
|
||||
/* Validate IE and length */
|
||||
if (!assoc_rsp->len || !assoc_rsp->ptr)
|
||||
return;
|
||||
|
||||
*ie_data_len = assoc_rsp->len;
|
||||
*ie_data_ptr = assoc_rsp->ptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* osif_validate_connect_and_reset_src_id() - Validate connect response and
|
||||
* resets source and id
|
||||
|
Reference in New Issue
Block a user