projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109b421
)
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
Willy Tarreau
<w@1wt.eu>
Tue, 20 Jun 2017 12:04:24 +0000
(14:04 +0200)
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: Willy Tarreau <w@1wt.eu>
drivers/net/wireless/ath/ath5k/mac80211-ops.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index 06f86f435711e805c958ee5f98354a60aafe5f41..1b8422c4ef9bc76dfe92c40b5c86cad14c18c027 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);