mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: return -EOPNOTSUPP on unsupported ciphers
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -581,7 +581,7 @@ int mt7603_wtbl_set_key(struct mt7603_dev *dev, int wcid,
|
||||
|
||||
cipher = mt7603_mac_get_key_info(key, key_data);
|
||||
if (cipher == MT_CIPHER_NONE && key)
|
||||
return -EINVAL;
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (key && (cipher == MT_CIPHER_WEP40 || cipher == MT_CIPHER_WEP104)) {
|
||||
addr += key->keyidx * 16;
|
||||
|
||||
Reference in New Issue
Block a user