mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
wifi-scripts: fix macaddr check in mac80211.uc
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
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>
This commit is contained in:
parent
3602a98f55
commit
2ebcda1ea6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue