wpa_supplicant: add CONFIG_AP support
[Peter: Fix indentation] Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
88f95f82b7
commit
a15d47f090
@ -23,3 +23,11 @@ config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
|
|||||||
help
|
help
|
||||||
Install wpa_passphrase command line utility
|
Install wpa_passphrase command line utility
|
||||||
|
|
||||||
|
config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
|
||||||
|
bool "Enable support for soft AP"
|
||||||
|
depends on BR2_PACKAGE_WPA_SUPPLICANT
|
||||||
|
help
|
||||||
|
With this option enabled, wpa_supplicant can act as
|
||||||
|
access point. This can be used for open and WPA2-Personal networks
|
||||||
|
(optionally, with WPS); this links in parts of hostapd functionality
|
||||||
|
into wpa_supplicant.
|
||||||
|
@ -25,6 +25,16 @@ define WPA_SUPPLICANT_EAP_CONFIG
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT),y)
|
||||||
|
define WPA_SUPPLICANT_AP_CONFIG
|
||||||
|
echo "CONFIG_AP=y" >>$(WPA_SUPPLICANT_CONFIG)
|
||||||
|
endef
|
||||||
|
else
|
||||||
|
define WPA_SUPPLICANT_AP_CONFIG
|
||||||
|
$(SED) "s/^CONFIG_AP=y//" $(WPA_SUPPLICANT_CONFIG)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define WPA_SUPPLICANT_CRYPTO_CONFIG
|
define WPA_SUPPLICANT_CRYPTO_CONFIG
|
||||||
echo "CONFIG_CRYPTO=internal" >>$(WPA_SUPPLICANT_CONFIG)
|
echo "CONFIG_CRYPTO=internal" >>$(WPA_SUPPLICANT_CONFIG)
|
||||||
echo "CONFIG_INTERNAL_LIBTOMMATH=y" >>$(WPA_SUPPLICANT_CONFIG)
|
echo "CONFIG_INTERNAL_LIBTOMMATH=y" >>$(WPA_SUPPLICANT_CONFIG)
|
||||||
@ -69,6 +79,7 @@ define WPA_SUPPLICANT_CONFIGURE_CMDS
|
|||||||
$(WPA_SUPPLICANT_EAP_CONFIG)
|
$(WPA_SUPPLICANT_EAP_CONFIG)
|
||||||
$(WPA_SUPPLICANT_LIBNL_CONFIG)
|
$(WPA_SUPPLICANT_LIBNL_CONFIG)
|
||||||
$(WPA_SUPPLICANT_DBUS_CONFIG)
|
$(WPA_SUPPLICANT_DBUS_CONFIG)
|
||||||
|
$(WPA_SUPPLICANT_AP_CONFIG)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define WPA_SUPPLICANT_REMOVE_CLI
|
define WPA_SUPPLICANT_REMOVE_CLI
|
||||||
|
Loading…
Reference in New Issue
Block a user