summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2010-10-15 10:30:14 -0700
committerIrfan Sheriff <isheriff@google.com>2010-10-15 10:30:14 -0700
commit79f7fe2daa0dadd4e68bc94b3523edd776e43986 (patch)
tree68951e62d2574d7247db5630fc8e9ff6af2a3aa7 /wifi
parent612ebb9257e2adf982ed846fa43251c3754361f7 (diff)
downloadframeworks_base-79f7fe2daa0dadd4e68bc94b3523edd776e43986.zip
frameworks_base-79f7fe2daa0dadd4e68bc94b3523edd776e43986.tar.gz
frameworks_base-79f7fe2daa0dadd4e68bc94b3523edd776e43986.tar.bz2
fetch macaddr right after supplicant connection
Bug: 3072163 Change-Id: I13466e3bc73a1a95d42faf17650fad4383f7e5b2
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateTracker.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateTracker.java b/wifi/java/android/net/wifi/WifiStateTracker.java
index 06f6696..95e3945 100644
--- a/wifi/java/android/net/wifi/WifiStateTracker.java
+++ b/wifi/java/android/net/wifi/WifiStateTracker.java
@@ -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();