Fix wpa_supplicant to find wireless interfaces on newer kernels.

Fixes #176.
This commit is contained in:
Roy Marples 2009-07-01 00:24:08 +01:00
parent 9907c90552
commit 889b317ac6

View File

@ -24,7 +24,9 @@ find_wireless()
case "$RC_UNAME" in
Linux)
for iface in /sys/class/net/*; do
if [ -e "$iface"/wireless ]; then
if [ -e "$iface"/wireless -o \
-e "$iface"/phy80211 ]
then
echo "${iface##*/}"
return 0
fi