summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2013-01-28 18:31:09 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-01-30 15:07:19 -0500
commitc331997b6c9ad7f4b8075e6e60d3caa6e36f5938 (patch)
tree9a2b7d88851f35997849373480635019c7fc6437
parent2acb4220b264f9d229db01ccc390b8beb37b55af (diff)
downloadop-kernel-dev-c331997b6c9ad7f4b8075e6e60d3caa6e36f5938.zip
op-kernel-dev-c331997b6c9ad7f4b8075e6e60d3caa6e36f5938.tar.gz
wil6210: fix wil_vring_init_tx status
In case vring setup with the firmware failed, success status was returned. fix it. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/wil6210/txrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c
index 1985951..64b971f 100644
--- a/drivers/net/wireless/ath/wil6210/txrx.c
+++ b/drivers/net/wireless/ath/wil6210/txrx.c
@@ -565,6 +565,7 @@ int wil_vring_init_tx(struct wil6210_priv *wil, int id, int size,
if (reply.cmd.status != WMI_VRING_CFG_SUCCESS) {
wil_err(wil, "Tx config failed, status 0x%02x\n",
reply.cmd.status);
+ rc = -EINVAL;
goto out_free;
}
vring->hwtail = le32_to_cpu(reply.cmd.tx_vring_tail_ptr);
OpenPOWER on IntegriCloud