wlcore: memset wl->rx_filter_enabled to zero after recovery
authorNadim Zubidat <nadimz@ti.com>
Mon, 10 Feb 2014 11:47:17 +0000 (13:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Feb 2014 20:20:14 +0000 (15:20 -0500)
commit02d0727ca3b0bc8194bd69cd52ddf9e4e2910890
tree7dff27a2eaba17831ca6811cb56823b01ff3a59e
parentbb6bd25c08738ace7102a550a15481e70bc31ee8
wlcore: memset wl->rx_filter_enabled to zero after recovery

zero rx_filter_enabled array after recovery to avoid
cases were the driver will keep trying to clear a
filter which is not configured in FW.

Such case will cause consecutive recoveries due to
command execution failures.

While on it, convert rx_filter_enabled to bitmap,
to save some memory and make sparse happy (it
doesn't like sizeof(bool array)).

Signed-off-by: Nadim Zubidat <nadimz@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/rx.c
drivers/net/wireless/ti/wlcore/wlcore.h