qcacmn: Add TWT service bit capability support for ack event

Add TWT service bit capability support to check whether firmware
supports ack event or not. If firmware doesn't support ack event
then service bit capability will become 0 and whenever TWT
command comes, host will not wait for ack event and sends command
in a legacy way.

This support is mainly added to handle new host and old firmware
combination.

Change-Id: I55d373c2e017130b58a4b332da16f0eda8f34eba
CRs-Fixed: 2987749
This commit is contained in:
Jyoti Kumari
2021-06-24 00:49:44 +05:30
committed by Madan Koyyalamudi
parent 4c655bacbd
commit 43c413bc3b
10 changed files with 162 additions and 1 deletions

View File

@@ -326,4 +326,19 @@ static void wmi_twt_attach_tlv(struct wmi_unified *wmi_handle)
}
#endif
/**
* wmi_extract_twt_cap_service_ready_ext2: Extract TWT bitmap value
* received through extended
* service ready2 event
* @wmi_handle: WMI handle
* @evt_buf: Event buffer
* @param: Pointer to TWT bitmap param
*
* Return: QDF_STATUS_SUCCESS for success or error code
*/
QDF_STATUS wmi_extract_twt_cap_service_ready_ext2(
wmi_unified_t wmi_handle,
uint8_t *evt_buf,
struct wmi_twt_cap_bitmap_params *params);
#endif /* _WMI_UNIFIED_TWT_API_H_ */