diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-12-27 12:18:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-27 12:18:36 +0100 |
commit | f04b651453a011d8604fc200ccc23cc91199a518 (patch) | |
tree | e39a107a403b9b1d0ea4cbb259eb75a3919bbe6e /package/kernel/mac80211 | |
parent | 00ad43f047746ab16c6558306de8ab8265b4f9f1 (diff) | |
download | upstream-f04b651453a011d8604fc200ccc23cc91199a518.tar.gz upstream-f04b651453a011d8604fc200ccc23cc91199a518.tar.bz2 upstream-f04b651453a011d8604fc200ccc23cc91199a518.zip |
ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/patches/346-ath5k-drop-bogus-warning-on-drv_set_key-with-unsuppo.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/346-ath5k-drop-bogus-warning-on-drv_set_key-with-unsuppo.patch b/package/kernel/mac80211/patches/346-ath5k-drop-bogus-warning-on-drv_set_key-with-unsuppo.patch new file mode 100644 index 0000000000..243907cb26 --- /dev/null +++ b/package/kernel/mac80211/patches/346-ath5k-drop-bogus-warning-on-drv_set_key-with-unsuppo.patch @@ -0,0 +1,23 @@ +From: Felix Fietkau <nbd@nbd.name> +Date: Tue, 27 Dec 2016 12:15:14 +0100 +Subject: [PATCH] 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> +--- + +--- 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, e + break; + return -EOPNOTSUPP; + default: +- WARN_ON(1); +- return -EINVAL; ++ return -EOPNOTSUPP; + } + + mutex_lock(&ah->lock); |