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