1
0

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
Este cometimento está contido em:
Vignesh Mohan
2019-05-23 13:06:56 +05:30
cometido por nshrivas
ascendente 9448b3ab90
cometimento 5098495e56

Ver ficheiro

@@ -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");