How to obtain Link Quality information

Iñaki Pascual ipascual at cttc.cat
Wed Jul 13 07:10:50 PDT 2016


Hi everyone,

I am trying to get link quality information from an 802.11ac interface 
and it looks like the only way is to use "iw wlan2 scan". I don't like 
this solution as it scans all channels and takes a while.

If I try "cat /proc/net/wireless" (this would be my preferred option) 
the output is empty and I am not able to get this information with any 
other tool. Below is the output for some commands I tried.

I am using kernel 4.2 with ath10k and Candela firmware 10.1 on a 
Qualcomm Atheros QCA988x

Any ideas on how can I get the link quality information?

Thanks,

Inaki

===============================
monet at sc229:~$ ethtool -i wlan2
driver: ath10k_pci
version: 4.2.0+
firmware-version: 10.1.467-ct-_fH-016-b797ef5
bus-info: 0000:0b:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
monet at sc229:~$
===============================
monet at sc229:~$ cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | 
Missed | WE
  face | tus | link level noise |  nwid  crypt   frag  retry   misc | 
beacon | 22
monet at sc229:~$

===============================
monet at sc229:~$ iwconfig wlan2
wlan2     IEEE 802.11abgn  ESSID:"SC228SC229"
           Mode:Ad-Hoc  Frequency:5.24 GHz  Cell: 8E:CE:DE:4F:86:95
           Tx-Power=17 dBm
           Retry short limit:7   RTS thr:off   Fragment thr:off
           Power Management:on

monet at sc229:~$
===============================
monet at sc229:~$ iw wlan2 link
Joined IBSS 8e:ce:de:4f:86:95 (on wlan2)
     SSID: SC228SC229
     freq: 5240
monet at sc229:~$
===============================



More information about the ath10k mailing list