]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: invert values of NO_160 device config entries
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 2 Dec 2020 12:41:50 +0000 (14:41 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 19:01:33 +0000 (21:01 +0200)
commitd08eb94c966cd2ad10f8f0785357e704082047c3
treeb72c8684c7ca68698da121b0a045423a929fe667
parent78e64d5585b1084e0af625d8e6841d5338ba5b60
iwlwifi: pcie: invert values of NO_160 device config entries

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: 2830727df17e ("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
drivers/net/wireless/intel/iwlwifi/iwl-config.h