diff mbox series

[1/2] hostapd: add support for wired driver

Message ID 20171227192900.1082-1-alexander.i.mukhin@gmail.com
State Changes Requested
Headers show
Series [1/2] hostapd: add support for wired driver | expand

Commit Message

Alexander Mukhin Dec. 27, 2017, 7:29 p.m. UTC
Add support for the wired authenticator (disabled by default).

Signed-off-by: Alexander Mukhin <alexander.i.mukhin@gmail.com>
---

These patches are meant to be applied after the series I sent before
(see hostapd: new configuration options)

 package/hostapd/Config.in  | 7 +++++++
 package/hostapd/hostapd.mk | 4 ++++
 2 files changed, 11 insertions(+)

Comments

Thomas Petazzoni Dec. 27, 2017, 10:15 p.m. UTC | #1
Hello,

On Wed, 27 Dec 2017 22:29:00 +0300, Alexander Mukhin wrote:
> Add support for the wired authenticator (disabled by default).

disabled by default...

> These patches are meant to be applied after the series I sent before
> (see hostapd: new configuration options)

Could you please send a single series instead ? This makes the
dependency much clearer.

> +config BR2_PACKAGE_HOSTAPD_DRIVER_WIRED
> +	bool "Enable wired driver"
> +	default y

... but you're defaulting to "y".

Best regards,

Thomas
diff mbox series

Patch

diff --git a/package/hostapd/Config.in b/package/hostapd/Config.in
index 115563f564..bfb5447c1e 100644
--- a/package/hostapd/Config.in
+++ b/package/hostapd/Config.in
@@ -34,10 +34,17 @@  config BR2_PACKAGE_HOSTAPD_DRIVER_RTW
 	help
 	  Enable support for Realtek wireless chips.
 
+config BR2_PACKAGE_HOSTAPD_DRIVER_WIRED
+	bool "Enable wired driver"
+	default y
+	help
+	  Enable support for wired authenticator.
+
 comment "at least one driver must be selected"
 	depends on !BR2_PACKAGE_HOSTAPD_DRIVER_HOSTAP
 	depends on !BR2_PACKAGE_HOSTAPD_DRIVER_NL80211
 	depends on !BR2_PACKAGE_HOSTAPD_DRIVER_RTW
+	depends on !BR2_PACKAGE_HOSTAPD_DRIVER_WIRED
 
 config BR2_PACKAGE_HOSTAPD_ACS
 	bool "Enable ACS"
diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk
index 9b73c596f8..1700335c1a 100644
--- a/package/hostapd/hostapd.mk
+++ b/package/hostapd/hostapd.mk
@@ -54,6 +54,10 @@  HOSTAPD_PATCH += https://github.com/pritambaral/hostapd-rtl871xdrv/raw/master/rt
 HOSTAPD_CONFIG_SET += CONFIG_DRIVER_RTW
 endif
 
+ifeq ($(BR2_PACKAGE_HOSTAPD_DRIVER_WIRED),y)
+HOSTAPD_CONFIG_ENABLE += CONFIG_DRIVER_WIRED
+endif
+
 ifeq ($(BR2_PACKAGE_HOSTAPD_ACS),y)
 HOSTAPD_CONFIG_ENABLE += CONFIG_ACS
 endif