OSDN Git Service

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)
commite0d9727c111a5917a1184c71c1a8e6f78c7fc41d
tree8071b11b1394caf3082b88a5c156375b63dfc5f5
parent3a732c65de427fdae67a243fd331356034b5a1e8
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: bcb079a14d75 ("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