瀏覽代碼

qcacld-3.0: Add idle shutdown for hostapd mode stop

Because FW don't support idle pdev suspend, and when all interface down
host will not send wow enable command because wakeup is not expected.
So the idle shutdown precedure is already there to prevent system go to
idle pdev suspend state, but it only exist for station mode now, apply
it to hostapd mode as well.

Change-Id: I1b11b5bd038ea9ad23835f142e443ea11e90f55b
CRs-Fixed: 2624453
Will Huang 5 年之前
父節點
當前提交
64a2e6f892
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 3 - 0
core/hdd/src/wlan_hdd_hostapd.c

@@ -534,6 +534,9 @@ static int __hdd_hostapd_stop(struct net_device *dev)
 				     WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER,
 				     WLAN_CONTROL_PATH);
 
+	if (!hdd_is_any_interface_open(hdd_ctx))
+		hdd_psoc_idle_timer_start(hdd_ctx);
+
 	hdd_exit();
 	return 0;
 }