mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacmn: Modify maximum BW only conditionally
The maximum BW for edge channels may fall outside the low limit or high limit of channel range for a given pdev. But reduce the maximum BW only if it is less than or equal to 20 MHz. Higher bandwidths are realized using channel bonding and the channel itself may not be center channel. Change-Id: Ifc6bbadf91759fedaf432d162763577ea56bb7b7 CRs-Fixed: 2184724
This commit is contained in:
parent
f6d3035ec6
commit
876a6931e3
1 changed files with 6 additions and 2 deletions
|
|
@ -2150,7 +2150,9 @@ static void reg_find_low_limit_chan_enum(struct regulatory_channel *chan_list,
|
|||
|
||||
if ((center_freq - min_bw/2) >= low_freq) {
|
||||
if ((center_freq - max_bw/2) < low_freq) {
|
||||
max_bw = ((center_freq - low_freq) * 2);
|
||||
if (max_bw <= 20)
|
||||
max_bw = ((center_freq -
|
||||
low_freq) * 2);
|
||||
if (max_bw < min_bw)
|
||||
max_bw = min_bw;
|
||||
chan_list[chan_enum].max_bw = max_bw;
|
||||
|
|
@ -2185,7 +2187,9 @@ static void reg_find_high_limit_chan_enum(struct regulatory_channel *chan_list,
|
|||
|
||||
if (center_freq + min_bw/2 <= high_freq) {
|
||||
if ((center_freq + max_bw/2) > high_freq) {
|
||||
max_bw = ((high_freq - center_freq) * 2);
|
||||
if (max_bw <= 20)
|
||||
max_bw = ((high_freq -
|
||||
center_freq) * 2);
|
||||
if (max_bw < min_bw)
|
||||
max_bw = min_bw;
|
||||
chan_list[chan_enum].max_bw = max_bw;
|
||||
|
|
|
|||
Loading…
Reference in a new issue