Skip to contentSkip to conversation

wpa_supplicant: add CONFIG_AP support

PATCH New Daniel Mack 2 participants 2 messages Dec 5, 2011 – Dec 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wpa_supplicant: add CONFIG_AP support

---
 package/wpa_supplicant/Config.in         |    9 +++++++++
 package/wpa_supplicant/wpa_supplicant.mk |   11 +++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
package/wpa_supplicant/Config.in +9 -0
index e3df2b4..aa2d196 100644
@@ -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.
+
package/wpa_supplicant/wpa_supplicant.mk +11 -0
index 96f64ca..f722b81 100644
@@ -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
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 1/1 wpa_supplicant: add CONFIG_AP support

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Daniel" == Daniel Mack <[email protected]> writes:

Daniel> Signed-off-by: Daniel Mack <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard