]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix cfg structs for 22000 with different RF modules
authorLuca Coelho <luciano.coelho@intel.com>
Sat, 4 Aug 2018 11:45:42 +0000 (14:45 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Nov 2018 11:01:04 +0000 (13:01 +0200)
commit275959693b0c6c334341b258eeb29efcdfedce4f
tree74f8c89aecdabf30b983b82277aabf73b534a57f
parent04502f07fc647a87cf1640a004f1d783b74fcbab
iwlwifi: fix cfg structs for 22000 with different RF modules

We have to choose different configuration and different firmwares
depending on the external RF module that is installed.  Since the
external module is not represented in the PCI IDs, we need to change
the configuration at runtime, after checking the RF ID of the module
installed.  We have a bit of a mess in the code that does this,
because it applies cfg's according to the RF ID only, ignoring the
integrated module that is in use.

Fix that for some devices by adding correct configurations for them
and not ignoring the integrated module's type when making the
decision.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/pcie/drv.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c