Handle native event in wifi thread

To prevent deadlocks while processing native callback or death
as we're in the midst of performing some state changes, post
the native notification to the wifi thread.

Bug: 134987917
Test: Performed some basic tests (toggle wifi,softap, etc)
Test: atest com.android.server.wifi.HalDeviceManagerTest
Change-Id: Id24aa61ae51d254cfc937691475b19977e5c508d
(cherry-picked from ed9610cd4f703b8864fb2eb167bbbdce37561724)
3 files changed
tree: 16e610d9fcc04e2c3f01dd91e84746d76620afce
  1. service/
  2. PREUPLOAD.cfg