brcmfmac: fix setting primary channel for 80 MHz width
authorRafał Miłecki <zajec5@gmail.com>
Wed, 20 Jan 2016 15:46:04 +0000 (16:46 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 6 Feb 2016 11:43:29 +0000 (13:43 +0200)
commit36e8072ebeb1981074c7ec1b63bae3ecc3295b4b
tree5b466a5ca9c5212618d7eb3b3eed1981f3f8d1c1
parentb3c47afbf54d86daa0473895e8ca9e8b663f5c1a
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>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
This page took 0.025367 seconds and 5 git commands to generate.