qcacmn: Add support of extended service bitmap handling
Extended service bitmap is used by FW to indicate supported services bitmap for services excedding the current limitation of 128. Add support to save and use this bitmap to check services supported in FW. Also, change exisiting services bitmap to be dynamic allocated buffer to optimize the buffer used to save the bitmap. Change-Id: I24a0321bc1a06ee3aedf1c6acbc379e907bbd464 CRs-Fixed: 2103617
This commit is contained in:

committed by
snandini

parent
5f1ccf6b7e
commit
7d73914da9
@@ -4447,9 +4447,27 @@ QDF_STATUS wmi_save_service_bitmap(void *wmi_hdl, void *evt_buf,
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->save_service_bitmap) {
|
||||
wmi_handle->ops->save_service_bitmap(wmi_handle, evt_buf,
|
||||
return wmi_handle->ops->save_service_bitmap(wmi_handle, evt_buf,
|
||||
bitmap_buf);
|
||||
return 0;
|
||||
}
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_save_ext_service_bitmap() - save extended service bitmap
|
||||
* @wmi_handle: wmi handle
|
||||
* @param evt_buf: pointer to event buffer
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_save_ext_service_bitmap(void *wmi_hdl, void *evt_buf,
|
||||
void *bitmap_buf)
|
||||
{
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->save_ext_service_bitmap) {
|
||||
return wmi_handle->ops->save_ext_service_bitmap(wmi_handle,
|
||||
evt_buf, bitmap_buf);
|
||||
}
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user