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:
Kiran Venkatappa
2017-09-01 17:02:34 +05:30
committed by snandini
parent 5f1ccf6b7e
commit 7d73914da9
4 changed files with 133 additions and 22 deletions

View File

@@ -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;
}