소스 검색

qcacmn: Set "agile_precac_active" for all applicable pdevs

Currently, "agile_precac_active" is set only after receiving the start
event in the init state. "agile_precac_active" indicates whether adfs is
supported in the radio or not. This has to be set based on the agile precac
enabled check when the vap is brought up and when the event
DFS_AGILE_SM_EV_AGILE_START is sent to DFS Agile State Machine.

Change-Id: I2084d6d413ee11fa9f77026326dab79aafcd64fb
Vignesh U 3 년 전
부모
커밋
23be35ae70
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      umac/dfs/dispatcher/src/wlan_dfs_utils_api.c

+ 3 - 0
umac/dfs/dispatcher/src/wlan_dfs_utils_api.c

@@ -1356,6 +1356,7 @@ void utils_dfs_agile_sm_deliver_evt(struct wlan_objmgr_pdev *pdev,
 {
 	struct wlan_dfs *dfs;
 	void *event_data;
+	struct dfs_soc_priv_obj *dfs_soc_obj;
 
 	if (!tgt_dfs_is_5ghz_supported_in_pdev(pdev))
 		return;
@@ -1369,6 +1370,8 @@ void utils_dfs_agile_sm_deliver_evt(struct wlan_objmgr_pdev *pdev,
 	if (!dfs_is_agile_cac_enabled(dfs))
 		return;
 
+	dfs_soc_obj = dfs->dfs_soc_obj;
+	dfs_soc_obj->dfs_priv[dfs->dfs_psoc_idx].agile_precac_active = true;
 	event_data = (void *)dfs;
 
 	dfs_agile_sm_deliver_evt(dfs->dfs_soc_obj,