From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 1 21:16:48 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 E280716A4CE for ; Tue, 1 Feb 2005 21:16:48 +0000 (GMT) Received: from smtp.nlink.com.br (smtp.nlink.com.br [201.12.59.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 3FBCB43D39 for ; Tue, 1 Feb 2005 21:16:46 +0000 (GMT) (envelope-from paulo@nlink.com.br) Received: (qmail 19878 invoked from network); 1 Feb 2005 21:16:43 -0000 Received: from unknown (HELO ?201.12.59.126?) (paulo@intra.nlink.com.br@201.12.59.126) by smtp.nlink.com.br with SMTP; 1 Feb 2005 21:16:43 -0000 Message-ID: <41FFF1B6.6070809@nlink.com.br> Date: Tue, 01 Feb 2005 18:16:38 -0300 From: Paulo Fragoso User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041209 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Tue, 01 Feb 2005 21:16:49 -0000 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"? Paulo.