From: Amitkumar Karwar <akarwar@marvell.com>
To: <linux-wireless@vger.kernel.org>
Cc: Cathy Luo <cluo@marvell.com>,
Nishant Sarmukadam <nishants@marvell.com>,
chunfan chen <jeffc@marvell.com>,
Amitkumar Karwar <akarwar@marvell.com>
Subject: [PATCH v2 2/6] mwifiex: add wowlan info messages
Date: Wed, 13 Jan 2016 01:26:53 -0800 [thread overview]
Message-ID: <1452677217-21439-3-git-send-email-akarwar@marvell.com> (raw)
In-Reply-To: <1452677217-21439-1-git-send-email-akarwar@marvell.com>
From: chunfan chen <jeffc@marvell.com>
This patch adds informative messages in wake up on
magic packet, disconnect, pattern configuration paths.
Signed-off-by: chunfan chen <jeffc@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
---
drivers/net/wireless/marvell/mwifiex/cfg80211.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index c27c6cc..6d36d08 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -3171,10 +3171,12 @@ static int mwifiex_set_wowlan_mef_entry(struct mwifiex_private *priv,
sizeof(byte_seq));
mef_entry->filter[filt_num].filt_type = TYPE_EQ;
- if (first_pat)
+ if (first_pat) {
first_pat = false;
- else
+ mwifiex_dbg(priv->adapter, INFO, "Wake on patterns\n");
+ } else {
mef_entry->filter[filt_num].filt_action = TYPE_AND;
+ }
filt_num++;
}
@@ -3200,6 +3202,7 @@ static int mwifiex_set_wowlan_mef_entry(struct mwifiex_private *priv,
mef_entry->filter[filt_num].offset = 56;
mef_entry->filter[filt_num].filt_type = TYPE_EQ;
mef_entry->filter[filt_num].filt_action = TYPE_OR;
+ mwifiex_dbg(priv->adapter, INFO, "Wake on magic packet\n");
}
return ret;
}
@@ -3295,6 +3298,7 @@ static int mwifiex_cfg80211_suspend(struct wiphy *wiphy,
"Failed to set HS params\n");
return ret;
}
+ mwifiex_dbg(priv->adapter, INFO, "Wake on device disconnect\n");
}
return ret;
--
1.8.1.4
next prev parent reply other threads:[~2016-01-13 9:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 9:26 [PATCH v2 0/6] mwifiex wowlan enahancements Amitkumar Karwar
2016-01-13 9:26 ` [PATCH v2 1/6] mwifiex: add schedule scan support Amitkumar Karwar
2016-01-29 9:21 ` [v2,1/6] " Kalle Valo
2016-01-13 9:26 ` Amitkumar Karwar [this message]
2016-01-13 9:26 ` [PATCH v2 3/6] mwifiex: add wowlan net-detect support Amitkumar Karwar
2016-01-13 9:26 ` [PATCH v2 4/6] mwifiex: report wakeup reason to cfg80211 Amitkumar Karwar
2016-01-13 9:26 ` [PATCH v2 5/6] mwifiex: add RSSI support for net-detect Amitkumar Karwar
2016-01-13 9:26 ` [PATCH v2 6/6] mwifiex: use SYNC flag for canceling host sleep Amitkumar Karwar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452677217-21439-3-git-send-email-akarwar@marvell.com \
--to=akarwar@marvell.com \
--cc=cluo@marvell.com \
--cc=jeffc@marvell.com \
--cc=linux-wireless@vger.kernel.org \
--cc=nishants@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).