qcacmn: Clear peer-level negotiated T2LM mapping

Clear the peer-level tid-to-link mapping and set
direction to invalid if-
1) Host receives updated T2LM info through
critical update.
2) There are two T2LM elements received in beacons
and mapping switch time expires for first mapping.
Apply the second mapping.
3) There is a single T2LM element and its mapping
switch time expires. Apply default mapping.

Also, initialize peer-level mapping structure
when a new peer is created.

Change-Id: I1d06ec5f2f5aa398724213a3be08b6588f78c9b0
CRs-Fixed: 3435329
This commit is contained in:
Gururaj Pandurangi
2023-03-14 20:31:48 -07:00
committed by Madan Koyyalamudi
parent e9cae94508
commit a11201af17
3 changed files with 49 additions and 2 deletions

View File

@@ -868,4 +868,22 @@ wlan_send_peer_level_tid_to_link_mapping(struct wlan_objmgr_vdev *vdev,
return QDF_STATUS_SUCCESS;
}
#endif /* WLAN_FEATURE_11BE */
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_FEATURE_11BE_MLO_ADV_FEATURE)
/**
* wlan_clear_peer_level_tid_to_link_mapping() - API to clear peer level T2LM
* info negotiated using action frames to FW.
*
* @vdev: Pointer to vdev
*
* Return: none
*/
void
wlan_clear_peer_level_tid_to_link_mapping(struct wlan_objmgr_vdev *vdev);
#else
static inline void
wlan_clear_peer_level_tid_to_link_mapping(struct wlan_objmgr_vdev *vdev)
{
}
#endif
#endif /* _WLAN_MLO_T2LM_H_ */