From brooks@minya.sea.one-eyed-alien.net  Wed Feb 28 21:43:51 2001
Return-Path: <brooks@minya.sea.one-eyed-alien.net>
Received: from minya.sea.one-eyed-alien.net (minya.sea.one-eyed-alien.net [216.39.168.226])
	by hub.freebsd.org (Postfix) with ESMTP id C220D37B71A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Feb 2001 21:43:50 -0800 (PST)
	(envelope-from brooks@minya.sea.one-eyed-alien.net)
Received: by minya.sea.one-eyed-alien.net (Postfix, from userid 1001)
	id 6748A24D11; Wed, 28 Feb 2001 21:35:42 -0800 (PST)
Message-Id: <20010301053542.6748A24D11@minya.sea.one-eyed-alien.net>
Date: Wed, 28 Feb 2001 21:35:42 -0800 (PST)
From: brooks@minya.sea.one-eyed-alien.net
Reply-To: brooks@minya.sea.one-eyed-alien.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ancontrol doesn't output TX rate
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25470
>Category:       bin
>Synopsis:       ancontrol doesn't output TX rate
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 28 21:50:01 PST 2001
>Closed-Date:    Mon Jun 25 17:02:26 PDT 2001
>Last-Modified:  Mon Jun 25 17:02:54 PDT 2001
>Originator:     Brooks Davis
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Aerospace Corporation
>Environment:
System: FreeBSD minya.sea.one-eyed-alien.net 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Mon Feb 26 20:12:34 PST 2001 root@minya.sea.one-eyed-alien.net:/usr/obj/usr/src/sys/MINYA i386

>Description:
Unlike wicontrol, ancontrol provides no way to find out the rate at
which the card is transmitting.

>How-To-Repeat:
Use ancontrol, fail to find the TX rate.

>Fix:
Apply this patch or similar:

Index: ancontrol.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/ancontrol/ancontrol.c,v
retrieving revision 1.8
diff -u -r1.8 ancontrol.c
--- ancontrol.c	2000/12/31 01:51:22	1.8
+++ ancontrol.c	2001/03/01 03:48:33
@@ -281,6 +281,8 @@
 	an_printhex((char *)&sts->an_errcode, 1);
 	printf("\nSignal quality:\t\t");
 	an_printhex((char *)&sts->an_cur_signal_quality, 1);
+	printf("\nCurrent TX rate:\t[ %d%s ]", sts->an_current_tx_rate/2,
+		sts->an_current_tx_rate%2 ? ".5" : "");
 	printf("\nCurrent SSID:\t\t");
 	an_printstr((char *)&sts->an_ssid, sts->an_ssidlen);
 	printf("\nCurrent AP name:\t");
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Thu Jun 21 13:33:15 PDT 2001 
Responsible-Changed-Why:  
Handle my own PR. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25470 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Mon Jun 25 17:02:26 PDT 2001 
State-Changed-Why:  
Committed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25470 
>Unformatted:
