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