From: Ivo van Doorn Date: Sat, 3 Jan 2009 15:27:14 +0000 (+0100) Subject: rt2x00: Fix rt2500usb HW crypto: WEP 128 & AES X-Git-Tag: v2.6.29-rc2~11^2~46^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1dd2b23badfe8a28910a78be24452c627c4b6f2;p=pandora-kernel.git rt2x00: Fix rt2500usb HW crypto: WEP 128 & AES The TXD_W0_CIPHER field is a 1-bit field. It only acts as boolean value to indicate if the frame must be encrypted or not. The way rt2x00_set_field32() worked it would grab the least signifcant bit from txdesc->cipher and use that as value. Because of that WEP 64 and TKIP worked since they had odd-numbered values, while WEP 128 and AES were even numbers and didn't work. Correctly booleanize the txdecs->cipher value to allow the hardware to encrypt the outgoing data. After this we can enable HW crypto by default again. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed