am f8834f87: Merge "fetch macaddr right after supplicant connection" into gingerbread

Merge commit 'f8834f878fb6911cbd4719640cd2e6bf3a958a92' into gingerbread-plus-aosp

* commit 'f8834f878fb6911cbd4719640cd2e6bf3a958a92':
  fetch macaddr right after supplicant connection
This commit is contained in:
Irfan Sheriff
2010-10-15 18:23:47 -07:00
committed by Android Git Automerger

View File

@@ -841,9 +841,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();