Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79f7fe2d authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

fetch macaddr right after supplicant connection

Bug: 3072163
Change-Id: I13466e3bc73a1a95d42faf17650fad4383f7e5b2
parent 612ebb92
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();