From owner-freebsd-current@FreeBSD.ORG Wed Aug 24 15:07:49 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 486C816A41F for ; Wed, 24 Aug 2005 15:07:49 +0000 (GMT) (envelope-from dandee@hellteam.net) Received: from pipa.profix.cz (server1.pcsvet.net [82.208.25.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BEC743D45 for ; Wed, 24 Aug 2005 15:07:48 +0000 (GMT) (envelope-from dandee@hellteam.net) Received: from localhost (localhost [127.0.0.1]) by pipa.profix.cz (Postfix) with ESMTP id A3E124E706; Wed, 24 Aug 2005 17:08:00 +0200 (CEST) Received: from pipa.profix.cz ([127.0.0.1]) by localhost (pipa [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26906-06; Wed, 24 Aug 2005 17:08:00 +0200 (CEST) Received: from gandalf (105.121.95.80.ip.b26.cz [80.95.121.105]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pipa.profix.cz (Postfix) with ESMTP id E91EE4E704; Wed, 24 Aug 2005 17:07:59 +0200 (CEST) From: =?iso-8859-2?Q?Daniel_Dvo=F8=E1k?= To: "'Fredrik Lindberg'" , Date: Wed, 24 Aug 2005 17:07:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <43089AB6.1000602@shapeshifter.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcWmY1Ikfv8XG78uSlK7IceM00seUgCWKnow Message-Id: <20050824150759.E91EE4E704@pipa.profix.cz> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at profix.cz Cc: freebsd-current@freebsd.org Subject: RE: ATHCTRL for ATH X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dandee@volny.cz List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 15:07:49 -0000 Hi Fredrik and all, thanks for your small patch, I will try to use it as fast as I could, because now a days I don=B4t have atheros card, but I know how has = between my friends. Of course I appreciate your work in patch and time you have to spend on = it, but in respect let me one question. Do you think that it would be only my problem, if one use wireless = device with FreeBSD ? I think it is problem all users who use atheros cards in 5 GHz band = today and another users who will use FreeBSD in theirs wireless devices like = AP, bridges, AP client and so on. Dan -----Original Message----- From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Fredrik Lindberg Sent: Sunday, August 21, 2005 5:16 PM To: dandee@volny.cz Cc: freebsd-current@freebsd.org Subject: Re: ATHCTRL for ATH Daniel Dvo=F8=E1k wrote: > No, ifconfig doesn=B4t support. >=20 > You have to do all manually: >=20 > roztyly# sysctl dev.ath.0.slottime=3D9 > roztyly# sysctl dev.ath.0.ctstimeout=3D180 roztyly# sysctl=20 > dev.ath.0.acktimeout=3D180 >=20 > Unlike Linux: >=20 > lsd:/# uname -a > Linux lsd 2.6.11x2 #1 Tue Jul 12 00:37:52 CEST 2005 i686 GNU/Linux=20 > lsd:/# athctrl -i aht0 -d 1000 Setting distance on interface aht0 to=20 > 1000 meters lsd:/# athctrl -i aht1 -d 2500 Setting distance on=20 > interface aht1 to 2500 meters >=20 > lsd:/# cat /proc/sys/dev/ath0/acktimeout > 29 > lsd:/# cat /proc/sys/dev/ath0/ctstimeout > 29 > lsd:/# cat /proc/sys/dev/ath0/slottime > 13 >=20 > lsd:/# cat /proc/sys/dev/ath1/slottime > 18 > lsd:/# cat /proc/sys/dev/ath1/acktimeout > 39 > lsd:/# cat /proc/sys/dev/ath1/ctstimeout > 39 >=20 > Dan Ok, I hacked up a small patch. It's a bit crude since the only interface = I could find to these settings were through sysctl(3). Put ifath.c in src/sbin/ifconfig and patch src/sbin/ifconfig/Makefile = with the attached patch and re-compile ifconfig. > ifconfig ath0 distance 1000 > sysctl dev.ath.0.slottime dev.ath.0.acktimeout dev.ath.0.ctstimeout dev.ath.0.slottime: 13 dev.ath.0.acktimeout: 29 dev.ath.0.ctstimeout: 29 > ifconfig ath0 distance 2500 > sysctl dev.ath.0.slottime dev.ath.0.acktimeout dev.ath.0.ctstimeout dev.ath.0.slottime: 18 dev.ath.0.acktimeout: 39 dev.ath.0.ctstimeout: 39 Fredrik Lindberg > -----Original Message----- > From: owner-freebsd-current@freebsd.org=20 > [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Fredrik=20 > Lindberg > Sent: Sunday, August 21, 2005 2:13 PM > To: dandee@volny.cz > Cc: freebsd-current@freebsd.org > Subject: Re: ATHCTRL for ATH >=20 > Daniel Dvo=F8=E1k wrote: >=20 >>I am sorry but I don=B4t understand about modular ifconfig and about = "to >=20 > phase >=20 >>out those sorts of programs out". But I am agree about that would be a = >>question for Sam. >> >>So we have to wait now. >> >=20 >=20 > It's quite simple, there is (and have been) numerous programs to=20 > configure different types of network interfaces (wicontrol, gifconfig, = > raycontrol, etc...). > The goal is to phase out all these small programs and allow ifconfig=20 > to do their job instead. > A modular ifconfig allows this without turning the ifconfig code into=20 > a bloated, un-maintainable pile of junk. >=20 > In essence, if those "ack+cts" settings you ask for were to be=20 > comitted into the source tree, I guess they would be added to > ifconfig(8) and not as a separate tool. > (Maybe ifconfig already supports this...) >=20 > Fredrik Lindberg >=20 >=20 >>-----Original Message----- >>From: owner-freebsd-current@freebsd.org=20 >>[mailto:owner-freebsd-current@freebsd.org] On Behalf Of Brooks Davis >>Sent: Sunday, August 21, 2005 3:51 AM >>To: dandee@volny.cz >>Cc: freebsd-current@freebsd.org >>Subject: Re: ATHCTRL for ATH >> >>On Sun, Aug 21, 2005 at 03:32:15AM +0200, Daniel Dvorak wrote: >> >> >>>Hi all, >>> >>>I have one question for you. My friend use Linux Debian and he use=20 >>>atheros cards with madwifi drivers. Sam work together with others=20 >>>developers and I found out that he committed interesting tool for = linux users. >>> >>>This tool is athctrl, which you know "athctrl program that sets the >> >>ack+cts >> >> >>>timeouts based on the distance between two stations". And I think=20 >>>that >> >>this >> >> >>>feature is useful not only for linux users but of course for users of >> >>others >> >> >>>os like FreeBSD etc.=20 >>> >>>So, I do not know why the tool is not in main tree fbsd, maybe there=20 >>>is reason for this and I do not know. Which it is my mistake, so if=20 >>>it is >> >>true, >> >> >>>I am sorry. Of course, I could not imagine how much work somebody has = >>>to >> >>do >> >> >>>for this, but I would like to only ask if possible now before final >> >>release >> >> >>>6.0 or in the future. >>> >>>Does somebody think somebody could commit this tool for FreeBSD users = ? >> >> >>It's unlikely athctrl will be commited because we're attempting to=20 >>phase those sorts of programs out in favor of a modular ifconfig. =20 >>It's not clear to me if we the support or not at this point. That=20 >>would be a question for Sam, but he's on vacation at the moment. >> >>-- Brooks >> >=20 >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >=20