summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/cmdevt.c
diff options
context:
space:
mode:
authorchunfan chen <jeffc@marvell.com>2016-01-13 01:26:55 -0800
committerKalle Valo <kvalo@codeaurora.org>2016-01-29 11:20:40 +0200
commit8de00f1b1c7f37e523430efba8e4257b2761df7c (patch)
treeecdb19c03efe125788a2627eeee01df86f8cdd24 /drivers/net/wireless/marvell/mwifiex/cmdevt.c
parent7d7f07d8c5d35ebfb207650b0dbcf437dad76bab (diff)
downloadlwn-8de00f1b1c7f37e523430efba8e4257b2761df7c.tar.gz
lwn-8de00f1b1c7f37e523430efba8e4257b2761df7c.zip
mwifiex: report wakeup reason to cfg80211
This patch adds code to report wakeup reason to cfg80211 when system is resumed. Signed-off-by: chunfan chen <jeffc@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/cmdevt.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/cmdevt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cmdevt.c b/drivers/net/wireless/marvell/mwifiex/cmdevt.c
index cb25aa7e90db..a12adee776c6 100644
--- a/drivers/net/wireless/marvell/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/marvell/mwifiex/cmdevt.c
@@ -1657,3 +1657,16 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
return 0;
}
+
+/* This function handles the command response of hs wakeup reason
+ * command.
+ */
+int mwifiex_ret_wakeup_reason(struct mwifiex_private *priv,
+ struct host_cmd_ds_command *resp,
+ struct host_cmd_ds_wakeup_reason *wakeup_reason)
+{
+ wakeup_reason->wakeup_reason =
+ resp->params.hs_wakeup_reason.wakeup_reason;
+
+ return 0;
+}