diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2015-03-15 16:00:17 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-20 08:33:17 +0200 |
commit | cec94d8cf5c2e5347ed9264cc94210e6376c7a46 (patch) | |
tree | c157dcb91b32036f71d8541dcfb1b467422e3cb2 /drivers/net/wireless/ath/wil6210/main.c | |
parent | 148416a973e0a07fa94a0de90dae92763b282311 (diff) | |
download | linux-cec94d8cf5c2e5347ed9264cc94210e6376c7a46.tar.bz2 |
wil6210: fix check for FW responsiveness
"echo" used to be called when no firmware loaded to the NIC,
this causes error output.
Probe firmware with "echo" only after it returned "ready" event.
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index afff8d33c562..a5fd605e52eb 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c @@ -724,6 +724,8 @@ int wil_reset(struct wil6210_priv *wil, bool load_fw) /* we just started MAC, wait for FW ready */ rc = wil_wait_for_fw_ready(wil); + if (rc == 0) /* check FW is responsive */ + rc = wmi_echo(wil); } return rc; |