]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41
authorLuca Coelho <luciano.coelho@intel.com>
Mon, 24 Jun 2019 19:29:33 +0000 (22:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:13:58 +0000 (10:13 +0200)
commita41636163fda00d27e44b4147635ca849c97290b
tree0892e0915d5f0525fcd883f63de361f050f00451
parent7e2de0b299c089915501a56a6eed5b1d94c12a4a
iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41

commit 39bd984c203e86f3109b49c2a2e20677c4d3ab65 upstream.

Firmware versions before 41 don't support the GEO_TX_POWER_LIMIT
command, and sending it to the firmware will cause a firmware crash.
We allow this via debugfs, so we need to return an error value in case
it's not supported.

This had already been fixed during init, when we send the command if
the ACPI WGDS table is present.  Fix it also for the other,
userspace-triggered case.

Cc: stable@vger.kernel.org
Fixes: 7fe90e0e3d60 ("iwlwifi: mvm: refactor geo init")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c