Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #2226 (new defect)

Opened 13 years ago

Last modified 13 years ago

athstats: incorrect handling of options

Reported by: albero@freemail.hu Assigned to:
Priority: minor Milestone:
Component: madwifi: tools Version: v0.9.4
Keywords: athstats options Cc:
Patch is attached: 0 Pending: 0

Description

Hello,

Apart from the documented flags, almost all other options are treated as valid instead of giving an error on help on usage. If I don't specify an interface after -i, I get a segfault.

Distribution: Frugalware Linux - Madwifi version: 0.9.4

See the following examples.

Thanks LGee


gabor@carbo:~$ athstats
178 tx management frames
88 long on-chip tx retries
140 tx frames with no ack marked
15 tx frames with an alternate rate
533 rx failed due to bad CRC
118826 PHY errors
    30655 OFDM timing
    88171 CCK timing
93 periodic calibrations
rssi of last ack: 40
rssi of last rcv: 32
1675 switched default/rx antenna
Antenna profile:
[1] tx     2948 rx     9761
[2] tx     1586 rx     6626
gabor@carbo:~$ athstats -
   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
   17862     4689      15       0      89      0    549      0  129471   39   0M
      10        0       0       0       0      0      0      0      71   38   0M
      10        0       0       0       0      0      0      0      59   35   0M
^C
gabor@carbo:~$ athstats --what-do-you-mean
   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
   18083     4701      15       0      89      0    549      0  130973   37   0M
      10        0       0       0       0      0      0      0      81   36   0M
      10        0       0       0       0      0      0      0      55   36   0M
^C
gabor@carbo:~$ athstats --help
   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
   18286     4710      15       0      89      0    557      0  132289   35   0M
      10        0       0       0       0      0      0      0      49   34   0M
      10        0       0       0       0      0      0      0      60   34   0M
^C
gabor@carbo:~$ athstats -i ath1
athstats: ath1: No such device
gabor@carbo:~$ athstats -i
Segmentation fault
gabor@carbo:~$

Change History

01/18/09 20:13:54 changed by anonymous

See also #1859

02/26/09 17:44:46 changed by anonymous

athstats -i wifiX is correct, not -i ath or sth. athstats -i [wlandev] [interval]