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

Commit f5186417 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android (Google) Code Review
Browse files

Merge "Fix clearing linkproperties on disconnect" into jb-mr2-dev

parents c3d8790d 81196b20
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1677,12 +1677,12 @@ public class WifiStateMachine extends StateMachine {
        setNetworkDetailedState(DetailedState.DISCONNECTED);
        mWifiConfigStore.updateStatus(mLastNetworkId, DetailedState.DISCONNECTED);

        /* send event to CM & network change broadcast */
        sendNetworkStateChangeBroadcast(mLastBssid);

        /* Clear network properties */
        mLinkProperties.clear();

        /* send event to CM & network change broadcast */
        sendNetworkStateChangeBroadcast(mLastBssid);

        /* Clear IP settings if the network used DHCP */
        if (!mWifiConfigStore.isUsingStaticIp(mLastNetworkId)) {
            mWifiConfigStore.clearLinkProperties(mLastNetworkId);