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

Commit 81196b20 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix clearing linkproperties on disconnect

Bug: 5472644
Change-Id: If2b32b16fd3d65f1da12a9c5a8083d50125283d5
parent b7f4c7b7
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);