diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-08-26 11:43:50 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-08-26 11:47:22 -0700 |
commit | 0dc7a27a4d3b8328028ced3a71bd331e77981166 (patch) | |
tree | e04767e08542e2322e72deb69a783043d87ca2d3 /wpa_supplicant/ctrl_iface_unix.c | |
parent | 44da0253a740e0329b18f60c196e1f2dcacfccea (diff) | |
download | external_wpa_supplicant_8-0dc7a27a4d3b8328028ced3a71bd331e77981166.zip external_wpa_supplicant_8-0dc7a27a4d3b8328028ced3a71bd331e77981166.tar.gz external_wpa_supplicant_8-0dc7a27a4d3b8328028ced3a71bd331e77981166.tar.bz2 |
Use exact interface as socket parameter for init
For p2p, there are virtual interfaces (like p2p-wlan0-X) created and
that results in binding to the common init socket right now.
Instead, have the init bind fail for p2p interfaces and create seperate
sockets specified by the ctrl_interface path in config file
Bug: 5002384
Change-Id: Ia155df079a0bcca1871b6bcab2ef7111f0cba6c1
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r-- | wpa_supplicant/ctrl_iface_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c index 306a222..9ad75d4 100644 --- a/wpa_supplicant/ctrl_iface_unix.c +++ b/wpa_supplicant/ctrl_iface_unix.c @@ -281,7 +281,7 @@ wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s) goto fail; #ifdef ANDROID os_snprintf(addr.sun_path, sizeof(addr.sun_path), "wpa_%s", - wpa_s->conf->ctrl_interface); + wpa_s->ifname); priv->sock = android_get_control_socket(addr.sun_path); if (priv->sock >= 0) goto havesock; |