Comment 8 for bug 415719

Revision history for this message
Markus Fuchs (mfuchs13) wrote :

Rather than running "iwgetid" like proposed in the patch, I would suggest to classify the network device as WiFi

1. by looking at DEVTYPE in /sys/class/net/wlan0/uevent

$ cat /sys/class/net/wlan0/uevent
DEVTYPE=wlan
INTERFACE=wlan0
IFINDEX=3

(notice that DEVTYPE is not present for ethernet or dial-in devices).

or

2. looking if "/sys/class/net/wlan0/phy80211" is present

or

3. just listing all devices in /sys/class/ieee80211/phy0/device/net/

(2) and (3) would be as efficient as the current solution which stopped working.

Markus