Commit 3c47d910 authored by Mario Hock's avatar Mario Hock

Make Wifi-Interfaces work

parent 785f0254
......@@ -28,7 +28,13 @@ def get_nic_speeds():
ret[nic] = speed
except OSError:
speed = 0
# Speed unknown for wireless links, set to 10Mbit/s (it will grow automatically)
if os.path.exists("/sys/class/net/" + nic + "/wireless"):
speed = 10000000
ret[nic] = speed
# Catches Loopback interface, etc
else:
speed = 0
return ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment