On Saturday 06 March 2010 08:35:24 Xingang Zhang wrote:
> Hello,
> 
> I used to check the link quality with "iwconfig" and it outputs something
> like:
> 
> wlan0     IEEE 802.11abg  ESSID:"xxxx"
>           Mode:Managed  Frequency:2.462 GHz  Access Point:
> 00:18:3A:B9:54:02 Bit Rate=54 Mb/s   Tx-Power=14 dBm
>           Retry  long limit:7   RTS thr:off   Fragment thr:off
>           Power Management:off
>           Link Quality=70/70  Signal level=-29 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> However, when I check the wlan0 status with ath5k in IBSS mode, it only
> outputs:
> 
>  wlan0     IEEE 802.11abg  ESSID:"ath5k"
>           Mode:Ad-Hoc  Frequency:5.2 GHz  Cell: A5:A5:A5:A5:A5:A5
>           Tx-Power=1 dBm
>           Retry  long limit:7   RTS thr:off   Fragment thr:off
>           Power Management:off
> 
> Any idea how I can obtain the stats like link quality and Rx invalid
> nwid, etc. like Madwifi
> driver?

a general link quality statement does not make sense in IBSS mode because you 
have different link qualities and bit rates for different stations. therefore 
the above iwconfig output is not very informative... some would say plain 
wrong. you can use iw to get some per station statistics. e.g.:

r...@rk1:~# iw dev wlan0 station dump 
Station 00:0e:8e:25:92:7f (on wlan0)
        inactive time:  100 ms
        rx bytes:       73986
        rx packets:     1254
        tx bytes:       0
        tx packets:     0
        signal:         -33 dBm
        tx bitrate:     6.0 MBit/s

also you can see some statistics in debugfs (if you enabled it in menuconfig):
/sys/kernel/debug/ieee80211/phy0/statistics/

i don't know where "Rx invalid nwid", etc. went unfortunately...

bruno
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to