Search Linux Wireless

Re: [PATCH 2/2] bcm43xx-mac80211: Fix reported rx frequency and channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

John
-- 
John W. Linville
linville@xxxxxxxxxxxxx
-
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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux