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:

committed by
Madan Koyyalamudi

parent
4c655bacbd
commit
43c413bc3b
@@ -1999,6 +1999,13 @@ QDF_STATUS (*extract_sar_cap_service_ready_ext)(
|
||||
uint8_t *evt_buf,
|
||||
struct wlan_psoc_host_service_ext_param *ext_param);
|
||||
|
||||
#ifdef WLAN_SUPPORT_TWT
|
||||
QDF_STATUS (*extract_twt_cap_service_ready_ext2)(
|
||||
wmi_unified_t wmi_handle,
|
||||
uint8_t *evt_buf,
|
||||
struct wmi_twt_cap_bitmap_params *var);
|
||||
#endif
|
||||
|
||||
#ifdef WMI_DBR_SUPPORT
|
||||
QDF_STATUS (*send_dbr_cfg_cmd)(wmi_unified_t wmi_handle,
|
||||
struct direct_buf_rx_cfg_req *cfg);
|
||||
|
@@ -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_ */
|
||||
|
@@ -394,6 +394,15 @@ struct wmi_twt_add_dialog_complete_event_param {
|
||||
uint32_t num_additional_twt_params;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_twt_cap_bitmap_params -
|
||||
* twt_cap_bitmap: TWT capability bitmap
|
||||
*
|
||||
*/
|
||||
struct wmi_twt_cap_bitmap_params {
|
||||
uint32_t twt_ack_support_cap:1;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_twt_del_dialog_param -
|
||||
* @vdev_id: VDEV identifier
|
||||
|
Reference in New Issue
Block a user