Эх сурвалжийг харах

qcacmn: Define Multi-Link Traffic Indication element

Add structure to define Multi-Link Traffic Indication element.
Add a variable in vdev AID manager to keep track of the number of T2LM
clients connected.

Change-Id: Iaba49ac93180f702e23cf9844e19f46a15afb129
CRs-Fixed: 3201075
Shashikala Prabhu 3 жил өмнө
parent
commit
42be98cc24

+ 21 - 0
umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

@@ -597,6 +597,7 @@ enum element_ie {
  * @WLAN_EXTN_ELEMID_MULTI_LINK: Multi-Link IE
  * @WLAN_EXTN_ELEMID_MULTI_LINK: Multi-Link IE
  * @WLAN_EXTN_ELEMID_EHTCAP: EHT Capabilities IE
  * @WLAN_EXTN_ELEMID_EHTCAP: EHT Capabilities IE
  * @WLAN_EXTN_ELEMID_T2LM: TID-to-link mapping IE
  * @WLAN_EXTN_ELEMID_T2LM: TID-to-link mapping IE
+ * @WLAN_EXTN_ELEMID_MULTI_LINK_TRAFFIC_IND: Multi-link Traffic Indication IE
  */
  */
 enum extn_element_ie {
 enum extn_element_ie {
 	WLAN_EXTN_ELEMID_HECAP       = 35,
 	WLAN_EXTN_ELEMID_HECAP       = 35,
@@ -617,6 +618,7 @@ enum extn_element_ie {
 	WLAN_EXTN_ELEMID_EHTCAP      = 108,
 	WLAN_EXTN_ELEMID_EHTCAP      = 108,
 #endif
 #endif
 	WLAN_EXTN_ELEMID_T2LM        = 109,
 	WLAN_EXTN_ELEMID_T2LM        = 109,
+	WLAN_EXTN_ELEMID_MULTI_LINK_TRAFFIC_IND = 110,
 };
 };
 
 
 /**
 /**
@@ -2285,6 +2287,25 @@ struct wlan_ie_tid_to_link_mapping {
 /* Link mapping presence indicator */
 /* Link mapping presence indicator */
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_IDX   8
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_IDX   8
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_BITS  8
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_BITS  8
+
+/**
+ * struct wlan_ie_multi_link_traffic_indication - Multi-link traffic indication
+ * element
+ * @elem_id: Multi-link traffic indication IE
+ * @elem_len: Multi-link traffic indication IE length
+ * @elem_id_extn: Multi-link traffic indication extension ID
+ * @ml_traffic_ind_control: Multi-link traffic indication control
+ * @per_link_traffic_ind_list: Indicates the per-link traffic indication. Each
+ *                             bit in the per_link_traffic_ind_list corresponds
+ *                             to a link of the MLD.
+ */
+struct wlan_ie_multi_link_traffic_indication {
+	uint8_t elem_id;
+	uint8_t elem_len;
+	uint8_t elem_id_extn;
+	uint16_t ml_traffic_ind_control;
+	uint16_t per_link_traffic_ind_list[];
+} qdf_packed;
 #endif /* WLAN_FEATURE_T2LM */
 #endif /* WLAN_FEATURE_T2LM */
 
 
 /**
 /**