From: Bob Copeland Date: Thu, 8 Apr 2010 03:55:56 +0000 (-0400) Subject: ath5k: correct channel setting for 2.5 mhz spacing X-Git-Tag: v2.6.35-rc1~473^2~460^2^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1968cc78d91c79857089713bf3f3cceb5e9c63ae;p=pandora-kernel.git 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 Acked-by: Bruno Randolf Signed-off-by: John W. Linville --- Reading git-diff-tree failed