[PATCH 5/5] Enter BMPS only STA mode

Eugene Krasnikov k.eugene.e at gmail.com
Thu Aug 1 07:18:10 EDT 2013


No need to enter BMPS mode for AP mode because HW will
never turn off the radio.

Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 56bfe4e..9b2c4dc 100644
--- a/main.c
+++ b/main.c
@@ -727,7 +727,9 @@ static int wcn36xx_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wow)
 
 	mutex_lock(&wcn->pm_mutex);
 	/* Enter BMPS only in connected state */
-	if ((wcn->aid > 0) && (wcn->pw_state != WCN36XX_BMPS))
+	if ((wcn->aid > 0) &&
+	    (wcn->pw_state != WCN36XX_BMPS) &&
+	    (NL80211_IFTYPE_STATION == vif->type))
 		wcn36xx_pmc_enter_bmps_state(wcn, vif->bss_conf.sync_tsf);
 	wcn->is_suspended = true;
 	wcn->is_con_lost_pending = false;
-- 
1.8.2.2




More information about the wcn36xx mailing list