1

When, I try to cat the speed file, in /sys/class/net I get the following error

$ cat /sys/class/net/wlan0/speed 
cat: /sys/class/net/wlan0/speed: Invalid argument #throws error

Whereas, for eth0 it shows

$ cat /sys/class/net/eth0/speed
1000

Can I know the reason for the error for wlan alone. Also the duplex is unkown for wlan0 but the carrier is set to 1?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175

2 Answers2

2

Look at the output of iwconfig <interface>.

phk
  • 5,893
  • 7
  • 41
  • 70
-1

You can use all of these commands (I recommend ethtool)

dmesg | grep <interface>

mii-tool

ethtool <interface>

Zwans
  • 70
  • 3