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

Commit 6c6b685c authored by Rashmi Ramanna's avatar Rashmi Ramanna Committed by Steve Kondik
Browse files

Close sockets on wpa_supplicant termination.

Framework does not close the sockets on supplicant
termination, leading to leakage of file descriptors.

Thus close the socket on supplicant termination.

Change-Id: I50aefc6d60b3794288564f403a42258442e224df
CRs-Fixed: 576276
parent 3117366d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2336,6 +2336,7 @@ public class WifiStateMachine extends StateMachine {
        * or when the driver is hung. Ensure supplicant is stopped here.
        */
        mWifiMonitor.killSupplicant(mP2pSupported);
        mWifiNative.closeSupplicantConnection();
        sendSupplicantConnectionChangedBroadcast(false);
        setWifiState(WIFI_STATE_DISABLED);
    }