From owner-freebsd-current@FreeBSD.ORG Mon May 17 04:38:50 2004 Return-Path: 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 4434116A4CE for ; Mon, 17 May 2004 04:38:50 -0700 (PDT) Received: from smtp.tznet.com (smtp.tznet.com [66.170.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 545AF43D48 for ; Mon, 17 May 2004 04:38:49 -0700 (PDT) (envelope-from scottp@tznet.com) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by smtp.tznet.com (8.12.11/8.12.10) with ESMTP id i4HBcjcf099011 for ; Mon, 17 May 2004 06:38:45 -0500 (CDT) Date: Mon, 17 May 2004 06:38:44 -0500 (CDT) From: Scott Pilz To: current@freebsd.org In-Reply-To: <40A85B24.1000300@mikulas.com> Message-ID: <20040517063129.J10292@mail.tznet.com> References: <20040516210816.M45998@acelere.net> <40A85B24.1000300@mikulas.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-T-Net-Virus-Scan: 66.170.64.6: Clean X-Mailman-Approved-At: Mon, 17 May 2004 04:46:33 -0700 Subject: Re: hostap TX fix in 5.x [Fwd: Re: wi hostap speed] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2004 11:38:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Who normally works on the wi driver? "frmhdr.wi_tx_rate = 110" works great (thanks James) but I am unable to find the syntax/variable where the current TX-RATE is stored. A simple if tx-rate=11 { frmhdr.wi_tx_rate = 110; } would keep auto-fallback working. Currently the system works great (I seen as far as 600KB/sec last night during testing) but when the signal drops and the driver tries for 5.5 or 2, packets are lost. I recall in earlier releases of 5.x there was a 'DataRate' display on 'wicontrol -l', however in CURRENT this seems to be missing. Scott On Mon, 17 May 2004, Jiri Mikulas wrote: > Thanks! > for your time ;) > Jiri > > James Bowman wrote: > > >I spent a few hours tinkering (tampering?) with this driver, and have not > >exactly a fix, but a clear indication of what the problem is. > > > >Verified (using the quick hack below): download speed geoes up from 170 > >kbytes/sec to 470 kbytes/sec, which is what I'd expect on an 11Mbps network. > > > >If anyone's interested, here it is: > > > >The Intersil manual on page 4-28 says that transmit packets need to have their > >TxRate field filled in with 10,20,55 or 110, depending on the transmission speed. > > > >The 4.X driver sets the field tx_frame.wi_tx_rate in function > >wihap_check_tx(), called from wi_start(). > > > >The 5.X driver calls this field frmhdr.wi_tx_rate, but leaves it zero. > >If you want to run at 11MBps, add a line > > frmhdr.wi_tx_rate = 110; > >in wi_start(), just before the call to wi_write_bap(). > > > >(Obviously, this is just a cheesy hack. The real code would have to find the > >actual tx rate. I just want to point out where the problem lies). > >_______________________________________________ > >freebsd-current@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-current > >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAqKRF2REUg6gjWxgRAi0WAKCgT5XHRwG9SBv98ZWo30He0jJARwCeP/TH eUBACKIWA6becWNCP6Ka5Pw= =u/SC -----END PGP SIGNATURE-----