Loading
qcacld-3.0: Replace channel num with freq in wlan_hdd_set_channel api
Currently api wlan_hdd_set_channel is using channel number to validate requested frequency, this function converts center frequency to channel number and again converts this channel number to frequency to validate this channel, which may cause issues when 6GHz SAP tries to come up. For example if center freq is 6015 and current country is set to US, with current logic first this frequency is converted to channel number which comes to be channel number 13 and then this channel number is converted back to freq and gets validated. As channel 13 is invalid in US this validation fails even though freq 6015 is valid frequency in US. TO address above issue, remove this converion of center freq to chan num and chan num to freq, instead used center frequency directly for any kind of validatoin. Change-Id: Iec86c7f42e3f7e786f89df28f53ca71f67defc24 CRs-Fixed: 2970037