mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacmn: Add SAR V2 support
Add changes to support SAR V2 power limits Change-Id: Ife7af8db51a45660bc27d1e5b857e38f4dd40935 CRs-Fixed: 2217069
This commit is contained in:
parent
0c45b0848f
commit
762ad5db89
8 changed files with 196 additions and 2 deletions
|
|
@ -280,6 +280,7 @@ struct wlan_psoc_host_chainmask_table {
|
|||
* @num_chainmask_tables: Number of chain mask tables.
|
||||
* @num_dbr_ring_caps: Number of direct buf rx ring capabilities
|
||||
* @chainmask_table: Available chain mask tables.
|
||||
* @sar_version: SAR version info
|
||||
*/
|
||||
struct wlan_psoc_host_service_ext_param {
|
||||
uint32_t default_conc_scan_config_bits;
|
||||
|
|
@ -295,6 +296,7 @@ struct wlan_psoc_host_service_ext_param {
|
|||
uint32_t num_dbr_ring_caps;
|
||||
struct wlan_psoc_host_chainmask_table
|
||||
chainmask_table[PSOC_MAX_CHAINMASK_TABLES];
|
||||
uint32_t sar_version;
|
||||
};
|
||||
|
||||
#endif /* _SERVICE_READY_PARAM_H_*/
|
||||
|
|
|
|||
|
|
@ -197,6 +197,20 @@ static int get_hw_mode(void *handle, uint8_t *evt, uint8_t hw_idx,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int get_sar_version(void *handle, uint8_t *evt,
|
||||
struct wlan_psoc_host_service_ext_param *ext_param)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
|
||||
status = wmi_extract_sar_cap_service_ready_ext(handle, evt, ext_param);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
target_if_err("failed to parse sar capability");
|
||||
return qdf_status_to_os_return(status);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int init_deinit_populate_hw_mode_capability(void *wmi_handle,
|
||||
uint8_t *event, struct target_psoc_info *tgt_hdl)
|
||||
{
|
||||
|
|
@ -239,6 +253,9 @@ int init_deinit_populate_hw_mode_capability(void *wmi_handle,
|
|||
target_if_info("num radios is %d\n", info->num_radios);
|
||||
}
|
||||
}
|
||||
status = get_sar_version(wmi_handle, event, &info->service_ext_param);
|
||||
target_if_info("sar version %d",
|
||||
info->service_ext_param.sar_version);
|
||||
|
||||
return_exit:
|
||||
return qdf_status_to_os_return(status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue