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 #1859 (new defect)

Opened 11 years ago

error in command-line parsing in ./tools/athstats.c

Reported by: zefir@kurtisi.de Assigned to:
Priority: minor Milestone:
Component: madwifi: tools Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending:

Description

Hi,

am I really the first moron to run 'athstats -i' without giving the interface?

In ./trunk/tools/athstats.c:244

244 	        if (argc > 1 && strcmp(argv[1], "-i") == 0) {
245 	                if (argc < 2) {
246 	                        fprintf(stderr, "%s: missing interface name for -i\n",
247 	                                argv[0]);
248 	                        exit(-1);
249 	                }
250 	                ifname = argv[2];
251 	                argc -= 2, argv += 2;
252 	        }

the second check should obviously be 'if(argc<3)'.

Regards, Zefir