|
@@ -1,13 +1,15 @@
|
|
|
-From b1cacc77a3021c286248e98858a497024955dfa4 Mon Sep 17 00:00:00 2001
|
|
|
+From 8ff6f12fa7093981493e63b56830bd22f634750c Mon Sep 17 00:00:00 2001
|
|
|
From: kitakar5525 <34676735+kitakar5525@users.noreply.github.com>
|
|
|
Date: Thu, 20 Feb 2020 16:51:11 +0900
|
|
|
Subject: [PATCH 2/6] wifi
|
|
|
|
|
|
---
|
|
|
.../net/wireless/marvell/mwifiex/cfg80211.c | 26 ++++++
|
|
|
+ drivers/net/wireless/marvell/mwifiex/fw.h | 2 +-
|
|
|
drivers/net/wireless/marvell/mwifiex/pcie.c | 84 +++++++++++--------
|
|
|
.../net/wireless/marvell/mwifiex/sta_cmd.c | 31 ++-----
|
|
|
- 3 files changed, 84 insertions(+), 57 deletions(-)
|
|
|
+ .../wireless/marvell/mwifiex/sta_cmdresp.c | 4 +-
|
|
|
+ 5 files changed, 87 insertions(+), 60 deletions(-)
|
|
|
|
|
|
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
|
|
|
index 12bfd653a4052..68404a1767945 100644
|
|
@@ -53,6 +55,19 @@ index 12bfd653a4052..68404a1767945 100644
|
|
|
return mwifiex_drv_set_power(priv, &ps_mode);
|
|
|
}
|
|
|
|
|
|
+diff --git a/drivers/net/wireless/marvell/mwifiex/fw.h b/drivers/net/wireless/marvell/mwifiex/fw.h
|
|
|
+index a415d73a73e62..d55e70a411d77 100644
|
|
|
+--- a/drivers/net/wireless/marvell/mwifiex/fw.h
|
|
|
++++ b/drivers/net/wireless/marvell/mwifiex/fw.h
|
|
|
+@@ -953,7 +953,7 @@ struct mwifiex_tkip_param {
|
|
|
+ struct mwifiex_aes_param {
|
|
|
+ u8 pn[WPA_PN_SIZE];
|
|
|
+ __le16 key_len;
|
|
|
+- u8 key[WLAN_KEY_LEN_CCMP];
|
|
|
++ u8 key[WLAN_KEY_LEN_CCMP_256];
|
|
|
+ } __packed;
|
|
|
+
|
|
|
+ struct mwifiex_wapi_param {
|
|
|
diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c
|
|
|
index 87b4ccca4b9a2..3bdad5e80ecbb 100644
|
|
|
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
|
|
@@ -250,6 +265,28 @@ index 0bd93f26bd7f8..91b03423c09d0 100644
|
|
|
|
|
|
if (priv->bss_type != MWIFIEX_BSS_TYPE_UAP) {
|
|
|
/* Send cmd to FW to enable/disable 11D function */
|
|
|
+diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
|
|
|
+index 962d8bfe6f101..119ccacd1fcc4 100644
|
|
|
+--- a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
|
|
|
++++ b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
|
|
|
+@@ -619,7 +619,7 @@ static int mwifiex_ret_802_11_key_material_v2(struct mwifiex_private *priv,
|
|
|
+ key_v2 = &resp->params.key_material_v2;
|
|
|
+
|
|
|
+ len = le16_to_cpu(key_v2->key_param_set.key_params.aes.key_len);
|
|
|
+- if (len > WLAN_KEY_LEN_CCMP)
|
|
|
++ if (len > sizeof(key_v2->key_param_set.key_params.aes.key))
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
+ if (le16_to_cpu(key_v2->action) == HostCmd_ACT_GEN_SET) {
|
|
|
+@@ -635,7 +635,7 @@ static int mwifiex_ret_802_11_key_material_v2(struct mwifiex_private *priv,
|
|
|
+ return 0;
|
|
|
+
|
|
|
+ memset(priv->aes_key_v2.key_param_set.key_params.aes.key, 0,
|
|
|
+- WLAN_KEY_LEN_CCMP);
|
|
|
++ sizeof(key_v2->key_param_set.key_params.aes.key));
|
|
|
+ priv->aes_key_v2.key_param_set.key_params.aes.key_len =
|
|
|
+ cpu_to_le16(len);
|
|
|
+ memcpy(priv->aes_key_v2.key_param_set.key_params.aes.key,
|
|
|
--
|
|
|
2.28.0
|
|
|
|