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

Commit f066ae00 authored by Rashmi Ramanna's avatar Rashmi Ramanna
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 f3b7c05d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2229,6 +2229,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);
    }