Browse Source

qcacld-3.0: Handle link down in hdd_wlan_fake_apps_suspend

It needs to check resume_setting for link down in
hdd_wlan_fake_apps_suspend.

Change-Id: I26c6663c2700fa4e403040201c5d04506ebfeb55
CRs-Fixed: 3009619
Jingxiang Ge 3 years ago
parent
commit
dff8372b60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/hdd/src/wlan_hdd_power.c

+ 2 - 1
core/hdd/src/wlan_hdd_power.c

@@ -3245,7 +3245,8 @@ cfg80211_resume:
 	QDF_BUG(!wlan_hdd_cfg80211_resume_wlan(wiphy));
 
 link_down:
-	hif_vote_link_down(hif_ctx);
+	if (resume_setting == WOW_RESUME_TRIGGER_HTC_WAKEUP)
+		hif_vote_link_down(hif_ctx);
 
 	clear_bit(HDD_FA_SUSPENDED_BIT, &fake_apps_state);
 	hdd_err("Unit-test suspend failed: %d", errno);