Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 082661a5 authored by Deeksha Gupta's avatar Deeksha Gupta Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: update the BW correctly for SAP channel_switch

In wlansap_get_csa_chanwidth_from_phymode(), update the
channel width correctly incase when SAP starts on 2.4GHz
and channel switch happens on 5GHz channel with BW 80 MHz.
Currently host modify the BW according to the original BW
20MHz is incorrect, it should be changed to 80MHz.

Update the BW correctly, it should not be limited to orig BW.

Change-Id: I9baf89d89eeb6407c7cda931b332bced38cc2154
CRs-Fixed: 2974565
parent c4eccc92
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1270,7 +1270,6 @@ wlansap_get_csa_chanwidth_from_phymode(struct sap_context *sap_context,
				mac->pdev, mac->psoc, chan_freq,
				ch_width);
		ch_width = QDF_MIN(ch_width, concurrent_bw);
		ch_width = QDF_MIN(ch_width, sap_context->ch_width_orig);
	}
	ch_params.ch_width = ch_width;
	wlan_reg_set_channel_params_for_freq(mac->pdev, chan_freq, 0,