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
This commit is contained in:
Arif Hussain 2016-08-01 12:28:35 -07:00 • committed by Vishwajith Upendra
commit e69337b2ca

View file

@ -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