projects
/
wrapfs-4.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe74e8
)
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
Jiri Slaby
<jslaby@suse.cz>
Mon, 13 Mar 2017 20:40:32 +0000
(21:40 +0100)
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: Jiri Slaby <jslaby@suse.cz>
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 4ee01f654235478ea3510847d6f207593541573f..9adbfb335387f7463abfa73f172edb88be30529c 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/mac80211-ops.c
+++ b/
drivers/net/wireless/ath/ath5k/mac80211-ops.c
@@
-511,8
+511,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);