projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b59eb96
)
ath5k: drop bogus warning on drv_set_key with unsupported cipher
author
Felix Fietkau
<nbd@nbd.name>
Wed, 11 Jan 2017 14:32:13 +0000
(16:32 +0200)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Thu, 12 Jan 2017 10:56:37 +0000
(12:56 +0200)
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>
drivers/net/wireless/ath/ath5k/mac80211-ops.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index
dc44cfe
..
16e052d
100644
(file)
--- 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);