Pārlūkot izejas kodu

Merge "qcacld-3.0: Set maximum channel width correctly" into wlan-cld3.driver.lnx.1.1-dev

Service qcabuildsw 8 gadi atpakaļ
vecāks
revīzija
aaeffdf5b9
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6 2
      core/cds/src/cds_reg_service.c

+ 6 - 2
core/cds/src/cds_reg_service.c

@@ -469,8 +469,12 @@ static void cds_set_5g_channel_params(uint16_t oper_ch,
 	const struct bonded_chan *bonded_chan_ptr = NULL;
 	const struct bonded_chan *bonded_chan_ptr2 = NULL;
 
-	if (CH_WIDTH_MAX <= ch_params->ch_width)
-		ch_params->ch_width = CH_WIDTH_80P80MHZ;
+	if (CH_WIDTH_MAX <= ch_params->ch_width) {
+		if (0 != ch_params->center_freq_seg1)
+			ch_params->ch_width = CH_WIDTH_80P80MHZ;
+		else
+			ch_params->ch_width = CH_WIDTH_160MHZ;
+	}
 
 	while (ch_params->ch_width != CH_WIDTH_INVALID) {
 		bonded_chan_ptr = NULL;