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

Commit 16c06fee authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

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

* commit 'f5186417':
  Fix clearing linkproperties on disconnect
parents 1426be82 f5186417
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);