mac80211: fix typo that broke specifying the phy name directly (deprecated)
[openwrt.git] / package / mac80211 / files / lib / wifi / mac80211.sh
index d834afe..4bf035e 100644 (file)
@@ -186,7 +186,7 @@ mac80211_start_vif() {
 
 lookup_phy() {
        [ -n "$phy" ] && {
-               [ -d /sys/class/ieee80211/phy ] && return
+               [ -d /sys/class/ieee80211/$phy ] && return
        }
 
        local devpath