fetch macaddr right after supplicant connection

Bug: 3072163
Change-Id: I13466e3bc73a1a95d42faf17650fad4383f7e5b2
This commit is contained in:
Irfan Sheriff
2010-10-15 10:30:14 -07:00
parent 612ebb9257
commit 79f7fe2daa

View File

@@ -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();