mt7603: return -EOPNOTSUPP on unsupported ciphers

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2017-01-14 23:05:46 +01:00
parent 9af67d47e0
commit f8f49d2428
+1 -1
View File
@@ -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;