]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iwlwifi: acpi: fix wgds rev 3 size
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sat, 4 Dec 2021 11:10:50 +0000 (13:10 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 7 Dec 2021 18:06:43 +0000 (20:06 +0200)
The exact size of WGDS revision 3 was calculated using the wrong
parameters. Fix it.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211204130722.12c5b0cffe52.I7f342502f628f43a7e000189a699484bcef0f562@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c

index bf431fa4fe81fd562f91cf36635a03b703122882..2e4590876bc33aca887cede81b3f806aae4d60bb 100644 (file)
@@ -789,7 +789,7 @@ int iwl_sar_get_wgds_table(struct iwl_fw_runtime *fwrt)
                                 * looking up in ACPI
                                 */
                                if (wifi_pkg->package.count !=
-                                   min_size + profile_size * num_profiles) {
+                                   hdr_size + profile_size * num_profiles) {
                                        ret = -EINVAL;
                                        goto out_free;
                                }