Browse Source

qcacmn: Define T2LM control parameters

Define TID to link mapping control field parameters.

Change-Id: I450debf709e89146e440e314ea997461de4e956b
CRs-Fixed: 3245435
Amruta Kulkarni 3 years ago
parent
commit
ebeaf9b564
1 changed files with 19 additions and 2 deletions
  1. 19 2
      umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

+ 19 - 2
umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

@@ -2570,9 +2570,20 @@ struct wlan_ie_tid_to_link_mapping {
 	uint8_t data[];
 } qdf_packed;
 
+/* Size in octets of Tid to Link mapping control */
+#define WLAN_T2LM_CTRL_SIZE                                     2
+/* Size in octets of Mapping switch time size */
+#define WLAN_T2LM_MAPPING_SWITCH_TIME_SIZE                      2
+/* Size in octets of Expected duration size */
+#define WLAN_T2LM_EXPECTED_DURATION_SIZE                        3
+/* Size in octets of Link mapping of TID 0-7 size */
+#define WLAN_T2LM_LINK_MAPPING_SIZE                             2
+
 /* The variable length data in wlan_ie_tid_to_link_mapping structure has the
  * following fields.
- * - TID-to-link mapping control ( 1 octet)
+ * - TID-to-link mapping control (2 octet)
+ * - Mapping switch time (0 or 2 octet)
+ * - Expected duration (0 or 3 octet)
  * - Link mapping presence indicator (0 or 1 octet)
  * - Link mapping of TID 0(optional) to TID 7(optional). Each field has 0 or 2
  *   octets.
@@ -2585,7 +2596,13 @@ struct wlan_ie_tid_to_link_mapping {
 /* Default link mapping */
 #define WLAN_T2LM_CONTROL_DEFAULT_LINK_MAPPING_IDX              2
 #define WLAN_T2LM_CONTROL_DEFAULT_LINK_MAPPING_BITS             1
-/* Bit3 to Bit7 are reserved*/
+/* Mapping switch time present bit */
+#define WLAN_T2LM_CONTROL_MAPPING_SWITCH_TIME_PRESENT_IDX       3
+#define WLAN_T2LM_CONTROL_MAPPING_SWITCH_TIME_PRESENT_BITS      1
+/* Expected duration present bit */
+#define WLAN_T2LM_CONTROL_EXPECTED_DURATION_PRESENT_IDX         4
+#define WLAN_T2LM_CONTROL_EXPECTED_DURATION_PRESENT_BITS        1
+/* Bits 5-7 are reserved */
 /* Link mapping presence indicator */
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_IDX   8
 #define WLAN_T2LM_CONTROL_LINK_MAPPING_PRESENCE_INDICATOR_BITS  8