HDM: Prevent race condition by guarding with lock.

HalDeviceManager.mWifi is shared resource for various wifi modules
(threads). Acquire lock before using it.

(cherry-picked from go/pag/1694045)

Bug: 158276067
Test: atest com.android.server.wifi

Change-Id: I2e7763fa5e0da43ece5862b5e2c787eb1df572b5
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
1 file changed
tree: 266f5a7dc8b243e74c8026b27b4d1063f177ef67
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg