diff --git a/umac/dfs/core/src/misc/dfs.c b/umac/dfs/core/src/misc/dfs.c index 2cb1ae5e55ad..b1d525294023 100644 --- a/umac/dfs/core/src/misc/dfs.c +++ b/umac/dfs/core/src/misc/dfs.c @@ -677,28 +677,8 @@ int dfs_control(struct wlan_dfs *dfs, qdf_mem_zero(&dfs_unit_test, sizeof(dfs_unit_test)); - /* dfs is dereferenced (dfs->dfs_ignore_dfs) when dfs is NULL */ if (!dfs) { - dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs is NULL"); - /* - * Enable/Disable DFS can be done prior to attach, - * So handle here. - */ - switch (id) { - case DFS_DISABLE_DETECT: - dfs->dfs_ignore_dfs = 1; - dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS, "enable detects, ignore_dfs %d", - dfs->dfs_ignore_dfs ? 1:0); - break; - case DFS_ENABLE_DETECT: - dfs->dfs_ignore_dfs = 0; - dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS, "enable detects, ignore_dfs %d", - dfs->dfs_ignore_dfs ? 1:0); - break; - default: - error = -EINVAL; - break; - } + dfs_err(NULL, WLAN_DEBUG_DFS_ALWAYS, "dfs is NULL"); goto bad; } diff --git a/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c b/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c index 093716199d52..047907e5a861 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c @@ -219,7 +219,7 @@ QDF_STATUS tgt_dfs_process_radar_ind(struct wlan_objmgr_pdev *pdev, struct wlan_dfs *dfs; if (!pdev) { - dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "null pdev"); + dfs_err(NULL, WLAN_DEBUG_DFS_ALWAYS, "null pdev"); return QDF_STATUS_E_FAILURE; }