Skip to contentSkip to conversation

ath11k: adding return variable in ath11k_qmi_firmware_stop

PATCH In review Govindaraj Saminathan 2 participants 2 messages Jun 25, 2019 – Jun 26, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: adding return variable in ath11k_qmi_firmware_stop

adding return variable in ath11k_qmi_firmware_stop to check the status of mode_off command.

---
 drivers/net/wireless/ath/ath11k/qmi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/qmi.c +4 -1
index eb86fae..f735b7f 100644
@@ -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;
 	}
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 5 lines · Govindaraj Saminathan

adding return variable in ath11k_qmi_firmware_stop to check the status of mode_off command.

Patch applied to ath11k-bringup branch of ath.git, thanks.

7946054a1680 ath11k: adding return variable in ath11k_qmi_firmware_stop

Signature · 9 lines
https://patchwork.kernel.org/patch/11015401/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k