hostapd: add support for configuring proxy ARP
authorFelix Fietkau <nbd@nbd.name>
Wed, 26 May 2021 11:50:43 +0000 (13:50 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 2 Jun 2021 07:33:12 +0000 (09:33 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.sh

index 13699bf673cce9a034a0929d98a7b95338e2075d..8d12683a394d831826d6a17aff994f62200c7f7c 100644 (file)
@@ -341,7 +341,7 @@ hostapd_common_add_bss_config() {
        config_add_array airtime_sta_weight
        config_add_int airtime_bss_weight airtime_bss_limit
 
-       config_add_boolean multicast_to_unicast per_sta_vif
+       config_add_boolean multicast_to_unicast proxy_arp per_sta_vif
 
        config_add_array hostapd_bss_options
 
@@ -518,7 +518,7 @@ hostapd_set_bss_options() {
                bss_load_update_period chan_util_avg_period sae_require_mfp \
                multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \
                airtime_bss_weight airtime_bss_limit airtime_sta_weight \
-               multicast_to_unicast per_sta_vif
+               multicast_to_unicast proxy_arp per_sta_vif
 
        set_default isolate 0
        set_default maxassoc 0
@@ -997,6 +997,10 @@ hostapd_set_bss_options() {
        if [ "$multicast_to_unicast" -gt 0 ]; then
                append bss_conf "multicast_to_unicast=$multicast_to_unicast" "$N"
        fi
+       set_default proxy_arp 0
+       if [ "$proxy_arp" -gt 0 ]; then
+               append bss_conf "proxy_arp=$proxy_arp" "$N"
+       fi
 
        set_default per_sta_vif 0
        if [ "$per_sta_vif" -gt 0 ]; then