diff options
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r-- | net/iproute2.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh index d983c9bd..0df8eef7 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -43,7 +43,8 @@ _ifindex() _is_wireless() { # Support new sysfs layout - [ -d /sys/class/net/"${IFACE}"/wireless ] && return 0 + [ -d /sys/class/net/"${IFACE}"/wireless -o \ + -d /sys/class/net/"${IFACE}"/phy80211 ] && return 0 [ ! -e /proc/net/wireless ] && return 1 grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless |