diff options
author | David P <megver83@parabola.nu> | 2020-01-11 13:24:15 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-01-11 13:24:15 -0300 |
commit | 79a43052cb2f2f1bb92914effd7b852dc9280c17 (patch) | |
tree | a7839ef24d4f6383c7a9ea271c8b354aad3e0afa /libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch | |
parent | 191f083fa8ed152502caac51c9db84d939afb50b (diff) | |
download | abslibre-79a43052cb2f2f1bb92914effd7b852dc9280c17.tar.gz abslibre-79a43052cb2f2f1bb92914effd7b852dc9280c17.tar.bz2 abslibre-79a43052cb2f2f1bb92914effd7b852dc9280c17.zip |
updpkg: libre/linux-libre-pae 5.4.10-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch')
-rw-r--r-- | libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch b/libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch new file mode 100644 index 000000000..fb3b0da5a --- /dev/null +++ b/libre/linux-libre-pae/0014-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch @@ -0,0 +1,48 @@ +From 78fe4d666ff244609c7d02bea07a22ce87e56326 Mon Sep 17 00:00:00 2001 +From: Mehmet Akif Tasova <makiftasova@gmail.com> +Date: Mon, 30 Dec 2019 15:48:16 +0200 +Subject: [PATCH 14/15] Revert "iwlwifi: mvm: fix scan config command size" + +Since v5.4-rc1 was released, iwlwifi started throwing errors when scan +commands were sent to the firmware with certain devices (depending on +the OTP burned in the device, which contains the list of available +channels). For instance: + +iwlwifi 0000:00:14.3: FW error in SYNC CMD SCAN_CFG_CMD + +This bug was reported in the ArchLinux bug tracker: +https://bugs.archlinux.org/task/64703 + +And also in a specific case in bugzilla, when the lar_disabled option +was set: https://bugzilla.kernel.org/show_bug.cgi?id=205193 + +Revert the commit that introduced this error, by using the number of +channels from the OTP instead of the number of channels that is +specified in the FW TLV that tells us how many channels it supports. + +This reverts commit 06eb547c4ae4382e70d556ba213d13c95ca1801b. + +Cc: stable@vger.kernel.org # v5.4+ +Signed-off-by: Mehmet Akif Tasova <makiftasova@gmail.com> +[ Luca: reworded the commit message a bit. ] +Signed-off-by: Luca Coelho <luciano.coelho@intel.com> +--- + drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +index fcafa22ec6ce..8aa567d7912c 100644 +--- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c ++++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +@@ -1220,7 +1220,7 @@ static int iwl_mvm_legacy_config_scan(struct iwl_mvm *mvm) + cmd_size = sizeof(struct iwl_scan_config_v2); + else + cmd_size = sizeof(struct iwl_scan_config_v1); +- cmd_size += num_channels; ++ cmd_size += mvm->fw->ucode_capa.n_scan_channels; + + cfg = kzalloc(cmd_size, GFP_KERNEL); + if (!cfg) +-- +2.24.1 + |