]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/commitdiff
wifi(implementation): Increase stop timeout
authorRoshan Pius <rpius@google.com>
Fri, 29 Sep 2017 22:04:33 +0000 (15:04 -0700)
committerRoshan Pius <rpius@google.com>
Fri, 29 Sep 2017 22:10:21 +0000 (15:10 -0700)
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

index a6f6971f38c80ee4622e2c4061ec4b4981ff78d9..36da6e53514a2445cd597de327accf7fff283153 100644 (file)
@@ -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<char> makeCharVec(const std::string& str) {