mwifiex: Trigger a card reset on reaching tx_timeout threshold
authorAshok Nagarajan <asnagarajan@chromium.org>
Fri, 8 Mar 2013 18:58:45 +0000 (10:58 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Mar 2013 21:02:48 +0000 (16:02 -0500)
tx_timeout doesn't always lead to a cmd_timeout. There are
occurrences where cmd_timeout never gets triggered for a long
time and we encounter a kernel crash. In this patch, we track
the consecutive timeouts (tx_timeout_cnt). When tx_timeout_cnt
exceeds the threshold, trigger a card reset thereby avoiding a
kernel crash.

Signed-off-by: Ashok Nagarajan <asnagarajan@chromium.org>
Signed-off-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found