Date: Mon, 17 May 2004 12:54:42 -0400 From: Brian Fundakowski Feldman <green@freebsd.org> To: jamesb@acelere.net Cc: freebsd-current@freebsd.org Subject: Re: hostap TX fix in 5.x [Fwd: Re: wi hostap speed] Message-ID: <200405171654.i4HGsgxX003385@green.homeunix.org> In-Reply-To: Message from "James Bowman" <jamesb@acelere.net> of "Sun, 16 May 2004 21:08:16 MDT." <20040516210816.M45998@acelere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"James Bowman" <jamesb@acelere.net> 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). In that case, I'd try adding this line where the frmhdr is being set up: frmhdr.wi_tx_rate = ni->ni_rates.rs_rates[ni->ni_txrate] * 5; I haven't tested it other than it compiles, but if it seems to work for you I'll of course verify that I can/cannot get those speeds with/without this change, using hostap. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405171654.i4HGsgxX003385>