mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacmn: Invoke correct api to convert channel to frequency
Currently wifi update channel bw api is using legacy api wlan reg get chan freq to convert channel numbers to the frequency which does not take care of the bonded channels and returns invalid channel number error code for bonded channels which results in undefined behavior on the user space application which is using the result of this api. To address above issue, use the correct api to convert channel number to frequency. Change-Id: I80295b0ff502747d5655642f2506283bd3ba0b52 CRs-fixed: 2547546
This commit is contained in:
parent
80002653b1
commit
4260dcf3f8
1 changed files with 3 additions and 2 deletions
|
|
@ -305,8 +305,9 @@ static void wifi_update_channel_bw_info(struct wlan_objmgr_psoc *psoc,
|
|||
wlan_reg_set_channel_params(pdev, chan, sec_ch_2g, &ch_params);
|
||||
if (ch_params.center_freq_seg0)
|
||||
chan_info->band_center_freq1 =
|
||||
wlan_reg_get_channel_freq(pdev,
|
||||
ch_params.center_freq_seg0);
|
||||
wlan_reg_legacy_chan_to_freq(
|
||||
pdev,
|
||||
ch_params.center_freq_seg0);
|
||||
|
||||
wifi_pos_psoc->wifi_pos_get_phy_mode(chan, ch_params.ch_width,
|
||||
&phy_mode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue