mwifiex: lock main process till reinitialization of vif is over
authorAvinash Patil <patila@marvell.com>
Fri, 13 Mar 2015 12:07:51 +0000 (17:37 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 16 Mar 2015 16:12:15 +0000 (18:12 +0200)
commita9adbcb3355c31faf4274932f513f19225b61747
tree5af7a74ee04a3c42f5782d611e52b1b91c41c24f
parenta3fa71c40f1853d0c27e8f5bc01a722a705d9682
mwifiex: lock main process till reinitialization of vif is over

A crash was detected while changing virtual interface type is in
progress. This was tracked to race condition in accessing bss_priority
table while change is in progress. This patch ensures that main_process
and rx_process works are locked while we change virtual interface.

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/main.c
drivers/net/wireless/mwifiex/main.h