fetch macaddr right after supplicant connection
Bug: 3072163 Change-Id: I13466e3bc73a1a95d42faf17650fad4383f7e5b2
This commit is contained in:
@@ -840,9 +840,15 @@ public class WifiStateTracker extends NetworkStateTracker {
|
||||
switch (msg.what) {
|
||||
case EVENT_SUPPLICANT_CONNECTION:
|
||||
mRunState = RUN_STATE_RUNNING;
|
||||
String macaddr;
|
||||
synchronized (this) {
|
||||
updateBatteryWorkSourceLocked(null);
|
||||
macaddr = WifiNative.getMacAddressCommand();
|
||||
}
|
||||
if (macaddr != null) {
|
||||
mWifiInfo.setMacAddress(macaddr);
|
||||
}
|
||||
|
||||
checkUseStaticIp();
|
||||
/* Reset notification state on new connection */
|
||||
resetNotificationTimer();
|
||||
|
||||
Reference in New Issue
Block a user