diff options
| author | Harin Lee | 2025-12-24 19:15:25 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2026-02-16 08:20:29 +0000 |
| commit | 16dcfc613ad4b4f26b45e42cf551c9cb02a09ee0 (patch) | |
| tree | e828e9efd32ca461763b772b79a44995b51ddd7a | |
| parent | 4ab2e3d0ddce28c8337e62e4a33bea6566fa1869 (diff) | |
| download | openwrt-16dcfc613ad4b4f26b45e42cf551c9cb02a09ee0.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)
| -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 0156906725..d61786fa65 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; |