Fix Race between WifiNative and WifiMetrics
Fixes a deadlock that happens when ClientModeImpl#handleIfaceDestroyed
gets called on the WifiP2pService thread and WifiConnecitivtyManager
calls WifiMetrics#incrementAvailableNetworksHistograms on the Wifi
handler tread. This fixes the deadlock by making sure both operations
happen on the same thread.
Bug: 193759453
Test: atest com.android.server.wifi
Change-Id: Ic141d21f0ae117acfde50b012976370d20436eb7
Merged-In: Ic141d21f0ae117acfde50b012976370d20436eb7
(cherry picked from commit 5e2f986619a5e1a389a0f130cdead1e12a2db80f)
1 file changed