]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: mvm: fix the return type for DSM functions 1 and 2
authorMatt Chen <matt.chen@intel.com>
Fri, 22 Jan 2021 12:52:36 +0000 (14:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 13:59:12 +0000 (15:59 +0200)
commitaefbe5c445c7e2f0e082b086ba1e45502dac4b0e
treee2331f6edaa903358791683cd0bc09b3fadb8287
parent3d372c4edfd4dffb7dea71c6b096fb414782b776
iwlwifi: mvm: fix the return type for DSM functions 1 and 2

The return type value of functions 1 and 2 were considered to be an
integer inside a buffer, but they can also be only an integer, without
the buffer.  Fix the code in iwl_acpi_get_dsm_u8() to handle it as a
single integer value, as well as packed inside a buffer.

Signed-off-by: Matt Chen <matt.chen@intel.com>
Fixes: 9db93491f29e ("iwlwifi: acpi: support device specific method (DSM)")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210122144849.5757092adcd6.Ic24524627b899c9a01af38107a62a626bdf5ae3a@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/fw/acpi.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c