ClientModeImpl: Use stored factory MAC address
Changes:
i. On the first wifi toggle on after upgrade, retrieve the
factory MAC address and store it in config store.
ii. All subsequent access to factory MAC address will now use the MAC
address stored in config store.
Note: This ensures that we use the same MAC address for networks with
MAC randomization disabled regardless of which interface is used for
connection (due to STA + STA).
Also, added a shell command to connect/add saved network with different
MAC randomization schemes.
Bug: 179939824
Test: atest com.android.server.wifi
Test: atest android.net.wifi.cts
Test: Manual Steps
- adb shell cmd wifi connect-network <ssid> open -r none (factory Mac
address retrieved from native)
- adb shell cmd wifi connect-network <ssid> open -r none (factory Mac
address retrieved from config store)
Change-Id: I8aa26bc543ea15e5855ed15cca81c7440ca58013
6 files changed