summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2019-05-31 09:37:36 -0700
committerHai Shalom <haishalom@google.com>2019-05-31 09:37:36 -0700
commitcbc4ad28904c305b1646d4bbb5dbb2db215df3bf (patch)
tree374c5110eb4b0f7cadbfdbedb0a879a5f9c19191
parentd347f084ac4b935a376425e322b0fc8000e61d29 (diff)
downloadandroid_frameworks_opt_net_wifi-cbc4ad28904c305b1646d4bbb5dbb2db215df3bf.tar.gz
android_frameworks_opt_net_wifi-cbc4ad28904c305b1646d4bbb5dbb2db215df3bf.tar.bz2
android_frameworks_opt_net_wifi-cbc4ad28904c305b1646d4bbb5dbb2db215df3bf.zip
[VTS] Add more time for wpa_supplicant to stop
Failure in the bug may be related to the fact that the phone's CPU was busy and supplicant daemon was not killed within 5 seconds. This change increases the timeout to 20 seconds, similarly to the wait time for starting the daemon. Bug: 134090626 Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host Change-Id: I02a577a8ecdd839a94a4a56a5ad9a7abe2d14e8f
-rw-r--r--libwifi_system/supplicant_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libwifi_system/supplicant_manager.cpp b/libwifi_system/supplicant_manager.cpp
index 5667648b3..60720d40f 100644
--- a/libwifi_system/supplicant_manager.cpp
+++ b/libwifi_system/supplicant_manager.cpp
@@ -89,7 +89,7 @@ bool SupplicantManager::StartSupplicant() {
bool SupplicantManager::StopSupplicant() {
char supp_status[PROPERTY_VALUE_MAX] = {'\0'};
- int count = 50; /* wait at most 5 seconds for completion */
+ int count = 200; /* wait at most 20 seconds for completion */
/* Check whether supplicant already stopped */
if (property_get(kSupplicantInitProperty, supp_status, NULL) &&