소스 검색

qcacmn: Return agile precac enable as false when DFS object is null

DFS component's pdev private object allocation is skipped in
few scenarios. In this case return agile precac enable as false.

CRs-Fixed: 2853435
Change-Id: I7725e9bcbd05b2c9f1b1ee217cc8eb8a2df8144a
Edayilliam Jayadev 4 년 전
부모
커밋
1dfb6de288
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c

+ 4 - 3
umac/dfs/dispatcher/src/wlan_dfs_ucfg_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -175,8 +175,9 @@ QDF_STATUS ucfg_dfs_get_agile_precac_enable(struct wlan_objmgr_pdev *pdev,
 
 	dfs = wlan_pdev_get_dfs_obj(pdev);
 	if (!dfs) {
-		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "null dfs");
-		return QDF_STATUS_E_FAILURE;
+		dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS, "null dfs");
+		*buff = false;
+		return QDF_STATUS_SUCCESS;
 	}
 
 	*buff = dfs_is_agile_precac_enabled(dfs);