diff options
author | Quang Luong <qal@google.com> | 2019-06-06 16:51:53 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2019-06-07 14:06:24 -0700 |
commit | 9574a1beb4a71d4662a88a91834a81e56a77a2e7 (patch) | |
tree | d46944cecc568bcc457fbdfcaf99019f15d54dd6 /startop/scripts/lib/cmd_utils.py | |
parent | 1f66726d08505dca06e8c60add14de5d510a934f (diff) |
Made AccessPoint's scan result list thread safe
If wifi verbose logging is enabled, the main thread may iterate through
the scan result list while the worker thread updates it, resulting in
an ArrayIndexOutOfBounds exception. This change adds a lock to every
iteration through mScanResults and mExtraScanResults.
Bug: 134098126
Test: atest WifiTrackerTest && atest AccessPointTest
Change-Id: If42a9ad8031ff66b1732a79772ba441185f7a18f
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions