-1

This question already has an answer here:

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?

marked as duplicate by Archemar, GAD3R, sam, don_crissti, slm linux Dec 27 '16 at 16:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

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

dmesg | grep <interface>

mii-tool

ethtool <interface>

0

Look at the output of iwconfig <interface>.

  • yeah. It's working thanks. Can I know from which file does iwconfig calculates – Arunagiriswaran Ezhilan Dec 27 '16 at 15:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.