[openwrt/openwrt] wifi-scripts: fix macaddr check in mac80211.uc

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 25 08:10:49 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2ebcda1ea6b757864c4700e543a9767752ca766e

commit 2ebcda1ea6b757864c4700e543a9767752ca766e
Author: Harin Lee <me at harin.net>
AuthorDate: Thu Dec 25 04:15:25 2025 +0900

    wifi-scripts: fix macaddr check in mac80211.uc
    
    This fixes a simple logic error in the macaddr existence check in mac80211.uc.
    
    Signed-off-by: Harin Lee <me at harin.net>
    Link: https://github.com/openwrt/openwrt/pull/21277
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc b/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
index e82525e247..0b81fd65ec 100644
--- a/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
+++ b/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
@@ -20,7 +20,7 @@ function radio_exists(path, macaddr, phy, radio) {
 			continue;
 		if (radio != null && int(s.radio) != radio)
 			continue;
-		if (s.macaddr & lc(s.macaddr) == lc(macaddr))
+		if (s.macaddr && lc(s.macaddr) == lc(macaddr))
 			return true;
 		if (s.phy == phy)
 			return true;




More information about the lede-commits mailing list