[openwrt/openwrt] wifi-scripts: add missing na_mcast_to_ucast default when proxy_arp is disabled

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 25 02:46:58 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c15b85ee041f2ca6ff65fc104a1d392eaad936c0

commit c15b85ee041f2ca6ff65fc104a1d392eaad936c0
Author: Rany Hany <rany_hany at riseup.net>
AuthorDate: Sun Nov 16 09:04:55 2025 +0000

    wifi-scripts: add missing na_mcast_to_ucast default when proxy_arp is disabled
    
    Adds missing default value for na_mcast_to_ucast when proxy_arp is not enabled
    in order to silence the following msg:
    
       daemon.notice: netifd: radio1 (xxxx): sh: out of range
    
    Fixes: bcdb29f78f5 ("wifi-scripts: add na_mcast_to_ucast option")
    Reported-by: Antony Kolitsos <zeusomighty at hotmail.com>
    Signed-off-by: Rany Hany <rany_hany at riseup.net>
    Link: https://github.com/openwrt/openwrt/pull/20806
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
index f0df1127a8..b9bb07751e 100644
--- a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
+++ b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh
@@ -1160,9 +1160,9 @@ hostapd_set_bss_options() {
 		append bss_conf "multicast_to_unicast=$multicast_to_unicast_all" "$N"
 	fi
 	set_default proxy_arp 0
+	set_default na_mcast_to_ucast "$proxy_arp"
 	if [ "$proxy_arp" -gt 0 ]; then
 		append bss_conf "proxy_arp=$proxy_arp" "$N"
-		set_default na_mcast_to_ucast 1
 	fi
 	if [ "$na_mcast_to_ucast" -gt 0 ]; then
 		append bss_conf "na_mcast_to_ucast=$na_mcast_to_ucast" "$N"




More information about the lede-commits mailing list