wpa_supplicant: Add an explicit option to enable nl80211.
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Fri, 17 Jul 2015 07:59:09 +0000 (09:59 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Oct 2015 12:38:55 +0000 (14:38 +0200)
commitf8ad272143c305fe32ed54fbb7d38021456daac7
treea182b92dfe28bcc9f41fccace8e7e4b809e37a70
parent3dde19e5f32c58ffbf7e190257b073e91e0a7e8d
wpa_supplicant: Add an explicit option to enable nl80211.

Currently, nl80211 support is conditionnal with libnl being enabled,
using implicit dependencies.  This causes problems since it is not
obvious and wpa_supplicant without nl80211 isn't what most user expects.

If nl80211 isn't enabled, then buildroot only enables the wext driver,
which will only work if some deprecated kernel feature isn't left
disabled, or if using a outdated out-of-tree linux driver which doesn't
use the cfg80211 infrastructure.

This makes nl80211 support an explicit option, which
"select BR2_PACKAGE_LIBNL" accordingly.  To handle upgrades nicely, it
would have been nice to have "default y if BR2_PACKAGE_LIBNL", but
Kconfig treats this as a circular dependency.  So instead, this enables
the option by default, which is less worse than not enabling nl80211
when it was previously implicitely enabled.

[Thomas:
 - rewrap Config.in help text
 - add comment about thread dependency.]

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Reviewed-by: Gary Bisson <gary.bisson@boundarydevices.com>
Tested-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wpa_supplicant/Config.in
package/wpa_supplicant/wpa_supplicant.mk