Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1597120 > unrolled thread

[PATCH 4.9 079/153] ath5k: drop bogus warning on drv_set_key with unsupported cipher

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2017-03-10 12:20 +0100
Last post2017-03-10 12:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.9 079/153] ath5k: drop bogus warning on drv_set_key with unsupported cipher Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-03-10 12:20 +0100

#1597120 — [PATCH 4.9 079/153] ath5k: drop bogus warning on drv_set_key with unsupported cipher

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-03-10 12:20 +0100
Subject[PATCH 4.9 079/153] ath5k: drop bogus warning on drv_set_key with unsupported cipher
Message-ID<tjqKu-3ch-7@gated-at.bofh.it>
4.9-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Felix Fietkau <nbd@nbd.name>

commit a70e1d6fd6b5e1a81fa6171600942bee34f5128f upstream.

Simply return -EOPNOTSUPP instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/net/wireless/ath/ath5k/mac80211-ops.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- 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);

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web