瀏覽代碼

qcacmn: Remove phyerr filter offload check

Currently if ini config dfsPhyerrFilterOffload is set zero on Rome
attached Platform, wlan interface will fail when do interface up.
This makes no sense, since ini configure can be set to zero, also
in this case host can handle the phyerr event instead.

Remove this check in target_if_reg_phyerr_events_dfs2.

Change-Id: Ie33072c8d40925eb550bd820462fc9ab93f0e0c0
CRs-Fixed: 2286382
Frank Liu 6 年之前
父節點
當前提交
c2241bc64f
共有 1 個文件被更改,包括 4 次插入15 次删除
  1. 4 15
      target_if/dfs/src/target_if_dfs.c

+ 4 - 15
target_if/dfs/src/target_if_dfs.c

@@ -164,22 +164,11 @@ static int target_if_radar_event_handler(
 static QDF_STATUS target_if_reg_phyerr_events_dfs2(
 				struct wlan_objmgr_psoc *psoc)
 {
-	int ret = -1;
-	struct wlan_lmac_if_dfs_rx_ops *dfs_rx_ops;
-	bool is_phyerr_filter_offload;
-
-	dfs_rx_ops = target_if_dfs_get_rx_ops(psoc);
-
-	if (dfs_rx_ops && dfs_rx_ops->dfs_is_phyerr_filter_offload)
-		if (QDF_IS_STATUS_SUCCESS(
-			dfs_rx_ops->dfs_is_phyerr_filter_offload(psoc,
-						&is_phyerr_filter_offload)))
-			if (is_phyerr_filter_offload)
-				ret = wmi_unified_register_event(
-						get_wmi_unified_hdl_from_psoc(psoc),
-						wmi_dfs_radar_event_id,
-						target_if_radar_event_handler);
+	int ret;
 
+	ret = wmi_unified_register_event(get_wmi_unified_hdl_from_psoc(psoc),
+					 wmi_dfs_radar_event_id,
+					 target_if_radar_event_handler);
 	if (ret) {
 		target_if_err("failed to register wmi_dfs_radar_event_id");
 		return QDF_STATUS_E_FAILURE;