qcacld-3.0: Add cfg for t2lm negotiation supported

Changes to add cfg item for t2lm negotiation support

Change-Id: I94992f5bc8142325434223c59ebbcedd86aa0ff9
CRs-Fixed: 3236628
这个提交包含在:
Amruta Kulkarni
2022-06-29 17:39:47 -07:00
提交者 Madan Koyyalamudi
父节点 1ef96b5fb6
当前提交 ad7dfc2ab6
修改 6 个文件,包含 155 行新增4 行删除

查看文件

@@ -31,6 +31,8 @@
* enum monitor_mode_concurrency - Monitor mode concurrency
* @MONITOR_MODE_CONC_NO_SUPPORT: No concurrency supported with monitor mode
* @MONITOR_MODE_CONC_STA_SCAN_MON: STA + monitor mode concurrency is supported
* @MONITOR_MODE_CONC_AFTER_LAST: last value in enum
* @MONITOR_MODE_CONC_MAX: max value supported
*/
enum monitor_mode_concurrency {
MONITOR_MODE_CONC_NO_SUPPORT,
@@ -43,7 +45,8 @@ enum monitor_mode_concurrency {
* enum wds_mode_type: wds mode
* @WLAN_WDS_MODE_DISABLED: WDS is disabled
* @WLAN_WDS_MODE_REPEATER: WDS repeater mode
*
* @WLAN_WDS_MODE_LAST: last value in enum
* @WLAN_WDS_MODE_MAX: max value supported
* This is used for 'type' values in wds_mode
*/
enum wlan_wds_mode {
@@ -71,6 +74,28 @@ enum debug_packet_log_type {
DEBUG_PKTLOG_TYPE_ARP = 0x10,
};
/**
* enum t2lm_negotiation_support: t2lm negotiation supported
* @T2LM_NEGOTIATION_DISABLED: T2LM is disabled
* @T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS: supports the mapping
* of all TIDs to the same link set both DL and UL.
* @T2LM_NEGOTIATION_RESERVED:
* this mapping value is reserved.
* @T2LM_NEGOTIATION_DISJOINT_MAPPING: supports the mapping of
* each TID to the same or different link set.
* @T2LM_NEGOTIATION_LAST: last value in enum
* @T2LM_NEGOTIATION_MAX: max value supported
*/
enum t2lm_negotiation_support {
T2LM_NEGOTIATION_DISABLED = 0,
T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS = 1,
T2LM_NEGOTIATION_RESERVED = 2,
T2LM_NEGOTIATION_DISJOINT_MAPPING = 3,
T2LM_NEGOTIATION_LAST,
/* keep this last */
T2LM_NEGOTIATION_MAX = T2LM_NEGOTIATION_LAST - 1,
};
/*
* pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
* @Min: 0
@@ -1058,6 +1083,36 @@ enum debug_packet_log_type {
#define CFG_SR_ENABLE_MODES_ALL
#endif
#ifdef WLAN_FEATURE_11BE_MLO
/*
* t2lm_negotiation_support - T2LM negotiation support by STA
* @Min: 0
* @Max: 3
* @Default: 1
*
* This cfg is used to define t2lm negotiation supported value by STA
* If 0 - t2lm negotiation is not supported
* If 1 - supports the mapping of all TIDs to the same link set both DL and UL.
* If 2 - reserved
* If 3 - supports the mapping of each TID to the same or different link set.
*
* Related: None
*
* Supported Feature: STA
*/
#define CFG_T2LM_NEGOTIATION_SUPPORT CFG_UINT( \
"t2lm_negotiation_supported", \
T2LM_NEGOTIATION_DISABLED, \
T2LM_NEGOTIATION_DISJOINT_MAPPING, \
T2LM_NEGOTIATION_ALL_TIDS_TO_SUBSET_OF_LINKS, \
CFG_VALUE_OR_DEFAULT, \
"T2LM negotiation supported value")
#define CFG_T2LM_NEGOTIATION_SUPPORTED CFG(CFG_T2LM_NEGOTIATION_SUPPORT)
#else
#define CFG_T2LM_NEGOTIATION_SUPPORTED
#endif
#define CFG_GENERIC_ALL \
CFG(CFG_ENABLE_DEBUG_PACKET_LOG) \
CFG(CFG_PMF_SA_QUERY_MAX_RETRIES) \
@@ -1098,5 +1153,6 @@ enum debug_packet_log_type {
CFG(CFG_MGMT_FRAME_HW_TX_RETRY_COUNT) \
CFG_RELAX_6GHZ_CONN_POLICY \
CFG_EMLSR_MODE_ENABLED \
CFG_SR_ENABLE_MODES_ALL
CFG_SR_ENABLE_MODES_ALL \
CFG_T2LM_NEGOTIATION_SUPPORTED
#endif /* __CFG_MLME_GENERIC_H */

查看文件

@@ -2519,6 +2519,28 @@ wlan_mlme_set_eml_params(struct wlan_objmgr_psoc *psoc,
void
wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
struct wlan_mlo_eml_cap *cap);
/**
* wlan_mlme_get_t2lm_negotiation_supported() - Get the T2LM
* negotiation supported value
* @psoc: psoc context
*
* Return: t2lm negotiation supported value
*/
enum t2lm_negotiation_support
wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc);
/**
* wlan_mlme_set_t2lm_negotiation_supported() - Set the T2LM
* negotiation supported value
* @psoc: psoc context
* @value: t2lm negotiation supported value
*
* Return: qdf status
*/
QDF_STATUS
wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
uint8_t value);
#else
static inline QDF_STATUS
wlan_mlme_get_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
@@ -2544,6 +2566,19 @@ wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
struct wlan_mlo_eml_cap *cap)
{
}
static inline enum t2lm_negotiation_support
wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc)
{
return T2LM_NEGOTIATION_DISABLED;
}
static inline QDF_STATUS
wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
uint8_t value)
{
return QDF_STATUS_E_NOSUPPORT;
}
#endif
/**

查看文件

@@ -1344,6 +1344,7 @@ struct wlan_user_mcc_quota {
* @tx_retry_multiplier: TX xretry extension parameter
* @mgmt_hw_tx_retry_count: MGMT HW tx retry count for frames
* @relaxed_6ghz_conn_policy: 6GHz relaxed connection policy
* @t2lm_negotiation_support: T2LM negotiation supported enum value
* @enable_emlsr_mode: 11BE eMLSR mode support
* @safe_mode_enable: safe mode to bypass some strict 6 GHz checks for
* connection, bypass strict power levels
@@ -1401,6 +1402,7 @@ struct wlan_mlme_generic {
#endif
#ifdef WLAN_FEATURE_11BE_MLO
bool enable_emlsr_mode;
enum t2lm_negotiation_support t2lm_negotiation_support;
#endif
#ifdef WLAN_FEATURE_MCC_QUOTA
struct wlan_user_mcc_quota user_mcc_quota;