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:
03893e9
)
mwifiex: Log an error on command failure during key-material upload
author
Jonas Dreßler
<verdre@v0yd.nl>
Sat, 16 Oct 2021 15:32:41 +0000
(17:32 +0200)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 20 Oct 2021 08:51:21 +0000
(11:51 +0300)
Sometimes the KEY_MATERIAL command can fail with the 88W8897 firmware
(when this happens exactly seems pretty random). This appears to prevent
the access point from starting, so it seems like a good idea to log an
error in that case.
Signed-off-by: Jonas Dreßler <verdre@v0yd.nl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20211016153244.24353-3-verdre@v0yd.nl
drivers/net/wireless/marvell/mwifiex/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index
987558c
..
6f23ec3
100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/
drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@
-519,8
+519,14
@@
mwifiex_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
encrypt_key.is_igtk_def_key = true;
eth_broadcast_addr(encrypt_key.mac_addr);
- return mwifiex_send_cmd(priv, HostCmd_CMD_802_11_KEY_MATERIAL,
- HostCmd_ACT_GEN_SET, true, &encrypt_key, true);
+ if (mwifiex_send_cmd(priv, HostCmd_CMD_802_11_KEY_MATERIAL,
+ HostCmd_ACT_GEN_SET, true, &encrypt_key, true)) {
+ mwifiex_dbg(priv->adapter, ERROR,
+ "Sending KEY_MATERIAL command failed\n");
+ return -1;
+ }
+
+ return 0;
}
/*