qcacld-3.0: Handle TWT disable reason code

When host sends TWT disable command to firmware, send reason code
also as part of it. So that firmware will check and take the
following action:
a. If host sends disable due SCC/MCC concurrency then firmware
will teardown the existing TWT session and send the teardown
reason code as concurrency to host.
b. If it's for other reason then it will take action based on
that.

Change-Id: I66b3d10e7d54319c3c6dcad57c78949bcdd11a26
CRs-Fixed: 3098864
This commit is contained in:
Jyoti Kumari
2021-12-16 14:05:23 +05:30
committed by Madan Koyyalamudi
父節點 c73d3bfa93
當前提交 ff2b20e3f3
共有 5 個文件被更改,包括 219 次插入49 次删除

查看文件

@@ -62,22 +62,24 @@ int osif_twt_send_responder_enable_cmd(struct wlan_objmgr_psoc *psoc,
* to target
* @psoc: pointer to global psoc structure
* @pdev_id: pdev id
* @reason: disable reason code
*
* Return: errno
*/
int osif_twt_send_requestor_disable_cmd(struct wlan_objmgr_psoc *psoc,
uint8_t pdev_id);
uint8_t pdev_id, uint32_t reason);
/**
* osif_twt_send_responder_disable_cmd() - Send TWT responder disable command
* to target
* @psoc: pointer to global psoc structure
* @pdev_id: pdev id
* @reason: disable reason code
*
* Return: errno
*/
int osif_twt_send_responder_disable_cmd(struct wlan_objmgr_psoc *psoc,
uint8_t pdev_id);
uint8_t pdev_id, uint32_t reason);
/**
* osif_twt_concurrency_update_handler() - Handle TWT concurrency scenario
@@ -91,7 +93,7 @@ void osif_twt_concurrency_update_handler(struct wlan_objmgr_psoc *psoc,
#else
static inline
int osif_twt_send_requestor_disable_cmd(struct wlan_objmgr_psoc *psoc,
uint8_t pdev_id)
uint8_t pdev_id, uint32_t reason)
{
return 0;
}