On Thursday 19 July 2007 21:10:52 John W. Linville wrote: > On Mon, Jun 11, 2007 at 11:38:30AM +0100, andy@xxxxxxxxxxx wrote: > > bcm43xx-mac80211 is reporting bogus frequencies and channels back to > > mac80211 at the moment (eg, actual ch1 (2412MHz) reported as 2424MHz). > > > > Prior to this patch, the hardware rx channel value is reported as > > starting at 0x18 and rising by 0x0a per channel. Code in bcm43xx_xmit.c > > tries to take this value and add 2400 to it to get the rx frequency. > > It seems the intention is that the hardware reports the (rx freq - 2400), > > so we want the value starting at 0x0c and rising by 0x05 per channel. > > > > If the value read is shifted one more bit to the right, it will > > succeed in doing this. Therefore this patch increases the shifting constant > > by one and reduces the mask by one lsb. > > > > The rx frequency reported in the radiotap rx and then, eg, tcpdump, > > is then correct. I didn't test ch 14 but I guess the hardware is > > consistent about it. > > > > CC: Larry Finger <larry.finger@xxxxxxxxxxxx> > > CC: Michael Buesch <mb@xxxxxxxxx> > > Signed-off-by: Andy Green <andy@xxxxxxxxxxx> > > Larry, Michael, Johannes -- ack/nak? nak, the issue is more difficult than this. The point is that firmware changed and we don't know the exact revision, yet. But it is actually no problem in reality, as the use-it-or-die firmware doesn't have this problem. So if someone uses another firmware than the one we suggest, he will probably run into more problems, as well. The fix is called: Use the correct firmware. For now, at least. Of course, the author of this patch should help us to find out the exact firmware rev where this change happened. So we can come up with a real fix. -- Greetings Michael. - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html