[Xenial,SRU,4/4] UBUNTU: SAUCE: Redpine: fix for wowlan wakeup failure

Message ID 1515492849-4456-5-git-send-email-amitkarwar@gmail.com
State New
Headers show
  • Redpine: fixes for wowlan issues
Related show

Commit Message

Amitkumar Karwar Jan. 9, 2018, 10:14 a.m.
From: Pavani Muthyala <pavanimuthyala1992@gmail.com>

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742090
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742094

It is observed that magic packet is sometimes missed by firmware
which results in wakeup failure. This happens only in coex mode
when power save is enabled. Issue is resolved by disabling power
save to avoid radio loss for wlan

Signed-off-by: Pavani Muthyala <pavanimuthyala1992@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
 ubuntu/rsi/rsi_91x_mac80211.c | 2 ++
 1 file changed, 2 insertions(+)


diff --git a/ubuntu/rsi/rsi_91x_mac80211.c b/ubuntu/rsi/rsi_91x_mac80211.c
index c32a9bb..2b18259 100644
--- a/ubuntu/rsi/rsi_91x_mac80211.c
+++ b/ubuntu/rsi/rsi_91x_mac80211.c
@@ -2410,6 +2410,8 @@  int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan)
 		return 0;
 	ven_rsi_dbg(INFO_ZONE, "TRIGGERS %x\n", triggers);
+	if (common->coex_mode > 1)
+		rsi_disable_ps(adapter);
 	rsi_send_wowlan_request(common, triggers, 1);
 	/* Send updated vap caps */