From: Felix Fietkau Date: Tue, 27 Dec 2016 11:18:12 +0000 (+0100) Subject: ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f04b651453a011d8604fc200ccc23cc91199a518;p=openwrt%2Fstaging%2Fdedeckeh.git ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334) Signed-off-by: Felix Fietkau --- 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 +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 +--- + +--- 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);