From owner-freebsd-bugs Wed Feb 28 21:50:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9860D37B71B for ; Wed, 28 Feb 2001 21:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f215o1099147; Wed, 28 Feb 2001 21:50:01 -0800 (PST) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.113 Subject: bin/25470: ancontrol doesn't output TX rate Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25470 >Category: bin >Synopsis: ancontrol doesn't output TX rate >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 28 21:50:01 PST 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message