Ye Jiao bf8f310071 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE
On a low-end device which does not support STA-SAP concurrency, if STA
is currently enabled and user/app tries to enable SAP, then Wi-Fi needs
to reconfigure and stop Wi-Fi HAL first. Among other stopping actions,
HAL needs to set global_handle_ to nullptr and send "Exit" to
wifi_event_loop then waits no more than kMaxStopCompleteWaitMs. If the
wait times out, then reconfiguration fails and causes Wi-Fi controller
returns to STA mode and creates new STA iface indirectly. In this
process, HAL needs to access global_handle_, but since it was cleared,
we can only get a Native Exception.

Because there is no proper error recovery for UNKNOWN errors, I suggest
to simply set kMaxStopCompleteWaitMs to a higher value to circumvent
this timing issue.

Bug: 173760638
Change-Id: I1b5a0a7a554409704c017ffaf52a767b9424c61e
2020-12-02 17:44:49 +00:00
2020-10-27 15:24:36 +01:00
2020-09-26 04:11:28 +00:00
2020-09-26 04:11:28 +00:00
2020-09-26 04:11:28 +00:00
2020-09-26 04:11:28 +00:00
2020-09-26 04:11:28 +00:00
2020-10-08 23:22:52 -07:00
2020-09-26 04:11:28 +00:00
2020-10-08 23:22:52 -07:00
2020-09-26 04:11:28 +00:00
2020-09-26 04:11:28 +00:00
2020-10-08 23:22:52 -07:00
2019-12-13 14:24:23 -08:00
2016-08-30 11:28:36 -07:00
2019-12-10 09:51:58 -08:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%