diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-11 14:32:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 05:41:46 (GMT) |
commit | 93c1f1db1a7421545e9aae9fb6091668ca570f2b (patch) | |
tree | 336f5c987eddc8b88b2078cd3aec536a47f566a4 | |
parent | bac7f7135d51144ff193002b296b8bdf06c9855f (diff) | |
download | linux-93c1f1db1a7421545e9aae9fb6091668ca570f2b.tar.xz |
ath5k: drop bogus warning on drv_set_key with unsupported cipher
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/mac80211-ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index dc44cfe..16e052d 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c @@ -502,8 +502,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); |