rt2x00: Fix HW crypto key handling
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 22 Sep 2008 17:40:04 +0000 (19:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:03 +0000 (16:18 -0400)
commitacaf908d408ccd49f13aeb46cbd4428a4db174d1
tree9ee347bacb617f7729e19a84d76e909908980cc8
parent4492bea656b70dad6a9ae7b59b1430fa38ba3345
rt2x00: Fix HW crypto key handling

When a crypto key is being removed, rt2x00mac should not
reset the key->hw_key_idx value because that will prevent
the driver from removing the correct key from the hardware.

Furthermore ffz() starts counting at 0 instead of 1, so we don't
need to substract 1 from the resulting value.

Signed-off-by: Stephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c