rt2500usb: write keys to proper registers
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 27 Jul 2010 14:48:10 +0000 (10:48 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Jul 2010 18:59:59 +0000 (14:59 -0400)
Fix rt2500usb hardware encryption broken by commit
96b61bafe22b2f2abcc833d651739edb977f1b1e
"rt2x00: Clean up USB vendor request buffer functions"

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c

index 242d59558b797cbbb77ef2a421d49daa63994784..27942455ddcc1c13efd31674197074c0067c6819 100644 (file)
@@ -376,7 +376,7 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev,
                if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher)
                        return -EOPNOTSUPP;
 
-               rt2500usb_register_multiwrite(rt2x00dev, reg,
+               rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx),
                                              crypto->key, sizeof(crypto->key));
 
                /*