diff options
author | Fred Chou <fred.chou.nd@gmail.com> | 2015-03-13 04:32:38 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-04-07 13:07:44 -0400 |
commit | 00ca18034f62a6a3f29b8e660198e4ea573f2657 (patch) | |
tree | 8229242bd987d143fe52559ccd4e764db91216ef /drivers/net/wireless/ath/ath9k/wmi.h | |
parent | 6dcaac59d08b77d5730f2ae824bca1c0bf8130dc (diff) |
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.h | 2 |
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 { | |||
151 | enum htc_endpoint_id ctrl_epid; | 151 | enum htc_endpoint_id ctrl_epid; |
152 | struct mutex op_mutex; | 152 | struct mutex op_mutex; |
153 | struct completion cmd_wait; | 153 | struct completion cmd_wait; |
154 | enum wmi_cmd_id last_cmd_id; | 154 | u16 last_seq_id; |
155 | struct sk_buff_head wmi_event_queue; | 155 | struct sk_buff_head wmi_event_queue; |
156 | struct tasklet_struct wmi_event_tasklet; | 156 | struct tasklet_struct wmi_event_tasklet; |
157 | u16 tx_seq_id; | 157 | u16 tx_seq_id; |