Jelajahi Sumber

qcacld-3.0: Remove DFS check after cac end notify

DFS check cannot be on atomic channel, but full channel width.

Change-Id: I6f7ea80923db6ea96c995d1d5a2faf8b4576950f
CRs-Fixed: 2615778
Amar Singhal 5 tahun lalu
induk
melakukan
8bf9970419
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      core/sap/src/sap_fsm.c

+ 4 - 2
core/sap/src/sap_fsm.c

@@ -1997,8 +1997,10 @@ static QDF_STATUS sap_cac_end_notify(mac_handle_t mac_handle,
 			/* Don't check CAC for non-dfs channel */
 			profile = &sap_context->csr_roamProfile;
 			freq = profile->op_freq;
-			if (!wlan_reg_chan_has_dfs_attribute_for_freq(mac->pdev,
-								      freq))
+			if (CHANNEL_STATE_DFS !=
+			    wlan_reg_get_5g_bonded_channel_state_for_freq(mac->pdev,
+									  freq,
+									  profile->ch_params.ch_width))
 				continue;
 
 			/* If this is an end notification of a pre cac, the