diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-02-27 19:35:17 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-28 14:33:47 -0500 |
commit | 0c9c4a09f752e3cbe47fd5ea2d7f5f4837f95580 (patch) | |
tree | a6e1559fb34bdf53e83f6d08a3c16d07d5c9642b /drivers/net/wireless/mwifiex/sta_event.c | |
parent | e50e06fd0418d5994fad8ca8d3ce049403059112 (diff) | |
download | op-kernel-dev-0c9c4a09f752e3cbe47fd5ea2d7f5f4837f95580.zip op-kernel-dev-0c9c4a09f752e3cbe47fd5ea2d7f5f4837f95580.tar.gz |
mwifiex: replace num_cmd_timeout with is_cmd_timedout
Command timeout happens when firmware goes into bad state.
There is no chance that next command will be successful after
this. Hence we will maintain a flag instead of count.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_event.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_event.c b/drivers/net/wireless/mwifiex/sta_event.c index fd2a716..368450c 100644 --- a/drivers/net/wireless/mwifiex/sta_event.c +++ b/drivers/net/wireless/mwifiex/sta_event.c @@ -116,7 +116,7 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason_code) adapter->tx_lock_flag = false; adapter->pps_uapsd_mode = false; - if (adapter->num_cmd_timeout && adapter->curr_cmd) + if (adapter->is_cmd_timedout && adapter->curr_cmd) return; priv->media_connected = false; dev_dbg(adapter->dev, |