* [PATCH] ath11k: adding return variable in ath11k_qmi_firmware_stop
@ 2019-06-25 12:06 Govindaraj Saminathan
2019-06-26 8:00 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Govindaraj Saminathan @ 2019-06-25 12:06 UTC (permalink / raw)
To: ath11k; +Cc: Govindaraj Saminathan
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-26 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-25 12:06 [PATCH] ath11k: adding return variable in ath11k_qmi_firmware_stop Govindaraj Saminathan
2019-06-26 8:00 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox