From f8f49d2428514401c62dd272f495a3bb82525521 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Jan 2017 23:05:46 +0100 Subject: [PATCH] mt7603: return -EOPNOTSUPP on unsupported ciphers Signed-off-by: Felix Fietkau --- mt7603_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index 27b759fb..daa91715 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -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;