[PATCH v2 5/5] Judge the BMPS status before enter BMPS mode
dreamfly281 at gmail.com
dreamfly281 at gmail.com
Mon Jul 8 12:43:28 EDT 2013
From: Yanbo Li <yanbol at qti.qualcomm.com>
Be make surethe device is not in BMPS mode before enter it
when suspend
Signed-off-by: Yanbo Li <yanbol at qti.qualcomm.com>
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 61a4efe..98e6ef2 100644
--- a/main.c
+++ b/main.c
@@ -716,7 +716,7 @@ 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)
+ if ((wcn->aid > 0) && (wcn->pw_state != WCN36XX_BMPS))
wcn36xx_pmc_enter_bmps_state(wcn, vif->bss_conf.sync_tsf);
wcn->is_suspended = true;
wcn->is_con_lost_pending = false;
--
1.7.9.5
More information about the wcn36xx
mailing list