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

Commit f76c1685 authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android Git Automerger
Browse files

am 049cbd64: Merge "Fix a bug in single socket connection to Wifi Supplicant" into klp-dev

* commit '049cbd64':
  Fix a bug in single socket connection to Wifi Supplicant
parents 72d29c2d 049cbd64
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -514,6 +514,12 @@ public class WifiMonitor {
                    if (space != -1) {
                    if (space != -1) {
                        String iface = eventStr.substring(7,space);
                        String iface = eventStr.substring(7,space);
                        m = mWifiMonitorSingleton.getMonitor(iface);
                        m = mWifiMonitorSingleton.getMonitor(iface);
                        if (m == null && iface.startsWith("p2p-")) {
                            // p2p interfaces are created dynamically, but we have
                            // only one P2p state machine monitoring all of them; look
                            // for it explicitly, and send messages there ..
                            m = mWifiMonitorSingleton.getMonitor("p2p0");
                        }
                        if (m != null) {
                        if (m != null) {
                            if (m.mMonitoring) {
                            if (m.mMonitoring) {
                                mStateMachine = m.mWifiStateMachine;
                                mStateMachine = m.mWifiStateMachine;