qcacmn: Define T2LM control parameters

Define TID to link mapping control field parameters.

Change-Id: I450debf709e89146e440e314ea997461de4e956b
CRs-Fixed: 3245435
This commit is contained in:
Amruta Kulkarni
2022-07-15 16:54:08 -07:00
committed by Madan Koyyalamudi
parent 234fb9ad6c
commit ebeaf9b564

View File

@@ -2570,9 +2570,20 @@ struct wlan_ie_tid_to_link_mapping {
uint8_t data[]; uint8_t data[];
} qdf_packed; } 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 /* The variable length data in wlan_ie_tid_to_link_mapping structure has the
* following fields. * 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 presence indicator (0 or 1 octet)
* - Link mapping of TID 0(optional) to TID 7(optional). Each field has 0 or 2 * - Link mapping of TID 0(optional) to TID 7(optional). Each field has 0 or 2
* octets. * octets.
@@ -2585,7 +2596,13 @@ struct wlan_ie_tid_to_link_mapping {
/* Default link mapping */ /* Default link mapping */
#define WLAN_T2LM_CONTROL_DEFAULT_LINK_MAPPING_IDX 2 #define WLAN_T2LM_CONTROL_DEFAULT_LINK_MAPPING_IDX 2
#define WLAN_T2LM_CONTROL_DEFAULT_LINK_MAPPING_BITS 1 #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 */ /* 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