Skip to content

Commit

Permalink
hostapd: Add support for APuP
Browse files Browse the repository at this point in the history
Add support for hostapd Access Point Micro Peering

Signed-off-by: Gioacchino Mazzurco <[email protected]>
Link: https://gitlab.com/g10h4ck/hostap/-/commits/APuP
Link: openwrt/openwrt#15442
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
G10h4ck authored and hauke committed Aug 12, 2024
1 parent 9dbd45c commit e805201
Show file tree
Hide file tree
Showing 5 changed files with 636 additions and 2 deletions.
16 changes: 15 additions & 1 deletion package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ hostapd_common_add_bss_config() {
config_add_string fils_dhcp

config_add_int ocv

config_add_boolean apup
config_add_string apup_peer_ifname_prefix
}

hostapd_set_vlan_file() {
Expand Down Expand Up @@ -569,7 +572,7 @@ hostapd_set_bss_options() {
ppsk airtime_bss_weight airtime_bss_limit airtime_sta_weight \
multicast_to_unicast_all proxy_arp per_sta_vif \
eap_server eap_user_file ca_cert server_cert private_key private_key_passwd server_id \
vendor_elements fils ocv
vendor_elements fils ocv apup

set_default fils 0
set_default isolate 0
Expand All @@ -593,6 +596,7 @@ hostapd_set_bss_options() {
set_default airtime_bss_weight 0
set_default airtime_bss_limit 0
set_default eap_server 0
set_default apup 0

/usr/sbin/hostapd -vfils || fils=0

Expand Down Expand Up @@ -1163,6 +1167,16 @@ hostapd_set_bss_options() {
append bss_conf "per_sta_vif=$per_sta_vif" "$N"
fi

if [ "$apup" -gt 0 ]; then
append bss_conf "apup=$apup" "$N"

local apup_peer_ifname_prefix
json_get_vars apup_peer_ifname_prefix
if [ -n "$apup_peer_ifname_prefix" ] ; then
append bss_conf "apup_peer_ifname_prefix=$apup_peer_ifname_prefix" "$N"
fi
fi

json_get_values opts hostapd_bss_options
for val in $opts; do
append bss_conf "$val" "$N"
Expand Down
2 changes: 1 addition & 1 deletion package/network/services/hostapd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ DRIVER_MAKEOPTS= \
CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
CONFIG_IEEE80211AX=$(HOSTAPD_IEEE80211AX) \
CONFIG_MBO=$(CONFIG_WPA_MBO_SUPPORT) \
CONFIG_UCODE=y
CONFIG_UCODE=y CONFIG_APUP=y

ifeq ($(SSL_VARIANT),openssl)
DRIVER_MAKEOPTS += CONFIG_TLS=openssl CONFIG_SAE=y
Expand Down
Loading

0 comments on commit e805201

Please sign in to comment.