Support phy80211, fixes #209.
This commit is contained in:
parent
93cecab1ed
commit
ca752a5a2d
@ -42,7 +42,8 @@ _ifindex()
|
|||||||
_is_wireless()
|
_is_wireless()
|
||||||
{
|
{
|
||||||
# Support new sysfs layout
|
# 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
|
[ ! -e /proc/net/wireless ] && return 1
|
||||||
grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless
|
grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless
|
||||||
|
@ -43,7 +43,8 @@ _ifindex()
|
|||||||
_is_wireless()
|
_is_wireless()
|
||||||
{
|
{
|
||||||
# Support new sysfs layout
|
# 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
|
[ ! -e /proc/net/wireless ] && return 1
|
||||||
grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless
|
grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/wireless
|
||||||
|
Loading…
Reference in New Issue
Block a user