Message ID | 1561464416-20553-1-git-send-email-gsamin@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 7946054a168062980b69efeea25d8ce3622a576b |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: adding return variable in ath11k_qmi_firmware_stop | expand |
Govindaraj Saminathan <gsamin@codeaurora.org> wrote: > adding return variable in ath11k_qmi_firmware_stop to check > the status of mode_off command. > > Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Patch applied to ath11k-bringup branch of ath.git, thanks. 7946054a1680 ath11k: adding return variable in ath11k_qmi_firmware_stop
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; }
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(-)