From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 10 19:42:19 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E521416A41F for ; Wed, 10 Aug 2005 19:42:19 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from mail.slackdot.org (stang.slackdot.org [64.92.162.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E9143D49 for ; Wed, 10 Aug 2005 19:42:19 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from [157.185.81.194] (unknown [158.69.81.194]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.slackdot.org (Postfix) with ESMTP id 6DBB12E051 for ; Wed, 10 Aug 2005 14:45:33 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: References: <469E8187-1E83-449D-8410-8BF52FDC27F1@slackdot.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1A60ADD1-FE0C-4716-AC44-A6498CA9FAAE@slackdot.org> Content-Transfer-Encoding: 7bit From: Deker Date: Wed, 10 Aug 2005 15:42:16 -0400 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.733) Subject: Re: Global txpower in ath X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 19:42:20 -0000 Whoops, I replied to the first message wrong, so I'll bring it back to the list... I don't have access at the moment to a FreeBSD box to point to specifics, but I'd recommend looking at ifconfig sources (/usr/src/ sbin/ifconfig/ifieee80211.c?) to see which ioctl is being called for the txpower argument. Then, follow that down into /usr/src/sys/ net80211/ieee80211_ioctl.c and see what's happening from the net80211 layer to the driver. -d On Aug 10, 2005, at 2:50 PM, Sam Pierson wrote: > I'm not sure, exactly. What happened was, I brought a laptop > far away and then sent some UDP packets to it from an ath > card. It receives all of them correctly. When I turn the global > power down (ifconfig ath0 txpower 1), it cannot receive the > packets. There is a little variation, when I set it to 9, only > some of the packets are received, and when I set it to 19 > or greater, most of the packets are received. > > -Sam > > On 8/10/05, Deker wrote: > >> >> I wasn't aware that the HAL supported variable TX power yet. Has >> there been some update to allow the txpower argument to >> ath_hal_tx_start to be honored? >> >> -d >> >> On Aug 10, 2005, at 1:53 PM, Sam Pierson wrote: >> >> >>> I noticed that when I control the signal strength through >>> ifconfig, I can effectively reduce the signal when I set it >>> as something like: ifconfig ath0 txpower 1. I have read >>> that this input is device driver dependent and I couldn't >>> find anything in the interface that handles txcontrol. Are >>> these values taken in exactly or are they rounded to some >>> less fine-grained control number? Thanks, >>> >>> Sam >>> _______________________________________________ >>> freebsd-hackers@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>> To unsubscribe, send any mail to "freebsd-hackers- >>> unsubscribe@freebsd.org" >>> >>> >> >> >