Kaynağa Gözat

qcacld-3.0: channel bonding is not valid for channel 14

qcacld-2.0 to qcacld-3.0 propagation

Channel bonding mode in not valid for channel 14. So don't
consider it while deriving the channel bonding mode.

Change-Id: I7ceae149cdd9e2f3c75f937c56cc5e93455fa8ee
CRs-Fixed: 908439
Masti, Narayanraddi 9 yıl önce
ebeveyn
işleme
fd0d19c399
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      core/cds/src/cds_reg_service.c

+ 5 - 1
core/cds/src/cds_reg_service.c

@@ -747,7 +747,11 @@ enum channel_width cds_get_max_channel_bw(uint32_t chan_num)
 static int cds_bw20_ch_index_to_bw40_ch_index(int k)
 {
 	int m = -1;
-	if (k >= RF_CHAN_1 && k <= RF_CHAN_14) {
+	if (k >= RF_CHAN_1 && k <= RF_CHAN_13) {
+		/*
+		 * Channel bonding is not valid for channel 14,
+		 * Hence don't consider it
+		 */
 		m = k - RF_CHAN_1 + RF_CHAN_BOND_3;
 		if (m > RF_CHAN_BOND_11)
 			m = RF_CHAN_BOND_11;