diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-05-18 14:15:16 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2009-05-19 14:47:23 -0700 |
commit | 3b0440922c346500467fdceca53a4e03bf276de6 (patch) | |
tree | f0d28496e5b3611bfc239a6a330b38b31754393c /sta_dk_4_0_4_32/pform/linux/src/esta_drv.c | |
parent | 0fc24af3570cb1ca2b1d154ca69b19c17efd1651 (diff) | |
download | ti-3b0440922c346500467fdceca53a4e03bf276de6.tar.gz |
Fix driver crash if firmware is not loaded
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'sta_dk_4_0_4_32/pform/linux/src/esta_drv.c')
-rw-r--r-- | sta_dk_4_0_4_32/pform/linux/src/esta_drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sta_dk_4_0_4_32/pform/linux/src/esta_drv.c b/sta_dk_4_0_4_32/pform/linux/src/esta_drv.c index 3289b4b..32c8627 100644 --- a/sta_dk_4_0_4_32/pform/linux/src/esta_drv.c +++ b/sta_dk_4_0_4_32/pform/linux/src/esta_drv.c @@ -1092,6 +1092,9 @@ int tiwlan_send_wait_reply(tiwlan_net_dev_t *drv, unsigned long flags; /* Send request to tiwlan_tasklet and wait for reply */ + if (!drv->adapter.CoreHalCtx) { + return STATION_IS_NOT_RUNNING; + } req.drv = drv; req.u.req.f = f; |