qcacmn: set 'dfs' parameter if host and fw supports 320 MHz

Set dfs object parameter if host and fw supports 320 MHz bandwidth.
i.e. dfs->dfs_is_bangradar_320_enabled. Set to true if the host and
firmware support the bandwidth is 320 MHz. If there is no support, set
false.

Change-Id: I210823c448450f89dc65937201b4839168369d18
CRs-Fixed: 3270525
Este commit está contenido en:
Jithender Miryala
2022-08-17 17:10:07 +05:30
cometido por Madan Koyyalamudi
padre 354a68e77c
commit 26bf9ca291
Se han modificado 4 ficheros con 38 adiciones y 0 borrados

Ver fichero

@@ -214,6 +214,26 @@ static bool target_if_dfs_offload(struct wlan_objmgr_psoc *psoc)
wmi_service_dfs_phyerr_offload);
}
/**
* target_if_dfs_bangradar_320_supp: Check the service of
* 'wmi_service_bang_radar_320_support' whether the bang radar 320 is
* supported or not. If the service is enabled, then it returns true.
*/
static bool target_if_dfs_bangradar_320_supp(struct wlan_objmgr_psoc *psoc)
{
wmi_unified_t wmi_handle;
wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
if (!wmi_handle) {
target_if_err("null wmi_handle");
return false;
}
return wmi_service_enabled(wmi_handle,
wmi_service_bang_radar_320_support);
}
#ifdef WLAN_FEATURE_11BE
/**
* target_if_dfs_is_radar_found_chan_freq_eq_center_freq: Check whether the
@@ -449,6 +469,8 @@ QDF_STATUS target_if_register_dfs_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
target_if_register_dfs_tx_ops_send_avg(dfs_tx_ops);
dfs_tx_ops->dfs_is_tgt_offload = &target_if_dfs_offload;
dfs_tx_ops->dfs_is_tgt_bangradar_320_supp =
&target_if_dfs_bangradar_320_supp;
dfs_tx_ops->dfs_is_tgt_radar_found_chan_freq_eq_center_freq =
&target_if_dfs_is_radar_found_chan_freq_eq_center_freq;