]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:11 +0000 (18:34 +0200)
commitfdf1bec43f5b9d997d37df5815532b5083aa2a78
tree6f3b7b51ca5588f4b7f18f908e4efc42ae02e82a
parentc66cff5529c50b6f234793befe7cf172de6f8827
iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41

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: 9616840b8659 ("iwlwifi: mvm: refactor geo init")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c