diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-15 19:33:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:07:37 -0800 |
commit | 2a345099a4fbe551a1982630b3d89c85fa5a341d (patch) | |
tree | 6556158a8b8b3f63385e36a80b9b7d7f58e8fc92 /drivers/net/wireless/libertas/dev.h | |
parent | 9fae899c2b5dc224042da63b14118abdb22ae9b6 (diff) | |
download | op-kernel-dev-2a345099a4fbe551a1982630b3d89c85fa5a341d.zip op-kernel-dev-2a345099a4fbe551a1982630b3d89c85fa5a341d.tar.gz |
libertas: handle command timeout in main thread instead of directly in timer
And handle the case where it times out more than once, too, instead of
locking up for ever.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index e6f553d..465080fd 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h @@ -201,6 +201,8 @@ struct lbs_private { /** Timers */ struct timer_list command_timer; + int nr_retries; + int cmd_timed_out; u8 hisregcpy; |