Merge "fetch macaddr right after supplicant connection" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
f8834f878f
@@ -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