mwifiex: use SYNC flag for canceling host sleep
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 13 Jan 2016 09:26:57 +0000 (01:26 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Jan 2016 09:20:42 +0000 (11:20 +0200)
commita92277bc3bfe7c41cac13ca4a7d5070033543732
tree1afdcc42d354505267ba129ce7b29f4bd6ff8097
parentfdcab083055d759325c8e0f8999d9e192417fc20
mwifiex: use SYNC flag for canceling host sleep

Host sleep is cancelled in sdio resume() handler.
Cfg80211's resume handler is immediately called after
this. SYNC flag here ensures that host sleep handshake
gets completed and we have valid "adapter->nd_config"
before we report host wakeup reason in cfg80211's
resume handler.

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