diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2020-12-02 14:41:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-16 10:58:28 +0100 |
commit | 83714d5200e604757e03e36d619cd5add0fe33a4 (patch) | |
tree | eb7869bb0b2adec649d9102632a2f60565029d63 | |
parent | 956b7d56949d8a937ee409cbc58144270965bccd (diff) | |
download | linux-stable-83714d5200e604757e03e36d619cd5add0fe33a4.tar.gz linux-stable-83714d5200e604757e03e36d619cd5add0fe33a4.tar.bz2 linux-stable-83714d5200e604757e03e36d619cd5add0fe33a4.zip |
iwlwifi: pcie: invert values of NO_160 device config entries
[ Upstream commit 568d3434178b00274615190a19d29c3d235b4e6d ]
The NO_160 flag specifies if the device doesn't have 160 MHz support,
but we errorneously assumed the opposite. If the flag was set, we
were considering that 160 MHz was supported, but it's actually the
opposite. Fix it by inverting the bits, i.e. NO_160 is 0x1 and 160
is 0x0.
Fixes: d6f2134a3831 ("iwlwifi: add mac/rf types and 160MHz to the device tables")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20201202143859.375bec857ccb.I83884286b688965293e9810381808039bd7eedae@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-config.h b/drivers/net/wireless/intel/iwlwifi/iwl-config.h index e27c13263a23..44abe44c0463 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h @@ -488,8 +488,8 @@ struct iwl_cfg { #define IWL_CFG_RF_ID_HR 0x7 #define IWL_CFG_RF_ID_HR1 0x4 -#define IWL_CFG_NO_160 0x0 -#define IWL_CFG_160 0x1 +#define IWL_CFG_NO_160 0x1 +#define IWL_CFG_160 0x0 #define IWL_CFG_CORES_BT 0x0 #define IWL_CFG_CORES_BT_GNSS 0x5 |