]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix WGDS check when WRDS is disabled
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 17 Apr 2020 10:37:11 +0000 (13:37 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Apr 2020 12:40:30 +0000 (15:40 +0300)
commit4e88bb92f7fc327aee51cb4a4149208723e3983d
tree94da70f5e4a5edd17697d7c72628f89292bb38cb
parent92209fadee66a09340553096e3b6aab2ae074abc
iwlwifi: fix WGDS check when WRDS is disabled

In the reference BIOS implementation, WRDS can be disabled without
disabling WGDS.  And this happens in most cases where WRDS is
disabled, causing the WGDS without WRDS check and issue an error.

To avoid this issue, we change the check so that we only considered it
an error if the WRDS entry doesn't exist.  If the entry (or the
selected profile is disabled for any other reason), we just silently
ignore WGDS.

Cc: stable@vger.kernel.org # 4.14+
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=205513
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20200417133700.72ad25c3998b.I875d935cefd595ed7f640ddcfc7bc802627d2b7f@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/mvm/fw.c