iwlwifi: mvm: fix interface bringup on non-ACPI configs
diff mbox series

Message ID 20191121074832.6978-1-git@xen0n.name
State New
Delegated to: Luca Coelho
Headers show
Series
  • iwlwifi: mvm: fix interface bringup on non-ACPI configs
Related show

Commit Message

WANG Xuerui Nov. 21, 2019, 7:48 a.m. UTC
Previously the non-ACPI stub of iwl_mvm_ppag_init unconditionally
returned -ENOENT, that in turn blocked flow of iwl_mvm_up.

Take the precedent of iwl_mvm_sar_geo_init, make iwl_mvm_ppag_init no-op
on non-ACPI configs.

Fixes: 6ce1e5c0c207 ("iwlwifi: support per-platform antenna gain")
Cc: Gil Adam <gil.adam@intel.com>
Cc: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Wang Xuerui <git@xen0n.name>
---
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
index d9eb2b286438..04ac47b7cae9 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -1169,7 +1169,7 @@  int iwl_mvm_ppag_send_cmd(struct iwl_mvm *mvm)
 
 static int iwl_mvm_ppag_init(struct iwl_mvm *mvm)
 {
-	return -ENOENT;
+	return 0;
 }
 #endif /* CONFIG_ACPI */