qcacmn: Add support to extract link removal TLVs from MGMT Rx event

To assist the Host in ML reconfiguration element construction for probe
responses, FW sends MLO link removal information as part of the MGMT Rx
event containing the corresponding probe request. This information is an
array of TLVs, one TLV for each link that is undergoing link removal from
the MLD for which this probe request is intended. The TLV carries the link
removal TBTT countdown value maintained by the FW for that link.
Add support to extract the same.

CRs-Fixed: 3335361
Change-Id: I16c6791a443ddb166da596d404a52ff2a38da291
This commit is contained in:
Shiva Krishna Pittala
2022-11-13 04:36:35 +05:30
committed by Madan Koyyalamudi
parent 22be442546
commit 11fa724d8a
11 changed files with 224 additions and 6 deletions

View File

@@ -194,6 +194,22 @@ uint8_t *peer_delete_add_mlo_params(uint8_t *buf_ptr,
* @wmi_handle: WMI handle
*/
void wmi_11be_attach_tlv(wmi_unified_t wmi_handle);
/**
* extract_mgmt_rx_mlo_link_removal_tlv_count() - Extract the number of link
* removal TLVs from MGMT Rx event
* @num_link_removal_tlvs: Number of link removal TLVs
* @hdr: MGMT Rx event parameters to be populated
*
* Return: None
*/
static inline void
extract_mgmt_rx_mlo_link_removal_tlv_count(
int num_link_removal_tlvs,
struct mgmt_rx_event_params *hdr)
{
hdr->num_link_removal_info = num_link_removal_tlvs;
}
#else
static uint8_t *vdev_create_add_mlo_params(uint8_t *buf_ptr,
struct vdev_create_params *param)
@@ -323,5 +339,12 @@ static uint8_t *peer_delete_add_mlo_params(uint8_t *buf_ptr,
static void wmi_11be_attach_tlv(wmi_unified_t wmi_handle)
{ }
static inline void
extract_mgmt_rx_mlo_link_removal_tlv_count(
int num_link_removal_tlvs,
struct mgmt_rx_event_params *hdr)
{
}
#endif /*WLAN_FEATURE_11BE_MLO*/
#endif /*_WMI_UNIFIED_11BE_TLV_H_*/