[Refactor hostapd defconfig from OpenWRT]
[Description]
Refactor hostapd defconfig from OpenWRT
[Release-log]
N/A
diff --git a/recipes-connectivity/hostapd/files/defconfig b/recipes-connectivity/hostapd/files/hostapd-full.config
similarity index 94%
rename from recipes-connectivity/hostapd/files/defconfig
rename to recipes-connectivity/hostapd/files/hostapd-full.config
index d1c819d..c9eb2af 100644
--- a/recipes-connectivity/hostapd/files/defconfig
+++ b/recipes-connectivity/hostapd/files/hostapd-full.config
@@ -10,7 +10,7 @@
# to override previous values of the variables.
# Driver interface for Host AP driver
-CONFIG_DRIVER_HOSTAP=y
+#CONFIG_DRIVER_HOSTAP=y
# Driver interface for wired authenticator
CONFIG_DRIVER_WIRED=y
@@ -31,7 +31,7 @@
#CONFIG_LIBNL20=y
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
-CONFIG_LIBNL32=y
+#CONFIG_LIBNL32=y
# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
@@ -51,7 +51,7 @@
CONFIG_RSN_PREAUTH=y
# IEEE 802.11w (management frame protection)
-CONFIG_IEEE80211W=y
+#CONFIG_IEEE80211W=y
# Support Operating Channel Validation
#CONFIG_OCV=y
@@ -123,9 +123,9 @@
# Wi-Fi Protected Setup (WPS)
CONFIG_WPS=y
# Enable UPnP support for external WPS Registrars
-CONFIG_WPS_UPNP=y
+#CONFIG_WPS_UPNP=y
# Enable WPS support with NFC config method
-CONFIG_WPS_NFC=y
+#CONFIG_WPS_NFC=y
# EAP-IKEv2
#CONFIG_EAP_IKEV2=y
@@ -142,7 +142,7 @@
# RADIUS authentication server. This provides access to the integrated EAP
# server from external hosts using RADIUS.
-CONFIG_RADIUS_SERVER=y
+#CONFIG_RADIUS_SERVER=y
# Build IPv6 support for RADIUS operations
CONFIG_IPV6=y
@@ -152,7 +152,7 @@
# Use the hostapd's IEEE 802.11 authentication (ACL), but without
# the IEEE 802.11 Management capability (e.g., FreeBSD/net80211)
-CONFIG_DRIVER_RADIUS_ACL=y
+#CONFIG_DRIVER_RADIUS_ACL=y
# IEEE 802.11n (High Throughput) support
CONFIG_IEEE80211N=y
@@ -168,7 +168,7 @@
# Note: This is experimental and work in progress. The definitions are still
# subject to change and this should not be expected to interoperate with the
# final IEEE 802.11ax version.
-CONFIG_IEEE80211AX=y
+#CONFIG_IEEE80211AX=y
# Remove debugging code that is printing out debug messages to stdout.
# This can be used to reduce the size of the hostapd considerably if debugging
@@ -177,7 +177,7 @@
# Add support for writing debug log to a file: -f /tmp/hostapd.log
# Disabled by default.
-CONFIG_DEBUG_FILE=y
+#CONFIG_DEBUG_FILE=y
# Send debug messages to syslog instead of stdout
CONFIG_DEBUG_SYSLOG=y
@@ -208,7 +208,7 @@
# Remove support for dumping internal state through control interface commands
# This can be used to reduce binary size at the cost of disabling a debugging
# option.
-#CONFIG_NO_DUMP_STATE=y
+CONFIG_NO_DUMP_STATE=y
# Enable tracing code for developer debugging
# This tracks use of memory allocations and other registrations and reports
@@ -262,7 +262,7 @@
# Should we attempt to use the getrandom(2) call that provides more reliable
# yet secure randomness source than /dev/random on Linux 3.17 and newer.
# Requires glibc 2.25 to build, falls back to /dev/random if unavailable.
-#CONFIG_GETRANDOM=y
+CONFIG_GETRANDOM=y
# Should we use poll instead of select? Select is used by default.
#CONFIG_ELOOP_POLL=y
@@ -279,7 +279,7 @@
# internal = Internal TLSv1 implementation (experimental)
# linux = Linux kernel AF_ALG and internal TLSv1 implementation (experimental)
# none = Empty template
-#CONFIG_TLS=openssl
+CONFIG_TLS=internal
# TLS-based EAP methods require at least TLS v1.0. Newer version of TLS (v1.1)
# can be enabled to get a stronger construction of messages when block ciphers
@@ -292,13 +292,13 @@
# Select which ciphers to use by default with OpenSSL if the user does not
# specify them.
-CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW"
+#CONFIG_TLS_DEFAULT_CIPHERS="DEFAULT:!EXP:!LOW"
# If CONFIG_TLS=internal is used, additional library and include paths are
# needed for LibTomMath. Alternatively, an integrated, minimal version of
# LibTomMath can be used. See beginning of libtommath.c for details on benefits
# and drawbacks of this option.
-#CONFIG_INTERNAL_LIBTOMMATH=y
+CONFIG_INTERNAL_LIBTOMMATH=y
#ifndef CONFIG_INTERNAL_LIBTOMMATH
#LTM_PATH=/usr/src/libtommath-0.39
#CFLAGS += -I$(LTM_PATH)
@@ -316,7 +316,7 @@
CONFIG_INTERWORKING=y
# Hotspot 2.0
-CONFIG_HS20=y
+#CONFIG_HS20=y
# Enable SQLite database support in hlr_auc_gw, EAP-SIM DB, and eap_user_file
#CONFIG_SQLITE=y
@@ -357,12 +357,12 @@
# For more details refer to:
# http://wireless.kernel.org/en/users/Documentation/acs
#
-CONFIG_ACS=y
+#CONFIG_ACS=y
# Multiband Operation support
# These extentions facilitate efficient use of multiple frequency bands
# available to the AP and the devices that may associate with it.
-CONFIG_MBO=y
+#CONFIG_MBO=y
# Client Taxonomy
# Has the AP retain the Probe Request and (Re)Association Request frames from
@@ -371,7 +371,7 @@
CONFIG_TAXONOMY=y
# Fast Initial Link Setup (FILS) (IEEE 802.11ai)
-CONFIG_FILS=y
+#CONFIG_FILS=y
# FILS shared key authentication with PFS
#CONFIG_FILS_SK_PFS=y
@@ -381,12 +381,26 @@
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
-CONFIG_OWE=y
+#CONFIG_OWE=y
# Airtime policy support
CONFIG_AIRTIME_POLICY=y
+# Proxy ARP support
+CONFIG_PROXYARP=y
+
# Override default value for the wpa_disable_eapol_key_retries configuration
# parameter. See that parameter in hostapd.conf for more details.
#CFLAGS += -DDEFAULT_WPA_DISABLE_EAPOL_KEY_RETRIES=1
-CONFIG_WEP=y
+
+# uBus IPC/RPC System
+# Services can connect to the bus and provide methods
+# that can be called by other services or clients.
+
+
+# OpenWrt patch 380-disable-ctrl-iface-mib.patch
+# leads to the MIB only being compiled in if
+# CONFIG_CTRL_IFACE_MIB is enabled.
+CONFIG_CTRL_IFACE_MIB=y
+CONFIG_MBO=y
+CONFIG_WPS_UPNP=y
diff --git a/recipes-connectivity/hostapd/hostapd_2.10.bb b/recipes-connectivity/hostapd/hostapd_2.10.bb
index f3cde0c..a372ae1 100644
--- a/recipes-connectivity/hostapd/hostapd_2.10.bb
+++ b/recipes-connectivity/hostapd/hostapd_2.10.bb
@@ -15,7 +15,7 @@
SRCREV ?= "cff80b4f7d3c0a47c052e8187d671710f48939e4"
SRC_URI = " \
git://w1.fi/hostap.git;protocol=https;branch=main \
- file://defconfig \
+ file://hostapd-full.config \
file://hostapd-2G.conf \
file://hostapd-5G.conf \
file://hostapd-bhaul2G.conf \
@@ -45,7 +45,17 @@
}
do_configure_append() {
- install -m 0644 ${WORKDIR}/defconfig ${B}/.config
+ install -m 0644 ${WORKDIR}/hostapd-full.config ${B}/.config
+
+ echo "CONFIG_ACS=y" >> ${B}/.config
+ echo "CONFIG_IEEE80211AX=y" >> ${B}/.config
+ echo "CONFIG_TLS=openssl" >> ${B}/.config
+ echo "CONFIG_SAE=y" >> ${B}/.config
+ echo "CONFIG_OWE=y" >> ${B}/.config
+ echo "CONFIG_SUITEB192=y" >> ${B}/.config
+ echo "CONFIG_AP=y" >> ${B}/.config
+ echo "CONFIG_MESH=y" >> ${B}/.config
+ echo "CONFIG_WEP=y" >> ${B}/.config
}
do_filogic_patches() {