ath5k: drop bogus warning on drv_set_key with unsupported cipher
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 Jan 2017 14:32:13 +0000 (16:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:24 +0000 (14:04 +0200)
commit a70e1d6fd6b5e1a81fa6171600942bee34f5128f upstream.

Simply return -EOPNOTSUPP instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/wireless/ath/ath5k/mac80211-ops.c

index 06f86f435711e805c958ee5f98354a60aafe5f41..1b8422c4ef9bc76dfe92c40b5c86cad14c18c027 100644 (file)
@@ -511,8 +511,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
                        break;
                return -EOPNOTSUPP;
        default:
-               WARN_ON(1);
-               return -EINVAL;
+               return -EOPNOTSUPP;
        }
 
        mutex_lock(&ah->lock);