Forráskód Böngészése

qcacmn: Use cfreq to find if en302_502 is applicable

During radar table attach, the function to check if EN302_502
pattern is applicable requires actual center frequency of
the current operating channel as one of the inputs.
The caller of this function uses ieee80211 channel as the
argument in the function call.

Call function with actual center frequency instead of
ieee80211 channel.

Change-Id: I9e562863d73c53e4da046eede3e20d8ad9c8f98c
CRs-Fixed: 2454018
Vignesh Mohan 6 éve
szülő
commit
5098495e56
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      umac/dfs/core/src/filtering/dfs_init.c

+ 2 - 1
umac/dfs/core/src/filtering/dfs_init.c

@@ -441,7 +441,8 @@ bool dfs_is_en302_502_applicable(struct wlan_dfs *dfs)
 	struct wlan_channel *bss_chan = NULL;
 
 	/* Get centre frequency */
-	chan_freq = dfs->dfs_curchan->dfs_ch_vhtop_ch_freq_seg1;
+	chan_freq = utils_dfs_chan_to_freq(
+			dfs->dfs_curchan->dfs_ch_vhtop_ch_freq_seg1);
 	vdev = wlan_objmgr_pdev_get_first_vdev(dfs->dfs_pdev_obj, WLAN_DFS_ID);
 	if (!vdev) {
 		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS,  "vdev is NULL");