From: Govindaraj Saminathan <gsamin@codeaurora.org>
To: ath11k@lists.infradead.org
Cc: Govindaraj Saminathan <gsamin@codeaurora.org>
Subject: [PATCH] ath11k: adding return variable in ath11k_qmi_firmware_stop
Date: Tue, 25 Jun 2019 17:36:56 +0530 [thread overview]
Message-ID: <1561464416-20553-1-git-send-email-gsamin@codeaurora.org> (raw)
adding return variable in ath11k_qmi_firmware_stop to check
the status of mode_off command.
Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/qmi.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c
index eb86fae..f735b7f 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.c
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
@@ -2110,7 +2110,10 @@ static int ath11k_qmi_wlanfw_wlan_cfg_send(struct ath11k_base *ab)
void ath11k_qmi_firmware_stop(struct ath11k_base *ab)
{
- if (ath11k_qmi_wlanfw_mode_send(ab, ATH11K_FIRMWARE_MODE_OFF) < 0) {
+ int ret;
+
+ ret = ath11k_qmi_wlanfw_mode_send(ab, ATH11K_FIRMWARE_MODE_OFF);
+ if (ret < 0) {
ath11k_warn(ab, "qmi failed to send wlan mode off\n");
return;
}
--
1.9.1
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next reply other threads:[~2019-06-25 12:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-25 12:06 Govindaraj Saminathan [this message]
2019-06-26 8:00 ` [PATCH] ath11k: adding return variable in ath11k_qmi_firmware_stop Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1561464416-20553-1-git-send-email-gsamin@codeaurora.org \
--to=gsamin@codeaurora.org \
--cc=ath11k@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox