From e69337b2ca2d7b6574ab61703f0557d619685648 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Mon, 1 Aug 2016 12:28:35 -0700 Subject: [PATCH] qcacld-3.0: Update wma_get_channels as per the latest draft for 160MHz as per the latest draft for BSS bandwidth 160MHz, channel frequency segment 2 represents the center channel frequency. Update wma_get_channels to use correct segment to calculate center channel when operating in 160MHz. Change-Id: I9a8f2035b590a90415fbc5a0a6608c48bbd5b2e5 CRs-Fixed: 1048793 --- core/wma/src/wma_features.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 89185a0b3ab5..0803b8c4ce03 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -6775,6 +6775,15 @@ int wma_get_channels(struct dfs_ieee80211_channel *ichan, chan_list->nchannels = 0; if (IEEE80211_IS_CHAN_11AC_VHT160(ichan)) { + + /* + * as per the latest draft for BSS bandwidth 160MHz, + * channel frequency segment 2 represents the center + * channel frequency. + */ + if (ichan->ic_vhtop_ch_freq_seg2) + center_chan = + cds_freq_to_chan(ichan->ic_vhtop_ch_freq_seg2); /* * In 160MHz channel width, need to * check if each of the 8 20MHz channel