summaryrefslogtreecommitdiff
path: root/drivers/bcma/driver_mips.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-01-20 15:46:04 (GMT)
committerKalle Valo <kvalo@codeaurora.org>2016-02-06 11:43:29 (GMT)
commit36e8072ebeb1981074c7ec1b63bae3ecc3295b4b (patch)
tree5b466a5ca9c5212618d7eb3b3eed1981f3f8d1c1 /drivers/bcma/driver_mips.c
parentb3c47afbf54d86daa0473895e8ca9e8b663f5c1a (diff)
downloadlinux-36e8072ebeb1981074c7ec1b63bae3ecc3295b4b.tar.xz
brcmfmac: fix setting primary channel for 80 MHz width
First of all it changes the way we calculate primary channel offset. If we use e.g. 80 MHz channel with primary frequency 5180 MHz (which means center frequency is 5210 MHz) it makes sense to calculate primary offset as -30 MHz. Then it fixes values we compare primary_offset with. We were comparing offset in MHz against -2 or 2 which was resulting in picking a wrong primary channel. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/bcma/driver_mips.c')
0 files changed, 0 insertions, 0 deletions