qcacld-3.0: Add ini to support twt in 11n mode

Currently TWT works only in 11ax. Add enable_twt_in_11n
ini to support TWT in 11n mode.
False: DO not support TWT in 11n mode
True: Support TWT in 11n mode

Change-Id: If1011c9a24b9c285199d7b0e60e5614d6c1f8786
CRs-Fixed: 3185100
Bu işleme şunda yer alıyor:
Jyoti Kumari
2022-03-19 23:44:39 +05:30
işlemeyi yapan: Madan Koyyalamudi
ebeveyn 090783be72
işleme abf8be9f56
6 değiştirilmiş dosya ile 81 ekleme ve 3 silme

Dosyayı Görüntüle

@@ -193,13 +193,37 @@
0, \
"HE Flex Twt Sched")
/*
* <ini>
* enable_twt_in_11n - Enable TWT support in 11n mode
* @MIN: 0
* @MAX: 1
* @Default: 0
*
* This ini is used to enable/disable TWT support 11n mode.
* Generally by default TWT support present from HE capable
* devices but if this ini is enabled then it will support
* partially from 11n mode itself.
*
* Related: NA
*
* Usage: External
*
* </ini>
*/
#define CFG_TWT_ENABLE_IN_11N CFG_INI_BOOL( \
"enable_twt_in_11n", \
false, \
"enable twt support in 11n mode")
#define CFG_TWT_ALL \
CFG(CFG_ENABLE_TWT) \
CFG(CFG_TWT_REQUESTOR) \
CFG(CFG_TWT_RESPONDER) \
CFG(CFG_TWT_CONGESTION_TIMEOUT) \
CFG(CFG_BCAST_TWT_REQ_RESP) \
CFG(CFG_ENABLE_TWT_24GHZ)
CFG(CFG_ENABLE_TWT_24GHZ) \
CFG(CFG_TWT_ENABLE_IN_11N)
#elif !defined(WLAN_SUPPORT_TWT) && !defined(WLAN_TWT_CONV_SUPPORTED)
#define CFG_TWT_ALL
#endif

Dosyayı Görüntüle

@@ -41,18 +41,36 @@ wlan_twt_cfg_get_req_flag(struct wlan_objmgr_psoc *psoc, bool *val);
*/
QDF_STATUS
wlan_twt_cfg_get_res_flag(struct wlan_objmgr_psoc *psoc, bool *val);
/**
* wlan_twt_cfg_get_support_in_11n() - Get TWT support on HT cap
* @psoc: Pointer to global psoc object
* @val: pointer to output variable
*
* Return: QDF_STATUS_SUCCESS
*/
QDF_STATUS
wlan_twt_cfg_get_support_in_11n(struct wlan_objmgr_psoc *psoc,
bool *val);
#else
static inline
static inline QDF_STATUS
wlan_twt_cfg_get_res_flag(struct wlan_objmgr_psoc *psoc, bool *val)
{
return QDF_STATUS_SUCCESS;
}
static inline
static inline QDF_STATUS
wlan_twt_cfg_get_req_flag(struct wlan_objmgr_psoc *psoc, bool *val)
{
return QDF_STATUS_SUCCESS;
}
static inline QDF_STATUS
wlan_twt_cfg_get_support_in_11n(struct wlan_objmgr_psoc *psoc,
bool *val)
{
return QDF_STATUS_SUCCESS;
}
#endif
#endif

Dosyayı Görüntüle

@@ -39,6 +39,7 @@
* @flex_twt_sched: flex twt scheduling enable/disable
* @req_flag: requestor flag enable/disable
* @res_flag: responder flag enable/disable
* @is_twt_enabled_in_11n: Enable TWT support in 11n mode
*/
struct twt_mc_cfg_params {
bool enable_twt;
@@ -51,6 +52,7 @@ struct twt_mc_cfg_params {
bool flex_twt_sched;
bool req_flag;
bool res_flag;
bool is_twt_enabled_in_11n;
};
#endif /* __WLAN_TWT_EXT_DEFS_H__ */