Search Linux Wireless

rt2x00 : big-endianess broken for rt73usb (master mode) for e.g. xscale and powerpc

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

 



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(-)

(...)

--
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