linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amitkumar Karwar <akarwar@marvell.com>
To: <linux-wireless@vger.kernel.org>
Cc: Cathy Luo <cluo@marvell.com>,
	Nishant Sarmukadam <nishants@marvell.com>,
	Amitkumar Karwar <akarwar@marvell.com>
Subject: [PATCH v2 6/6] mwifiex: use SYNC flag for canceling host sleep
Date: Wed, 13 Jan 2016 01:26:57 -0800	[thread overview]
Message-ID: <1452677217-21439-7-git-send-email-akarwar@marvell.com> (raw)
In-Reply-To: <1452677217-21439-1-git-send-email-akarwar@marvell.com>

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>
---
 drivers/net/wireless/marvell/mwifiex/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index 33771d3..abf15db 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -181,7 +181,7 @@ static int mwifiex_sdio_resume(struct device *dev)
 
 	/* Disable Host Sleep */
 	mwifiex_cancel_hs(mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA),
-			  MWIFIEX_ASYNC_CMD);
+			  MWIFIEX_SYNC_CMD);
 
 	return 0;
 }
-- 
1.8.1.4


      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 ` [PATCH v2 2/6] mwifiex: add wowlan info messages Amitkumar Karwar
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 ` Amitkumar Karwar [this message]

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-7-git-send-email-akarwar@marvell.com \
    --to=akarwar@marvell.com \
    --cc=cluo@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).