qcacmn: Add r-twt related changes

Add changes to read R-TWT svc bit from FW and update capabilities on
host accordingly. Update add twt session command to include new
params required for R-TWT.

Change-Id: I91cea65ef737b6fa445cb3680dac15e0f1063446
CRs-Fixed: 3399205
This commit is contained in:
Kiran Venkatappa
2023-01-09 16:24:37 +05:30
committed by Madan Koyyalamudi
parent f518df0727
commit 7260b2db76
12 changed files with 93 additions and 3 deletions

View File

@@ -152,6 +152,7 @@ enum TWT_OPERATION {
* @b_twt_enable: Enable or disable broadcast TWT.
* @b_twt_legacy_mbss_enable: Enable or disable legacy MBSSID TWT.
* @b_twt_ax_mbss_enable: Enable or disable 11AX MBSSID TWT.
* @r_twt_enable: Restricted TWT enable or disable.
*/
struct twt_enable_param {
uint32_t pdev_id;
@@ -177,6 +178,7 @@ struct twt_enable_param {
uint32_t b_twt_enable:1,
b_twt_legacy_mbss_enable:1,
b_twt_ax_mbss_enable:1;
bool r_twt_enable;
};
/**
@@ -457,6 +459,9 @@ enum HOST_TWT_COMMAND {
* @b_twt_persistence: Countdown VAL frames to param update/teardown
* @wake_time_tsf: Absolute TSF value to start first TWT service period
* @announce_timeout_us: Timeout value before sending QoS NULL frame.
* @link_id_bitmap: MLD links to which R-TWT element applies
* @r_twt_dl_tid_bitmap: DL TIDs for R-TWT scheduling
* @r_twt_ul_tid_bitmap: UL TIDs for R-TWT scheduling
*/
struct twt_add_dialog_param {
uint32_t vdev_id;
@@ -482,6 +487,9 @@ struct twt_add_dialog_param {
b_twt_recommendation:3;
uint64_t wake_time_tsf;
uint32_t announce_timeout_us;
uint32_t link_id_bitmap;
uint32_t r_twt_dl_tid_bitmap;
uint32_t r_twt_ul_tid_bitmap;
};
/**

View File

@@ -302,4 +302,15 @@ QDF_STATUS
ucfg_twt_get_peer_capabilities(struct wlan_objmgr_psoc *psoc,
struct qdf_mac_addr *peer_mac,
uint8_t *peer_cap);
/**
* ucfg_twt_get_restricted_twt_supported() - Get tgt restricted-twt
* support caps
* @psoc: psoc handle
* @val: pointer to get caps enabled/disabled
*
* return: QDF_STATUS
*/
QDF_STATUS ucfg_twt_get_restricted_twt_supported(struct wlan_objmgr_psoc *psoc,
bool *val);
#endif /* _WLAN_TWT_UCFG_API_H_ */