Skip to contentSkip to conversation

wpa-supplicant: Add NL80211 support option

PATCH New Jean-Baptiste Theou 3 participants 6 messages Aug 7, 2014 – Aug 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

---
 package/wpa_supplicant/Config.in         | 6 ++++++
 package/wpa_supplicant/wpa_supplicant.mk | 6 ++++++
 2 files changed, 12 insertions(+)
package/wpa_supplicant/Config.in +6 -0
index 81c61ac..2fb20ab 100644
@@ -22,6 +22,12 @@ config BR2_PACKAGE_WPA_SUPPLICANT_EAP
 	help
 	  Enable support for EAP.
 
+config BR2_PACKAGE_WPA_SUPPLICANT_NL80211
+	bool "Enable NL80211"
+	depends on BR2_PACKAGE_LIBNL
+	help
+	  Enable support for NL80211.
+
 config BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT
 	bool "Enable HS20"
 	help
package/wpa_supplicant/wpa_supplicant.mk +6 -0
index 0ca2ce5..2807151 100644
@@ -49,6 +49,12 @@ else
 	WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_EAP
 endif
 
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_NL80211),y)
+	WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_DRIVER_NL80211
+else
+	WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_DRIVER_NL80211
+endif
+
 ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT),y)
 	WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_HS20 \
 		CONFIG_INTERWORKING
Signature · 1 line
2.0.3
#1 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

Quoted 5 lines · Jean-Baptiste Theou
---
 package/wpa_supplicant/Config.in         | 6 ++++++
 package/wpa_supplicant/wpa_supplicant.mk | 6 ++++++
 2 files changed, 12 insertions(+)

Hi.
Hmmm why?
This is done automatically if the libnl package is selected/around. We really don't want to thread too thin into hostapd & wpa_supplicant config options.
Regards.

#2 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

HI,

Ok, please discard the patch.

IMHO, wpa_supplicant should provide the support of NL80211 by default ('depends on BR2_PACKAGE_LIBNL) since it's the new standard.

I wasn't expected to have to select LIBNL manually.

Best regards,

Quoted 15 lines · Gustavo Zacarias
Quoted 5 lines · Jean-Baptiste Theou
---
  package/wpa_supplicant/Config.in         | 6 ++++++
  package/wpa_supplicant/wpa_supplicant.mk | 6 ++++++
  2 files changed, 12 insertions(+)

Hi.
Hmmm why?
This is done automatically if the libnl package is selected/around. We really don't want to thread too thin into hostapd & wpa_supplicant config options.
Regards.

Signature · 10 lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140807/d41578fa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 8458 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140807/d41578fa/attachment.jpg>
#3 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

Dear Jean-Baptiste Theou,

Quoted 4 lines · Jean-Baptiste Theou

IMHO, wpa_supplicant should provide the support of NL80211 by default ('depends on BR2_PACKAGE_LIBNL) since it's the new standard.

I wasn't expected to have to select LIBNL manually.

There is a balance to find between:

* Adding suboptions to package to enable support for optional features (what you did).

Advantages : more obvious to the user, you can enable an optional feature in package A, but not in package B (like you can use OpenSSL support for your web server, but not necessarily for all other packages in your system)

Drawbacks : maintenance burden due to more Config.in options all over the place.

* Make packages automatically enable optional features when the necessary dependencies are available.

Advantages : less Config.in options to add everywhere.

Drawbacks : less obvious to the user, less flexible (enabling OpenSSL makes it used in all packages that can optionally use it).

You could propose a patch that extends the Config.in help text of wpa_supplicant to indicate this optional dependency, though we don't have a specific policy about this.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

Hi Thomas.

I agree about finding the balance.

Regarding this specific matter, having an visual indication of the support or not for the new standard of the wireless support seems an important issue for me.

Having an message inside the help doesn't seems a good solution for me, since it's not a "side" feature of wpa_supplicant. I would like the LIBNL to be selected by wpa_supplicant, but I understand you are not agree with this option

I sent an V2 version of my patch, with an better indication of the link between libnl and wpa_supplicant.

If it doesn't work for you, I will send an patch with an indication on the help message, but IMHO, at least, this suboption is mandatory.

Best regards

Quoted 36 lines · Thomas Petazzoni

Dear Jean-Baptiste Theou,

Quoted 4 lines · Jean-Baptiste Theou

IMHO, wpa_supplicant should provide the support of NL80211 by default ('depends on BR2_PACKAGE_LIBNL) since it's the new standard.

I wasn't expected to have to select LIBNL manually.

There is a balance to find between:

* Adding suboptions to package to enable support for optional features (what you did).

Advantages : more obvious to the user, you can enable an optional feature in package A, but not in package B (like you can use OpenSSL support for your web server, but not necessarily for all other packages in your system)

Drawbacks : maintenance burden due to more Config.in options all over the place.

* Make packages automatically enable optional features when the necessary dependencies are available.

Advantages : less Config.in options to add everywhere.

Drawbacks : less obvious to the user, less flexible (enabling OpenSSL makes it used in all packages that can optionally use it).

You could propose a patch that extends the Config.in help text of wpa_supplicant to indicate this optional dependency, though we don't have a specific policy about this.

Best regards,

Thomas

Signature · 10 lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140808/e6ead6ef/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 8458 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140808/e6ead6ef/attachment.jpg>
#5 lore raw

PATCH 1/1 wpa-supplicant: Add NL80211 support option

In reply to Gustavo Zacarias

Dear Gustavo Zacarias,

Quoted 3 lines · Gustavo Zacarias

This is done automatically if the libnl package is selected/around. We really don't want to thread too thin into hostapd & wpa_supplicant config options.

Hum, so, Jean-Baptiste patch is adding CONFIG_DRIVER_NL80211 to the configuration when libnl is available. But the current wpa_supplicant.mk does (after removing the static lib special case)

ifeq ($(BR2_PACKAGE_LIBNL),y)

        WPA_SUPPLICANT_DEPENDENCIES += libnl
        WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_LIBNL32
else
        WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_DRIVER_NL80211

endif

So it enables CONFIG_LIBNL32 when libnl is used. Which is not exactly the same thing. But interesting, in the else case, it's CONFIG_DRIVER_NL80211 that gets disabled.

I'm a bit confused :)

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com