mwifiex: handle start AP error paths correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 4 Dec 2015 14:13:03 +0000 (06:13 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 11 Dec 2015 11:24:11 +0000 (13:24 +0200)
commitd2b0c735ebac0f0d9746305b40806693d3092f57
tree42123adb3efab16b313a22078c832aa83f5f91af
parentd5556e87610e45e586b1bdf6653920b543083653
mwifiex: handle start AP error paths correctly

It's been observed that even if firmware returns an error
for a configuration command, we go ahead and start AP.

This patch changes the command type from async to sync
so that threads waits for command response and return
failure start AP.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/ie.c
drivers/net/wireless/marvell/mwifiex/uap_cmd.c