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

Commit 4b2766a3 authored by Vinit Deshapnde's avatar Vinit Deshapnde
Browse files

Fix a bug in single socket connection to Wifi Supplicant

My change to post messages without IFACE=<iface> prefix to all interfaces
was correct; but messages sent with IFACE=p2p-p2p0-0 et al were being sent
to p2p monitor only. This change mimics that to resolve some issues
introduced by the single socket change.

Bug: 10257602
Change-Id: Ia6164cb3cfd11c2a0a7b011eceaeabfd9677f62c
parent 37ee68fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -514,6 +514,12 @@ public class WifiMonitor {
                    if (space != -1) {
                        String iface = eventStr.substring(7,space);
                        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.mMonitoring) {
                                mStateMachine = m.mWifiStateMachine;