wpa-supplicant: enable control socket interface when executed by D-Bus
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
parent
3834dd5065
commit
308cb251d3
|
|
@ -0,0 +1,37 @@
|
||||||
|
From: Javier Viguera <javier.viguera@digi.com>
|
||||||
|
Date: Tue, 16 May 2017 18:30:31 +0200
|
||||||
|
Subject: [PATCH] wpa_supplicant: enable control socket interface when executed
|
||||||
|
by D-Bus
|
||||||
|
|
||||||
|
Otherwise trying to use the "wpa_cli" fails with:
|
||||||
|
|
||||||
|
Failed to connect to non-global ctrl_ifname
|
||||||
|
|
||||||
|
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
||||||
|
---
|
||||||
|
wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in | 2 +-
|
||||||
|
wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in b/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in
|
||||||
|
index a75918f9380b..9cce6331d92e 100644
|
||||||
|
--- a/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in
|
||||||
|
+++ b/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
[D-BUS Service]
|
||||||
|
Name=fi.epitest.hostap.WPASupplicant
|
||||||
|
-Exec=@BINDIR@/wpa_supplicant -u
|
||||||
|
+Exec=@BINDIR@/wpa_supplicant -u -O /var/run/wpa_supplicant
|
||||||
|
User=root
|
||||||
|
SystemdService=wpa_supplicant.service
|
||||||
|
diff --git a/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in b/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in
|
||||||
|
index d97ff392175d..98b72cf32481 100644
|
||||||
|
--- a/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in
|
||||||
|
+++ b/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
[D-BUS Service]
|
||||||
|
Name=fi.w1.wpa_supplicant1
|
||||||
|
-Exec=@BINDIR@/wpa_supplicant -u
|
||||||
|
+Exec=@BINDIR@/wpa_supplicant -u -O /var/run/wpa_supplicant
|
||||||
|
User=root
|
||||||
|
SystemdService=wpa_supplicant.service
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
# Copyright (C) 2013 Digi International.
|
# Copyright (C) 2013-2017 Digi International.
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||||
|
|
||||||
PACKAGECONFIG ?= "openssl"
|
PACKAGECONFIG ?= "openssl"
|
||||||
|
|
||||||
|
SRC_URI += "file://0001-wpa_supplicant-enable-control-socket-interface-when-.patch"
|
||||||
SRC_URI_append_ccimx6ul = " file://wpa_supplicant_p2p.conf"
|
SRC_URI_append_ccimx6ul = " file://wpa_supplicant_p2p.conf"
|
||||||
|
|
||||||
do_install_append_ccimx6ul() {
|
do_install_append_ccimx6ul() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue