aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/wmi.h
diff options
context:
space:
mode:
authorGravatar Fred Chou <fred.chou.nd@gmail.com> 2015-03-13 16:32:38 +0800
committerGravatar Kalle Valo <kvalo@codeaurora.org> 2015-04-07 20:07:44 +0300
commit00ca18034f62a6a3f29b8e660198e4ea573f2657 (patch)
tree8229242bd987d143fe52559ccd4e764db91216ef /drivers/net/wireless/ath/ath9k/wmi.h
parentMerge tag 'iwlwifi-next-for-kalle-2015-04-02' of https://git.kernel.org/pub/s... (diff)
downloadlinux-00ca18034f62a6a3f29b8e660198e4ea573f2657.tar.gz
linux-00ca18034f62a6a3f29b8e660198e4ea573f2657.tar.bz2
linux-00ca18034f62a6a3f29b8e660198e4ea573f2657.zip
ath9k_htc: check seq number instead of cmd id for timeout
As the driver may send multiple wmi commands with identical cmd id, it is more robust to check seq number for timeout instead. Signed-off-by: Fred Chou <fred.chou.nd@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wmi.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/wmi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wmi.h b/drivers/net/wireless/ath/ath9k/wmi.h
index aa84a335289a..380175d5ecd7 100644
--- a/drivers/net/wireless/ath/ath9k/wmi.h
+++ b/drivers/net/wireless/ath/ath9k/wmi.h
@@ -151,7 +151,7 @@ struct wmi {
enum htc_endpoint_id ctrl_epid;
struct mutex op_mutex;
struct completion cmd_wait;
- enum wmi_cmd_id last_cmd_id;
+ u16 last_seq_id;
struct sk_buff_head wmi_event_queue;
struct tasklet_struct wmi_event_tasklet;
u16 tx_seq_id;