From c4080ec27b5a5f3d6a893732bbe470cef17bb44f Mon Sep 17 00:00:00 2001 From: Priyadarshnee S Date: Tue, 19 Feb 2019 17:01:59 +0530 Subject: [PATCH] qcacmn: Update the "radarfound channel" print with correct offset When sub-channel marking is enabled, radarfound freq is computed as freq_center + freq_offset. Freq offset is obtained from dfs->dfs_freq_offset variable which gets populated only for PO (Partial Offload) chips and does not get populated for full offload chips. Instead radar_found->freq_offset is used which gets populated with radar freq_offset on all chips. Change-Id: I138b1160a8b9d67801bd0852266c2e7139265c02 CRs-Fixed: 2383294 --- umac/dfs/core/src/misc/dfs_process_radar_found_ind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c b/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c index 3ef9fa1509..d531df8567 100644 --- a/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c +++ b/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c @@ -732,7 +732,7 @@ QDF_STATUS dfs_process_radar_ind(struct wlan_dfs *dfs, } dfs_compute_radar_found_cfreq(dfs, radar_found, &freq_center); - radarfound_freq = freq_center + dfs->dfs_freq_offset; + radarfound_freq = freq_center + radar_found->freq_offset; if (radar_found->segment_id == SEG_ID_SECONDARY) dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS,