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

Make Wifi-Interfaces work

parent 785f0254
......@@ -28,6 +28,12 @@ def get_nic_speeds():
ret[nic] = speed
except OSError:
# 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
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