mwifiex: fix radar detection issue
authorGanapathi Bhat <gbhat@marvell.com>
Mon, 25 Jul 2016 15:51:11 +0000 (21:21 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 09:57:18 +0000 (12:57 +0300)
commit441756b6a6e3818dc6f2e76b9526558d450ce778
treeb0aa91badf43f8abdea54a665f04712cc81d5dff
parent432da7d243da32651e1fae677f3a83c16b346d47
mwifiex: fix radar detection issue

It's been observed that firmware sends RADAR detected event without
specifying bss_num/bss_type. Also, the event body is empty.
Currently the event is being ignored by driver.

This patch checks on which interface 11H is active, accordingly fills
bss_num/bss_type and handles the event. Condition
"if (le32_to_cpu(rdr_event->passed))" which always fails is also removed.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/11h.c
drivers/net/wireless/marvell/mwifiex/cmdevt.c