OSDN Git Service

ath10k: fix the race condition in wow suspend-resume cycle
authorSarada Prasanna Garnayak <sgarna@codeaurora.org>
Fri, 19 Jan 2018 12:31:25 +0000 (18:01 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 1 Feb 2018 14:27:43 +0000 (06:27 -0800)
commitf6a04016327f28f509d33e915c4f71336cbb5c0f
tree40f4164839ab66aaf9bd5dc1bdd7898fa9f7fcdf
parent34594476949dac8c97149a5ba96f18db769fa280
ath10k: fix the race condition in wow suspend-resume cycle

During wow suspend enable the wow event wakeup source if
the STA is in connected state and during wow resume report
the wow wakeup reason to mac80211 and nl80211 layer.

This fix adds support to synchronize the wow suspend-resume cycle
and prevent the device to wakeup from wow suspend state by an invalid
wow event when the STA is in the disconnected state.

CRs-Fixed: 2175472
Change-Id: I093f3c5a80b4f67578dfb114b9cc9ea778f19168
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
drivers/net/wireless/ath/ath10k/wmi.c
drivers/net/wireless/ath/ath10k/wow.c
drivers/net/wireless/ath/ath10k/wow.h