How to find speed of wlan interface?
I'm trying to find speed of network interface using file-descriptor. I't easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately this method doesn't work with wireless interface. When I call /sys/class/net/wlan0/speed I get error: invalid argument. So, do you know any /sys/class/net/eth0/speed like analog for wlan interface?
I'm trying to find speed of network interface using file-descriptor. I't easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately this method doesn't work with wireless interface. When I call /sys/class/net/wlan0/speed I get error: invalid argument. So, do you know any /sys/class/net/eth0/speed like analog for wlan interface?
No comments:
Post a Comment