Bladeren bron

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
Arif Hussain 8 jaren geleden
bovenliggende
commit
e69337b2ca
1 gewijzigde bestanden met toevoegingen van 9 en 0 verwijderingen
  1. 9 0
      core/wma/src/wma_features.c

+ 9 - 0
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