Loading wifi/java/android/net/wifi/WifiStateTracker.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -841,9 +841,15 @@ public class WifiStateTracker extends NetworkStateTracker { switch (msg.what) { switch (msg.what) { case EVENT_SUPPLICANT_CONNECTION: case EVENT_SUPPLICANT_CONNECTION: mRunState = RUN_STATE_RUNNING; mRunState = RUN_STATE_RUNNING; String macaddr; synchronized (this) { synchronized (this) { updateBatteryWorkSourceLocked(null); updateBatteryWorkSourceLocked(null); macaddr = WifiNative.getMacAddressCommand(); } } if (macaddr != null) { mWifiInfo.setMacAddress(macaddr); } checkUseStaticIp(); checkUseStaticIp(); /* Reset notification state on new connection */ /* Reset notification state on new connection */ resetNotificationTimer(); resetNotificationTimer(); Loading Loading
wifi/java/android/net/wifi/WifiStateTracker.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -841,9 +841,15 @@ public class WifiStateTracker extends NetworkStateTracker { switch (msg.what) { switch (msg.what) { case EVENT_SUPPLICANT_CONNECTION: case EVENT_SUPPLICANT_CONNECTION: mRunState = RUN_STATE_RUNNING; mRunState = RUN_STATE_RUNNING; String macaddr; synchronized (this) { synchronized (this) { updateBatteryWorkSourceLocked(null); updateBatteryWorkSourceLocked(null); macaddr = WifiNative.getMacAddressCommand(); } } if (macaddr != null) { mWifiInfo.setMacAddress(macaddr); } checkUseStaticIp(); checkUseStaticIp(); /* Reset notification state on new connection */ /* Reset notification state on new connection */ resetNotificationTimer(); resetNotificationTimer(); Loading