diff options
| author | Harin Lee | 2025-12-24 19:15:25 +0000 |
|---|---|---|
| committer | Christian Marangi | 2026-04-29 07:47:23 +0000 |
| commit | b76c38f9e2316e3ad125f6f2e4c7e27d025fad6e (patch) | |
| tree | 19d49c386bdb8369ccc689eec4f746be520b86f3 | |
| parent | c5de245171de11c694bb7720f5d30ab4467829ca (diff) | |
| download | openwrt-b76c38f9e2316e3ad125f6f2e4c7e27d025fad6e.tar.gz | |
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@harin.net>
Link: https://github.com/openwrt/openwrt/pull/21277
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 2ebcda1ea6b757864c4700e543a9767752ca766e)
Link: https://github.com/openwrt/openwrt/pull/23100
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rw-r--r-- | package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |