iwlwifi: pcie: handle switching killer Qu B0 NICs to C0
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 21 Aug 2019 17:17:32 +0000 (20:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Aug 2019 14:38:34 +0000 (16:38 +0200)
commitb9500577d361522a3d9f14da8cf41dc1d824904e
tree5977c9ea918c211135bdb935f3d15ba5e4e2d20d
parent189308d5823a089b56e2299cd96589507dac7319
iwlwifi: pcie: handle switching killer Qu B0 NICs to C0

We need to use a different firmware for C0 versions of killer Qu NICs.
Add structures for them and handle them in the if block that detects
C0 revisions.

Additionally, instead of having an inclusive check for QnJ devices,
make the selection exclusive, so that switching to QnJ is the
exception, not the default.  This prevents us from having to add all
the non-QnJ cards to an exclusion list.  To do so, only go into the
QnJ block if the device has an RF ID type HR and HW revision QnJ.

Cc: stable@vger.kernel.org # 5.2
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20190821171732.2266-1-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/pcie/drv.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c