]> git.karo-electronics.de Git - linux-beck.git/commit
rt2x00: Fix hw crypto in AP mode for some devices
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 4 Nov 2010 19:42:36 +0000 (20:42 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:26:08 +0000 (13:26 -0500)
commitfa8b4b22d543b4052602b0c86065150613ed19e8
tree7ec20ce5695b7b2f7bfbfe6b149f9a639b6f586a
parent070192dd2975c0e97bbdeac7623b755235c6db7d
rt2x00: Fix hw crypto in AP mode for some devices

The BSSID register shouldn't be set in AP mode on some older devices (like
rt73usb) as it breaks hw crypto on these. However, rt2800 devices explicitly
need the BSSID register set to the same value as our own MAC address (only
in AP mode).

Hence, don't set the BSSID from rt2x00lib but move it down into rt2800 to
avoid problems on older devices.

This fixes a regression (at least for rt73usb) and avoids a new regression
for rt2800 devices in 2.6.36.

Reported-by: Johannes Stezenbach <js@sig21.net>
Reported-by: Lee <lee-in-berlin@web.de>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt2x00mac.c