aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2018-09-06 19:46:20 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-10-01 16:30:04 +0300
commit833fd34d743c728afe6d127ef7bee67e7d9199a8 (patch)
treeee2879f5b51c0dc1d649bf457fa65a11b4fcdfb0 /drivers/net/wireless/ath/ath10k/wmi.h
parent37f62c0d5822f631b786b29a1b1069ab714d1a28 (diff)
downloadkernel_replicant_linux-833fd34d743c728afe6d127ef7bee67e7d9199a8.tar.gz
kernel_replicant_linux-833fd34d743c728afe6d127ef7bee67e7d9199a8.tar.bz2
kernel_replicant_linux-833fd34d743c728afe6d127ef7bee67e7d9199a8.zip
ath10k: fix vdev-start timeout on error
The vdev-start-response message should cause the completion to fire, even in the error case. Otherwise, the user still gets no useful information and everything is blocked until the timeout period. Add some warning text to print out the invalid status code to aid debugging, and propagate failure code. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
index 15622943a885..3c09b0e6bd9b 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -6655,11 +6655,17 @@ struct wmi_ch_info_ev_arg {
__le32 rx_frame_count;
};
+/* From 10.4 firmware, not sure all have the same values. */
+enum wmi_vdev_start_status {
+ WMI_VDEV_START_OK = 0,
+ WMI_VDEV_START_CHAN_INVALID,
+};
+
struct wmi_vdev_start_ev_arg {
__le32 vdev_id;
__le32 req_id;
__le32 resp_type; /* %WMI_VDEV_RESP_ */
- __le32 status;
+ __le32 status; /* See wmi_vdev_start_status enum above */
};
struct wmi_peer_kick_ev_arg {