OSDN Git Service

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)
commit39bd984c203e86f3109b49c2a2e20677c4d3ab65
tree6f3b7b51ca5588f4b7f18f908e4efc42ae02e82a
parent0f8084cdc1f9d4a6693ef4168167febb0918c6f6
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: 7fe90e0e3d60 ("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