]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: fix SPLC structure parsing
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 13 Oct 2016 07:07:07 +0000 (10:07 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Oct 2016 06:53:42 +0000 (09:53 +0300)
commit43429909cf8fe981c98cc38790ecca56d27ed7aa
tree8071b11b1394caf3082b88a5c156375b63dfc5f5
parentbb797385c7a118b0265e0f6c77ee28e95ea214a5
iwlwifi: pcie: fix SPLC structure parsing

The SPLC data parsing is too restrictive and was not trying find the
correct element for WiFi.  This causes problems with some BIOSes where
the SPLC method exists, but doesn't have a WiFi entry on the first
element of the list.  The domain type values are also incorrect
according to the specification.

Fix this by complying with the actual specification.

Additionally, replace all occurrences of SPLX to SPLC, since SPLX is
only a structure internal to the ACPI tables, and may not even exist.

Fixes: 4bfdaea9aeb8 ("iwlwifi: pcie: retrieve and parse ACPI power limitations")
Reported-by: Chris Rorvick <chris@rorvick.com>
Tested-by: Paul Bolle <pebolle@tiscali.nl>
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/drv.c