[PATCH] b43: Add slot count compiletime assertion

2009-02-19 Thread Michael Buesch
This adds a compiletime assertion for a recently introduced assumption on the slot counts. The tx header cache handling code assumes that the TX slot count can be divided evenly by the number of TX slots per frame. Signed-off-by: Michael Buesch --- Please queue on top of the DMA optimizations.

[PATCH] b43: Optimize DMA buffers

2009-02-19 Thread Michael Buesch
In the old days we used one slot per frame. But when we changed that to 2, we didn't raise the overall slot count. Which resulted in an effective division of two to the number of slots. Double the number of TX slots, so we have an effective hardware queue of 128 frames per QoS queue. Also optimiz

[PATCH] b43: Fix DMA buffer size handling

2009-02-19 Thread Michael Buesch
This fixes hidden bugs in the size handling of the DMA buffers. This sets the RX buffer size to the theoretical max packet size and fixes passing of the size values to the device (must not subtract the header offset). These bugs are hidden and don't actually trigger due to the magic +100 offset f

[PATCH] b43: Move DMA stop sanity check

2009-02-19 Thread Michael Buesch
Move the DMA stop sanity check up a few lines, so it's actually theoretically possible to trigger. (But it still shouldn't trigger, of course). Signed-off-by: Michael Buesch --- Index: wireless-testing/drivers/net/wireless/b43/dma.c =

Re: BCM43XG

2009-02-19 Thread Larry Finger
Marc-André Moreau wrote: > Hi, I have a Linksys WPC300N V1 with a BCM43XG chipset, which seems to > be unsupported for the moment. I would like to know the current status > of the development for 802.11N and for BCM43XG, and what I could do to > help. If there are any resources available that would

BCM43XG

2009-02-19 Thread Marc-André Moreau
Hi, I have a Linksys WPC300N V1 with a BCM43XG chipset, which seems to be unsupported for the moment. I would like to know the current status of the development for 802.11N and for BCM43XG, and what I could do to help. If there are any resources available that would help me write a driver for it, I

Re: Problems sniffing custom frames with b43

2009-02-19 Thread [ tR3nt R32n0r ]
Well, I've tried doing something different. I've changed the type field on 802.11 MAC header. I was using management frames type (with reserved subtype) and I turned it into data frame type (with ToDS and FromDS flags set to false) because it is allowed to recieve this type of frames in state 1, i

Re: Problems sniffing custom frames with b43

2009-02-19 Thread [ tR3nt R32n0r ]
Hey! I've been tying to enable the admission of other no IEEE 802.11 frames but it hasn't been possible. I've managed the flags defined for monitor mode in nl80211.h in Hostapd git code (driver_nl80211.c, line 1023) replacing: NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_COOK_FRAMES); for: NLA_PUT_FLAG(f