diff options
author | Alon Bar-Lev <alon.barlev@gmail.com> | 2009-12-05 19:25:39 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-12-05 19:25:39 +0000 |
commit | ca752a5a2dcd097410e8d5e8df05545751b2c989 (patch) | |
tree | e29cfafc5a2fafe5a6810dbedb4be782beb6efdf /net | |
parent | 93cecab1ed20f23d556599ae61b8b9c1720c698f (diff) |
Support phy80211, fixes #209.
Diffstat (limited to 'net')
-rw-r--r-- | net/ifconfig.sh.Linux.in | 3 | ||||
-rw-r--r-- | net/iproute2.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in index ae68b2b6..85fc6ea5 100644 --- a/net/ifconfig.sh.Linux.in +++ b/net/ifconfig.sh.Linux.in @@ -42,7 +42,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 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 |