summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/bh.c
diff options
context:
space:
mode:
authorVitaly Wool <vitaly.wool@sonyericsson.com>2012-02-29 15:15:22 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:47 +0200
commitfd079d0c51ec4831187025d77de67a99f3ded897 (patch)
tree1c1b39616dcf73f5349f8ca743f0424aa8a19d09 /drivers/staging/cw1200/bh.c
parentd4cdabfadee8cfc9c0cad8e6559a518883bfa153 (diff)
cw1200: Driver hung detection and reporting
If there is a firmware exception or a bh error, report this to the userspace. Userspace will then take care of handling this event, e. g. by reloading the driver completely. Category: bugfix FIX=DMS01117799 ST-Ericsson ID: 401162 ST-Ericsson FOSS-OUT ID: NA Change-Id: I74a8a434f9befbab66ff4cf6c5b5ce82a359c766 Signed-off-by: Vitaly Wool <vitaly.wool@sonyericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44302 Reviewed-by: QATOOLS Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com> Tested-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com>
Diffstat (limited to 'drivers/staging/cw1200/bh.c')
-rw-r--r--drivers/staging/cw1200/bh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/cw1200/bh.c b/drivers/staging/cw1200/bh.c
index 4b678f40c40..34bf7d733b8 100644
--- a/drivers/staging/cw1200/bh.c
+++ b/drivers/staging/cw1200/bh.c
@@ -549,6 +549,10 @@ tx:
if (!term) {
cw1200_dbg(CW1200_DBG_ERROR, "[BH] Fatal error, exitting.\n");
priv->bh_error = 1;
+#if defined(CONFIG_CW1200_USE_STE_EXTENSIONS)
+ ieee80211_driver_hang_notify(priv->vif, GFP_KERNEL);
+ cw1200_pm_stay_awake(&priv->pm_state, 3*HZ);
+#endif
/* TODO: schedule_work(recovery) */
#ifndef HAS_PUT_TASK_STRUCT
/* The only reason of having this stupid code here is