linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rt2x00 : big-endianess broken for rt73usb (master mode) for e.g. xscale and powerpc
@ 2009-07-22  7:34 Gert Boddaert
  0 siblings, 0 replies; only message in thread
From: Gert Boddaert @ 2009-07-22  7:34 UTC (permalink / raw)
  To: linux-wireless

I was able to do some testing on the rt73usb driver.
As mentioned in an earlier post, the latest driver breaks the master mode.
Although a linux client (x86 laptop) can connect to the rt73usb AP, 
a windows XP client (x86 laptop) cannot. 
I fails to obtain a DHCP address. 

In order to reproduce the bug, you need a big-endian system with a rt73usb
stick, and hostapd. 
I did not test client mode for big-endian systems.

Breaking down the different patches that were applied since 8 april 2009, I was
able to identify the culprit. 
No solution yet, but I thought I should flag this
as a bug.

It is the following patch that breaks big-endian compatibility:

***
Some hardware require L2 padding between header and payload
because both must be aligned to a 4-byte boundary. This hardware
also is easier during the RX path since we no longer need to
move the entire payload but rather only the header to remove
the padding (mac80211 only wants the payload to be 4-byte aligned).

Signed-off-by: Ivo van Doorn <IvDoorn@...>
---
 drivers/net/wireless/rt2x00/rt2x00.h       |   10 ++++
 drivers/net/wireless/rt2x00/rt2x00crypto.c |   68 +++++++++++++++++-----------
 drivers/net/wireless/rt2x00/rt2x00dev.c    |   33 +++++++------
 drivers/net/wireless/rt2x00/rt2x00lib.h    |   27 +++++++++--
 drivers/net/wireless/rt2x00/rt2x00queue.c  |   39 ++++++++++++++++
 drivers/net/wireless/rt2x00/rt2x00queue.h  |   14 +++++-
 6 files changed, 143 insertions(+), 48 deletions(-)

(...)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-22  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-22  7:34 rt2x00 : big-endianess broken for rt73usb (master mode) for e.g. xscale and powerpc Gert Boddaert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).