From 9bd4e6bfc7701f0e1a1feb822f896540fd663979 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 29 Sep 2017 15:04:33 -0700 Subject: [PATCH] wifi(implementation): Increase stop timeout The current timeout of 50ms seems to be insufficient on some devices. So, changing it to a higher value. Bug: 66334487 Test: Ran the VTS tests continously in a loop for 30 minutes without failure. Previously, failure occurence was about once every 5-10 minutes. `while adb shell /data/VtsHalWifiSupplicantV1_0TargetTest; do :; done; adb bugreport` Change-Id: I884de64d748b46b9710a702f3c72cc30dd51627e --- wifi/1.1/default/wifi_legacy_hal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi/1.1/default/wifi_legacy_hal.cpp b/wifi/1.1/default/wifi_legacy_hal.cpp index a6f6971f38..36da6e5351 100644 --- a/wifi/1.1/default/wifi_legacy_hal.cpp +++ b/wifi/1.1/default/wifi_legacy_hal.cpp @@ -35,7 +35,7 @@ static constexpr uint32_t kMaxGscanFrequenciesForBand = 64; static constexpr uint32_t kLinkLayerStatsDataMpduSizeThreshold = 128; static constexpr uint32_t kMaxWakeReasonStatsArraySize = 32; static constexpr uint32_t kMaxRingBuffers = 10; -static constexpr uint32_t kMaxStopCompleteWaitMs = 50; +static constexpr uint32_t kMaxStopCompleteWaitMs = 100; // Helper function to create a non-const char* for legacy Hal API's. std::vector makeCharVec(const std::string& str) {