Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] wpa_supplicant: add CONFIG_AP support
@ 2011-12-05 12:33 Daniel Mack
  2011-12-07 20:04 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Mack @ 2011-12-05 12:33 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 package/wpa_supplicant/Config.in         |    9 +++++++++
 package/wpa_supplicant/wpa_supplicant.mk |   11 +++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index e3df2b4..aa2d196 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -23,3 +23,12 @@ config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
 	help
 	  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.
+
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 96f64ca..f722b81 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -25,6 +25,16 @@ define WPA_SUPPLICANT_EAP_CONFIG
 endef
 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
 	echo "CONFIG_CRYPTO=internal" >>$(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_LIBNL_CONFIG)
 	$(WPA_SUPPLICANT_DBUS_CONFIG)
+	$(WPA_SUPPLICANT_AP_CONFIG)
 endef
 
 define WPA_SUPPLICANT_REMOVE_CLI
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] wpa_supplicant: add CONFIG_AP support
  2011-12-05 12:33 [Buildroot] [PATCH] wpa_supplicant: add CONFIG_AP support Daniel Mack
@ 2011-12-07 20:04 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-12-07 20:04 UTC (permalink / raw)
  To: buildroot

>>>>> "Daniel" == Daniel Mack <zonque@gmail.com> writes:

 Daniel> Signed-off-by: Daniel Mack <zonque@gmail.com>
 Daniel> ---
 Daniel>  package/wpa_supplicant/Config.in         |    9 +++++++++
 Daniel>  package/wpa_supplicant/wpa_supplicant.mk |   11 +++++++++++
 Daniel>  2 files changed, 20 insertions(+), 0 deletions(-)

 Daniel> diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
 Daniel> index e3df2b4..aa2d196 100644
 Daniel> --- a/package/wpa_supplicant/Config.in
 Daniel> +++ b/package/wpa_supplicant/Config.in
 Daniel> @@ -23,3 +23,12 @@ config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
 Daniel>  	help
 Daniel>  	  Install wpa_passphrase command line utility
 
 Daniel> +config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
 Daniel> +	bool "Enable support for soft AP"
 Daniel> +	depends on BR2_PACKAGE_WPA_SUPPLICANT
 Daniel> +	help
 Daniel> +	  With this option enabled, wpa_supplicant can act as
 Daniel> +	  access point. This can be used for open and WPA2-Personal networks
 Daniel> +          (optionally, with WPS); this links in parts of hostapd functionality
 Daniel> +          into wpa_supplicant.

The indentation is wrong, otherwise it looks good, committed thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-07 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-05 12:33 [Buildroot] [PATCH] wpa_supplicant: add CONFIG_AP support Daniel Mack
2011-12-07 20:04 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox