aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/base.c
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2010-04-07 23:55:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 15:24:14 -0400
commit1968cc78d91c79857089713bf3f3cceb5e9c63ae (patch)
treefeaad505977ddd15f930b0d9411b15e1d40e2163 /drivers/net/wireless/ath/ath5k/base.c
parentb5878a2dc5e7e7f031a52c3e15b571224cb6b540 (diff)
ath5k: correct channel setting for 2.5 mhz spacing
These channels aren't selectable anyway, but our calculations for 2.5 mhz frequencies are incorrect. The value is supposed to be: (frequency - reference) * (10/25) i.e., divide by 2.5, but we were instead doing: (10 * frequency - reference) / 25. Additionally, the check for (frequency % 5 == 2) had an extra subtraction that wasn't in madwifi HAL. Signed-off-by: Bob Copeland <me@bobcopeland.com> Acked-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
0 files changed, 0 insertions, 0 deletions