summaryrefslogtreecommitdiff
path: root/drivers/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-01-20 16:46:04 +0100
committerKalle Valo <kvalo@codeaurora.org>2016-02-06 13:43:29 +0200
commit36e8072ebeb1981074c7ec1b63bae3ecc3295b4b (patch)
tree5b466a5ca9c5212618d7eb3b3eed1981f3f8d1c1 /drivers/bcma
parentb3c47afbf54d86daa0473895e8ca9e8b663f5c1a (diff)
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')
0 files changed, 0 insertions, 0 deletions