]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix macaddr check in mac80211.uc main master
authorHarin Lee <me@harin.net>
Wed, 24 Dec 2025 19:15:25 +0000 (04:15 +0900)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Dec 2025 16:00:12 +0000 (17:00 +0100)
This fixes a simple logic error in the macaddr existence check in mac80211.uc.

Signed-off-by: Harin Lee <me@harin.net>
Link: https://github.com/openwrt/openwrt/pull/21277
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc

index e82525e247df38bcdaf6cd657d03fc65d2127614..0b81fd65ec34c92bd9104094da2587beee68b8e4 100644 (file)
@@ -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;