zd1211rw: reset device when CR_BCN_FIFO_SEMAPHORE freezes in beacon setup
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Mon, 31 Jan 2011 18:50:02 +0000 (20:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Feb 2011 21:29:51 +0000 (16:29 -0500)
commit3985a46543d47a50b94e839e0a16e67d959ab092
tree07bfa1b8a9556fabf302b837df8763d9391005d4
parenta0fd751f0924e0eefa36592f1d358c4ab18b44c5
zd1211rw: reset device when CR_BCN_FIFO_SEMAPHORE freezes in beacon setup

When driver fails to acquire device semaphore lock, device usually
freezes soon afterwards. So failing to acquire lock indicates us that
not everything is going right in device/fw. So reset device when
this happens.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_mac.c