]> git.baikalelectronics.ru Git - kernel.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)
commita15145f241f459040df5c245ec0eec3fd440cd63
treee2331f6edaa903358791683cd0bc09b3fadb8287
parent977d806db5f4c5ff84155e34d8bb479d5c1dde5d
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: b9f460913723 ("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