HalDeviceManager: Reduce spammy log
i. The AOSP HAL implementation populates the chip info only when the HAL
is started (i.e IWifi.start()). Any queries to read chip id's before
that will fail.
ii. WifiManager.getSupportedFeatures() invokes
HalDeviceManager.getAllChipInfos(). This public API could however be
triggered even when wifi is off. So, ignore getAllChipInfos() call when
wifi is not started.
iii. HalDeviceManager.stopWifi sets mWifi to null (to support lazy HAL
kill). So, this should not be treated as error in isWifiStarted().
Bug: 181269159
Test: atest com.android.server.wifi
Change-Id: I6366b48ac0bad3d34c46312f806b0d1a1f349e07
2 files changed