aboutsummaryrefslogtreecommitdiff
path: root/net/ifconfig.sh.Linux.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/ifconfig.sh.Linux.in')
-rw-r--r--net/ifconfig.sh.Linux.in3
1 files changed, 2 insertions, 1 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