Commit 1279f5ed authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville

rt2500usb: write keys to proper registers

Fix rt2500usb hardware encryption broken by commit
96b61baf
"rt2x00: Clean up USB vendor request buffer functions"
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Acked-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aaa41ec4
...@@ -376,7 +376,7 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev, ...@@ -376,7 +376,7 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev,
if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher)
return -EOPNOTSUPP; return -EOPNOTSUPP;
rt2500usb_register_multiwrite(rt2x00dev, reg, rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx),
crypto->key, sizeof(crypto->key)); crypto->key, sizeof(crypto->key));
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment