From owner-freebsd-current@FreeBSD.ORG Tue Nov 11 14:52:58 2003 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 4ABC616A4CF for ; Tue, 11 Nov 2003 14:52:58 -0800 (PST) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61DDF43FEC for ; Tue, 11 Nov 2003 14:52:57 -0800 (PST) (envelope-from sam@errno.com) Received: from 66.127.85.91 ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.9) with ESMTP id hABMql0x023352 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 11 Nov 2003 14:52:56 -0800 (PST) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: Johann Hugo , current@freebsd.org Date: Tue, 11 Nov 2003 14:54:53 -0800 User-Agent: KMail/1.5.3 References: <344312645.1063725379@melange.errno.com> <200311112352.02252.jhugo@icomtek.csir.co.za> In-Reply-To: <200311112352.02252.jhugo@icomtek.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311111454.53516.sam@errno.com> Subject: Re: atheros (ath) driver - media option 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: Tue, 11 Nov 2003 22:52:58 -0000 On Tuesday 11 November 2003 01:52 pm, Johann Hugo wrote: > Hi > > I've just started playing with some D-link DWL-AG520 PCI adapters with the > Atheros 5212 chipset. > > The one adapter is configured in hostap mode, and the other one as a > client. When I set the media option to a lower speed that the maximum, then > it only works for the adapter in client mode, but it does not seem to work > for the adapter that is in hostap mode. I've tried it on 11a, 11b and 11g > at all the supported rates, but the tx speed always defaults to the maximum > for the selected mode. > > I'm using -current from September 07th. > Something more recent might be a good idea. > e.g. > > > ifconfig ath0 media DS/1Mbps mode 11b mediaopt hostap ssid ath101 channel > > 11 > > > >wicontrol ath0 > > NIC serial number: [ ] > Station name: [ atheros.icomtek.csir.co.za ] > SSID for IBSS creation: [ ath101 ] > Current netname (SSID): [ ath101 ] > Desired netname (SSID): [ ath101 ] > Current BSSID: [ 00:05:5d:95:f0:04 ] > Channel list: [ ffe ] > IBSS channel: [ 11 ] > Current channel: [ 11 ] > Comms quality/signal/noise: [ 0 8 0 ] > Promiscuous mode: [ Off ] > Intersil-Prism2 based card: [ 1 ] > Port type (1=BSS, 3=ad-hoc): [ 6 ] > MAC address: [ 00:05:5d:95:f0:04 ] > TX rate (selection): [ 1 ] > TX rate (actual speed): [ 11 ] <---------------------- > RTS/CTS handshake threshold: [ 2312 ] > Create IBSS: [ Off ] > Access point density: [ 1 ] > Power Mgmt (1=on, 0=off): [ 0 ] > Max sleep time: [ 100 ] > WEP encryption: [ Off ] > TX encryption key: [ 1 ] > Encryption keys: [ ][ ][ ][ ] > > Is this correct, or should the tx rate (actual speed) be the same as the > media setting ? Not sure what you're trying to accomplish by setting the media when operating in hostap mode. It should be ignored, but I'm not sure exactly what will happen. Locking the tx rate on the client side makes more sense and should be honored correctly. Sam