package/wpa_supplicant: fixing "Invalid configuration line"
Default configuration file is wrong for the default compiling options. Fixes: Successfully initialized wpa_supplicant Line 1: unknown global field 'ctrl_interface=/var/run/wpa_supplicant'. Line 1: Invalid configuration line 'ctrl_interface=/var/run/wpa_supplicant'. Failed to read or parse configuration '/etc/wpa_supplicant.conf'. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
c79d8cb72c
commit
a76294cd6c
@ -1,4 +1,4 @@
|
||||
ctrl_interface=/var/run/wpa_supplicant
|
||||
#ctrl_interface=/var/run/wpa_supplicant
|
||||
ap_scan=1
|
||||
|
||||
network={
|
||||
|
@ -184,6 +184,12 @@ WPA_SUPPLICANT_DEPENDENCIES += readline
|
||||
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_READLINE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),y)
|
||||
define WPA_SUPPLICANT_ENABLE_CTRL_IFACE
|
||||
sed -i '/ctrl_interface/s/^#//g' $(TARGET_DIR)/etc/wpa_supplicant.conf
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPA_CLIENT_SO),y)
|
||||
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_BUILD_WPA_CLIENT_SO
|
||||
define WPA_SUPPLICANT_INSTALL_WPA_CLIENT_SO
|
||||
@ -259,6 +265,7 @@ define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
|
||||
$(WPA_SUPPLICANT_INSTALL_PASSPHRASE)
|
||||
$(WPA_SUPPLICANT_INSTALL_DBUS)
|
||||
$(WPA_SUPPLICANT_INSTALL_WPA_CLIENT_SO)
|
||||
$(WPA_SUPPLICANT_ENABLE_CTRL_IFACE)
|
||||
endef
|
||||
|
||||
define WPA_SUPPLICANT_INSTALL_INIT_SYSTEMD
|
||||
|
Loading…
Reference in New Issue
Block a user