summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-11 16:32:13 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2017-01-12 12:56:37 +0200
commita70e1d6fd6b5e1a81fa6171600942bee34f5128f (patch)
treed74d109466a81404abf9d9baf228a2873f645855 /drivers/net/wireless/ath
parentb59eb96181e7fe4abe844985362882aeb39a0593 (diff)
downloadblackbird-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.c3
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);
OpenPOWER on IntegriCloud