From: Amitkumar Karwar <amit.kar...@redpinesignals.com>

Power save is by default enabled for WLAN and BT coex mode.

Signed-off-by: Amitkumar Karwar <amit.kar...@redpinesignals.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagon...@redpinesignals.com>
---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c 
b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
index 2a77743..bb497bd 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
@@ -2008,6 +2008,9 @@ int rsi_mac80211_attach(struct rsi_common *common)
        wiphy->iface_combinations = rsi_iface_combinations;
        wiphy->n_iface_combinations = ARRAY_SIZE(rsi_iface_combinations);
 
+       if (common->coex_mode > 1)
+               wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
+
        status = ieee80211_register_hw(hw);
        if (status)
                return status;
-- 
2.7.4

Reply via email to