WifiInjector: Create CMM specific instance of WifiInfo
Use ActiveModeWarden to fetch the currrent WifiInfo in other modules.
Note: Some of the modules have circular dependency issues with
ActiveModeWarden, so these modules register for callback lazily.
Bug: 173460539
Test: atest com.android.server.wifi
Test: Manual steps (Automotive STA + STA use-case):
i) adb shell cmd wifi add-network network1 wpa2 networkP (Primary)
ii) adb shell cmd wifi add-suggestion network2 open -p (Secondary OEM private)
iii) adb shell cmd wifi status (Shows 2 different WifiInfo now).
Change-Id: Ieea50986a7203e8103dd7be6649b4b7358135b12
7 files changed