[source] ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334)
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 27 03:18:43 PST 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/f04b651453a011d8604fc200ccc23cc91199a518
commit f04b651453a011d8604fc200ccc23cc91199a518
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Dec 27 12:18:12 2016 +0100
ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334)
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
...bogus-warning-on-drv_set_key-with-unsuppo.patch | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
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 0000000..243907c
--- /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 at 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 at vger.kernel.org
+Signed-off-by: Felix Fietkau <nbd at 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);
More information about the lede-commits
mailing list