From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 2 12:26:45 2005 Return-Path: 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 E11E516A4CE for ; Wed, 2 Feb 2005 12:26:45 +0000 (GMT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 985C743D45 for ; Wed, 2 Feb 2005 12:26:44 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received-SPF: pass (eva.fit.vutbr.cz: domain of xdivac02@eva.fit.vutbr.cz designates 127.0.0.1 as permitted sender) receiver=eva.fit.vutbr.cz; client_ip=127.0.0.1; envelope-from=xdivac02@eva.fit.vutbr.cz; Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (8.12.11/8.12.11) with ESMTP id j12CQVeM017676 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 2 Feb 2005 13:26:31 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.12.11/8.12.5/Submit) id j12CQVYO017675; Wed, 2 Feb 2005 13:26:31 +0100 (CET) Date: Wed, 2 Feb 2005 13:26:31 +0100 From: Divacky Roman To: Sam Leffler Message-ID: <20050202122631.GA17490@stud.fit.vutbr.cz> References: <41FFF1B6.6070809@nlink.com.br> <4200011E.5080105@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4200011E.5080105@errno.com> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org Subject: Re: TX rate problem in hostap mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 12:26:46 -0000 On Tue, Feb 01, 2005 at 02:22:22PM -0800, Sam Leffler wrote: > Paulo Fragoso wrote: > >Hi, > > > >We are using a Samsung wireless card (PRISM2) with FreeBSD 5.3 in hostap > >mode and client is running FreeBSD 5.3 with Orinoco wireless card, all > >works fine but tx rate at hostap it is all time in 2Mbps. > > > >We found this article for solve this problem with FreeBSD 5.x: > > > >http://excamera.com/cgi-bin/blosxom.cgi > > > >After modify dev/wi/if_wi.c in the hostap: > > > >--- dev/wi/if_wi.c.orig Tue Feb 1 17:15:20 2005 > >+++ dev/wi/if_wi.c Tue Feb 1 17:58:44 2005 > >@@ -958,6 +958,10 @@ > > wi_dump_pkt(&frmhdr, NULL, -1); > > fid = sc->sc_txd[cur].d_fid; > > off = sizeof(frmhdr); > >+ > >+ /* tx_rate problem? */ > >+ frmhdr.wi_tx_rate = 110; > >+ > > error = wi_write_bap(sc, fid, 0, &frmhdr, > >sizeof(frmhdr)) != 0 > > || wi_mwrite_bap(sc, fid, off, m0, > >m0->m_pkthdr.len) != 0; > > m_freem(m0); > > > >now we can get files from hostap faster (5x) than before. > > > >Both cards (hostap and client) was using mediaopt DS/11Mbps. > > > >Is possible ifconfig command change this field when using mediaopt > >"DS/11Mbps"? > > Locking the xmit rate at 11Mb/s (or any rate for that matter) isn't a > great idea though wi should honor a fixed rate. I thought Prism cards > implemented rate control in the firmware for ap mode but perhaps not. > netbsd has xmit rate control support for wi that purportedly does a good > job; you might investigate it. If you come up with changes I'd be > interested in integrating them into -current (which could then be > brought back to -stable). > > Sam I am working on a port of netbsd rssadapt to fbsd.. its almost complete, expect PR within a week (I hope) roman p.s. you can find the patch (this one has known issues) at: hysteria.sk/~neologism/wifi.patch