mwifiex: replace num_cmd_timeout with is_cmd_timedout
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 28 Feb 2014 03:35:17 +0000 (19:35 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:33:47 +0000 (14:33 -0500)
commit0c9c4a09f752e3cbe47fd5ea2d7f5f4837f95580
treea6e1559fb34bdf53e83f6d08a3c16d07d5c9642b
parente50e06fd0418d5994fad8ca8d3ce049403059112
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>
drivers/net/wireless/mwifiex/README
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/debugfs.c
drivers/net/wireless/mwifiex/ioctl.h
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_event.c
drivers/net/wireless/mwifiex/util.c