diff options
| author | 2013-08-13 00:04:47 +0000 | |
|---|---|---|
| committer | 2013-08-13 00:11:25 +0000 | |
| commit | 049cbd64a21b85fd2cd975302b389d4b1579e2eb (patch) | |
| tree | fb531b6c7ec67ca1a8a4007f46c18bf4982f8f59 | |
| parent | ddbfdfa530a02e75402ff9c570c4420b94811b8e (diff) | |
| parent | 4b2766a3d8eaf6f7f50c05108c15010a3f275bde (diff) | |
Merge "Fix a bug in single socket connection to Wifi Supplicant" into klp-dev
| -rw-r--r-- | wifi/java/android/net/wifi/WifiMonitor.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiMonitor.java b/wifi/java/android/net/wifi/WifiMonitor.java index 92b8e466fb2d..f6d5c987b07d 100644 --- a/wifi/java/android/net/wifi/WifiMonitor.java +++ b/wifi/java/android/net/wifi/WifiMonitor.java @@ -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; |