Update v4.19 patches

Changes:
- SAM
  - Properly re-enable events after hibernation.
  - Other bugfixes.
  - Continued work on internal documentation.

- mwifiex
  - Fix bug causing network connection failure on certain networks.

Links:
- SAM: 735a01f74b
- mwifiex: https://lkml.org/lkml/2020/8/27/642
- kernel: e83a20197d
This commit is contained in:
Maximilian Luz 2020-08-28 17:00:24 +02:00
parent d64845f146
commit d000c7488a
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02
11 changed files with 1533 additions and 462 deletions

View file

@ -1,4 +1,4 @@
From be6f99a501266c1d3c7f4b85cb1520b14ba08325 Mon Sep 17 00:00:00 2001
From 18f7e6de49eef0ee98564426d44d76837533bf8a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 28 Sep 2019 18:00:43 +0200
Subject: [PATCH 01/10] surface3-power

View file

@ -1,4 +1,4 @@
From 3f5f3beb4919dbf3d581e00ddd4b9f507deabca9 Mon Sep 17 00:00:00 2001
From ef3cff04bed31c9af8d5ab9fe9fe3ef385be173a Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Sun, 5 Jul 2020 14:56:20 +0300
Subject: [PATCH 02/10] surface3-touchscreen-dma-fix

View file

@ -1,4 +1,4 @@
From 5f57ddb9f57f073b5864d4fb3b9df2ac040502cb Mon Sep 17 00:00:00 2001
From 05e083e1986a24e98daa3e93a588072bf40ea850 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <cwhuang@linux.org.tw>
Date: Tue, 18 Sep 2018 11:01:37 +0800
Subject: [PATCH 03/10] surface3-oemb

View file

@ -1,4 +1,4 @@
From e40608c4efca809574bf4deeb4d153ab3ee4688f Mon Sep 17 00:00:00 2001
From f7ec6afbc7fa9fbcd7881d1fb1b44ace16bf30cd Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 27 Jul 2019 17:51:37 +0200
Subject: [PATCH 04/10] surface-buttons

View file

@ -1,4 +1,4 @@
From 5f3edadc09a3ef67d394cbc5373f06229c993834 Mon Sep 17 00:00:00 2001
From 08c0598c88362465f96ae8e14f828b402be4d73e Mon Sep 17 00:00:00 2001
From: kitakar5525 <34676735+kitakar5525@users.noreply.github.com>
Date: Sat, 28 Sep 2019 17:48:21 +0200
Subject: [PATCH 05/10] suspend

View file

@ -1,4 +1,4 @@
From fa535cf2153e2c817ca334f3b8a035a73ab25787 Mon Sep 17 00:00:00 2001
From 6392525b59f427b67bc11eb50e763f9c65e39823 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 28 Sep 2019 17:58:17 +0200
Subject: [PATCH 06/10] ipts

View file

@ -1,13 +1,15 @@
From 586dd640656e93b154045fd351d311858988b8bb Mon Sep 17 00:00:00 2001
From f94e254ee1e8e1819e2a03be4a65adce30db70a5 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 07/10] wifi
---
.../net/wireless/marvell/mwifiex/cfg80211.c | 26 ++++++
drivers/net/wireless/marvell/mwifiex/fw.h | 2 +-
drivers/net/wireless/marvell/mwifiex/pcie.c | 86 +++++++++++--------
.../net/wireless/marvell/mwifiex/sta_cmd.c | 31 ++-----
3 files changed, 83 insertions(+), 60 deletions(-)
.../wireless/marvell/mwifiex/sta_cmdresp.c | 4 +-
5 files changed, 86 insertions(+), 63 deletions(-)
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 650191db25cbe..dd487fc9c1a1e 100644
@ -53,6 +55,19 @@ index 650191db25cbe..dd487fc9c1a1e 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 1fb76d2f5d3fd..8b9d0809daf62 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 991b9cc180006..2464f536192cb 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.c
@ -253,6 +268,28 @@ index 4ed10cf82f9a4..410bef3d6a6eb 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 797c2e9783943..7003767eef423 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
@@ -620,7 +620,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) {
@@ -636,7 +636,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

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
From caa0f67a2cfa53f7a99159fb5d20039f2c8a9dfc Mon Sep 17 00:00:00 2001
From 8dc9e12587916215c01d702770f3845bd37cdb64 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sat, 25 Jul 2020 17:19:53 +0200
Subject: [PATCH 09/10] surface-sam-over-hid

View file

@ -1,4 +1,4 @@
From 8b39a8359e783b55f4e8a08c1d9b9838008681aa Mon Sep 17 00:00:00 2001
From 2a05ca7718732e91c9c15e9cfcb0c8c1cfa7ec16 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <luzmaximilian@gmail.com>
Date: Sun, 16 Aug 2020 23:39:56 +0200
Subject: [PATCH 10/10] surface-gpe

View file

@ -41,16 +41,16 @@ sha256sums=('a4421dea5333beeaaef81312c6f415330b9e4fda6027f399a1c55f97d3da2114'
'4e68572e7cc4c5368f0236e0792660ae8498373988625dca46e509399a7eaea6'
'a13581d3c6dc595206e4fe7fcf6b542e7a1bdbe96101f0f010fc5be49f99baf2'
'c04b7652fbc7dbca65bfd64e7123adcb6da9dae0ab33d85be58907b5b9de1c66'
'084ae7ae947331a4b0fd8bcf8a34c5f3bf2f09eb1a20a89854a5653407dfcecd'
'8162b7aee344326571b4349e23b40103f0e11a0bfdbe46f11574ec3a74762eea'
'229ee719ab0563a39224a6809b41eb6a9d4f66db4ee77759d9a51ec91b0a196f'
'8594e7da746913a3daf991940a616825604ad988eb7dba1c6cbd6d062b05796d'
'dd2d494618ae67dec33291dfda0ef18628e0ada8ff16505546ec46048b19637f'
'b641953a0f5e679519d3ecddab842414ed74bdeb0f37540aa0d625939a2ed0e1'
'29b3e2e5752a355e8af0936685d34c48b93a7fc3bda91e85b023884e58b6b08d'
'9d6ed8c0fa487af359eb3595ecf321b9ccc34c42b2335d9749297b27efda701d'
'5bcaa733602a96898031aa6a5233bf2a9a4cbb6a38351df24a455e397b6e66c3'
'b2491c99b832e1646078560e84e5472258e5532847ffe1ae5f65a8c1b124dddc')
'528e8fe10c3a4fb06ad88ab6e61343fcd804c9d199559ba8363c50953f2fe0ef'
'fc516fbfa8e4c7632dde47f089b7d0dd4983c743efc07f5a8ad191ee5dffe77f'
'c42547c8260013ec964f1c32ed704924a8ae90ba6a98dad1ed5b5314174f2135'
'0cc22be9ffa63c2cd68fa87b2ba105b311a88700787d14eac138e06411538004'
'7d538cb728da8356ef7dbb1fea5a3cee11a88c9287c2488ce2558a52e67b0347'
'c03124218acdd3c390dbe6289234e012e2d5bcbcc70c3a9ee431d1cdabd2df21'
'282530740dbcd5b8cd287112980bc4d64bf116726a5ef58f015497d2623aad74'
'c9a13bae39fd811fc9d44c5b76a05905f4278e1815dfbdccae1df222b8d1d627'
'892e599c771497eb3e0d9b74db5d4e1d19712a63a76d8833423d921f298e08b0'
'4f096dc4c29735974cd9c2cbbc35a6224ba2c2db8a36105c6cd0b0e28e89236c')
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase