[PATCH 1/2][Xenial SRU] UBUNTU: SAUCE: Redpine: enable power save by default for coex mode
Amitkumar Karwar
amitkarwar at gmail.com
Fri Jul 28 11:22:17 UTC 2017
From: Prameela Rani Garnepudi <prameela.j04cs at gmail.com>
BugLink: https://bugs.launchpad.net/bugs/1706991
When Coex mode is enabled, enabling power save will improve
radio sharing. Hence PS on by default flag is set.
Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs at gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar at redpinesignals.com>
---
ubuntu/rsi/rsi_91x_mac80211.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ubuntu/rsi/rsi_91x_mac80211.c b/ubuntu/rsi/rsi_91x_mac80211.c
index 003f49d..8a4100a 100644
--- a/ubuntu/rsi/rsi_91x_mac80211.c
+++ b/ubuntu/rsi/rsi_91x_mac80211.c
@@ -2835,6 +2835,9 @@ int rsi_mac80211_attach(struct rsi_common *common)
// NL80211_FEATURE_P2P_GO_OPPPS);
#endif
+ if (common->coex_mode > 1)
+ wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
+
status = ieee80211_register_hw(hw);
if (status) {
ven_rsi_dbg(ERR_ZONE, "Failed to register to mac80211\n");
--
2.7.4
More information about the kernel-team
mailing list