diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-11 16:32:13 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2017-01-12 12:56:37 +0200 |
commit | a70e1d6fd6b5e1a81fa6171600942bee34f5128f (patch) | |
tree | d74d109466a81404abf9d9baf228a2873f645855 /drivers/net/wireless/ath | |
parent | b59eb96181e7fe4abe844985362882aeb39a0593 (diff) | |
download | blackbird-op-linux-a70e1d6fd6b5e1a81fa6171600942bee34f5128f.tar.gz blackbird-op-linux-a70e1d6fd6b5e1a81fa6171600942bee34f5128f.zip |
ath5k: drop bogus warning on drv_set_key with unsupported cipher
Simply return -EOPNOTSUPP instead.
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-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 dc44cfef7517..16e052d02c94 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); |