mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
6b561685d4
commit
e69337b2ca
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue