diff options
| author | Harin Lee | 2025-12-24 19:15:25 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-12-25 16:00:12 +0000 |
| commit | 2ebcda1ea6b757864c4700e543a9767752ca766e (patch) | |
| tree | 325f97ded5251931bac321d371356afbc9dca852 | |
| parent | 3602a98f55b9024ae4aa00a23873b0b2f9fab019 (diff) | |
| download | openwrt-2ebcda1ea6b757864c4700e543a9767752ca766e.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>
| -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; |