Skip to content

Commit 2ebcda1

Browse files
harinworkshauke
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21277 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 3602a98 commit 2ebcda1

File tree

1 file changed

+1
-1
lines changed
  • package/network/config/wifi-scripts/files/lib/wifi

1 file changed

+1
-1
lines changed

package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function radio_exists(path, macaddr, phy, radio) {
2020
continue;
2121
if (radio != null && int(s.radio) != radio)
2222
continue;
23-
if (s.macaddr & lc(s.macaddr) == lc(macaddr))
23+
if (s.macaddr && lc(s.macaddr) == lc(macaddr))
2424
return true;
2525
if (s.phy == phy)
2626
return true;

0 commit comments

Comments
 (0)