Re: [ath5k-devel] [PATCH 2/5] ath5k: correct channel setting for 2.5 mhz spacing

2010-03-29 Thread Bruno Randolf
On Monday 29 March 2010 10:42:10 Bob Copeland wrote: > 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 * fr

[ath5k-devel] [PATCH 2/5] ath5k: correct channel setting for 2.5 mhz spacing

2010-03-28 Thread Bob Copeland
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