Commit dc276ffd authored by Miri Korenblit's avatar Miri Korenblit Committed by Luca Coelho

iwlwifi: acpi: fix wgds rev 3 size

The exact size of WGDS revision 3 was calculated using the wrong
parameters. Fix it.
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211204130722.12c5b0cffe52.I7f342502f628f43a7e000189a699484bcef0f562@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 020cde47
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment