linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Siva Rebbagondla <siva8118@gmail.com>
To: Kalle Valo <kvalo@codeaurora.org>
Cc: linux-wireless@vger.kernel.org,
	rishikesh.basu@redpinesignals.com,
	siva.rebbagondla@redpinesignals.com,
	krishna.pedda@redpinesignals.com, amitkarwar@gmail.com
Subject: [v3 5/5] rsi: fix for wowlan wakeup failure
Date: Mon,  4 Feb 2019 12:03:29 +0530	[thread overview]
Message-ID: <1549262009-8766-6-git-send-email-siva8118@gmail.com> (raw)
In-Reply-To: <1549262009-8766-1-git-send-email-siva8118@gmail.com>

From: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>

During wowlan regression tests, sometimes radio is not waking up for wowlan
packet in coex mode. This is because of power save is enabled by default
in case of coex mode greater than one. Hence, disable power save in coex
mode to avoid radio loss.

Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
index 7bc8da6..3fd2571 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
@@ -1901,6 +1901,10 @@ int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan)
 		return 0;
 	}
 	rsi_dbg(INFO_ZONE, "TRIGGERS %x\n", triggers);
+
+	if (common->coex_mode > 1)
+		rsi_disable_ps(adapter, adapter->vifs[0]);
+
 	rsi_send_wowlan_request(common, triggers, 1);
 
 	/**
-- 
2.5.5


      parent reply	other threads:[~2019-02-04  6:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-04  6:33 [v3 0/5] wowlan debug support and fixes Siva Rebbagondla
2019-02-04  6:33 ` [v3 1/5] rsi: Add debug support for wowlan wakeup confirmation Siva Rebbagondla
2019-02-08 15:30   ` Kalle Valo
2019-02-04  6:33 ` [v3 2/5] rsi: add hci detach for hibernation and poweroff Siva Rebbagondla
2019-02-04  6:33 ` [v3 3/5] rsi: fix wowlan wakeup issue for hibernate(S4) Siva Rebbagondla
2019-02-04  6:33 ` [v3 4/5] rsi: resolve power save issue after S4 resume Siva Rebbagondla
2019-02-04  6:33 ` Siva Rebbagondla [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=1549262009-8766-6-git-send-email-siva8118@gmail.com \
    --to=siva8118@gmail.com \
    --cc=amitkarwar@gmail.com \
    --cc=krishna.pedda@redpinesignals.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rishikesh.basu@redpinesignals.com \
    --cc=siva.rebbagondla@redpinesignals.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).