From owner-freebsd-current@FreeBSD.ORG Tue Mar 17 17:15:30 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01960106566B; Tue, 17 Mar 2009 17:15:30 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id C56158FC0C; Tue, 17 Mar 2009 17:15:29 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2HHFQwK080652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Mar 2009 10:15:27 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49BFDAAE.6000005@freebsd.org> Date: Tue, 17 Mar 2009 10:15:26 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Bruce Simpson References: <20081006072447.d51c76f1.elmofo@uol.com.br> <20081009191519.790298e4@lain> <20081010230643.017d0dbe.elmofo@uol.com.br> <49BF7E99.4030208@incunabulum.net> <49BF884A.907@incunabulum.net> <49BFC621.5030208@freebsd.org> <49BFC672.5020909@incunabulum.net> In-Reply-To: <49BFC672.5020909@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: Thiago Luz Basilio , rpaulo@freebsd.org, current@freebsd.org, Tobias Kirschstein Subject: Re: 802.11b broken in -CURRENT? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Mar 2009 17:15:30 -0000 Bruce Simpson wrote: > Sam Leffler wrote: >> Actually this just promulgates misunderstandings and voodoo that >> others will ape. This is what you need to setup an 11b-only ap on >> the best available channel: >> >> ifconfig wlan create wlandev ath0 wlanmode hostap mode 11b ssid >> OpenWrt up >> >> For the sta side: >> >> ifconfig wlan create wlandev ath0 mode 11b ssid OpenWrt up >> >> If the above does not work please enable debugging with wlandebug and >> file a PR. > > ETOOMUCHCOFFEE :-) > Yup, I found this worked too. Sorry for the winging. In the sta-side case you don't need "mode 11b" if the ap is 11b-only; you only need it if you want to force 11b operation when talking to a b/g ap. This can also be done by locking down the channel spec with "channel 6:b" (works for both sta and ap configs). The mode knob just controls the set of channels placed in the scan list and is mostly useful to constrain operation of multi-band cards and/or to reduce scan time (which can also be done with the chanlist control). There are techniques we could add to make scanning super-fast but they require proper roaming support which isn't feasible w/ the current quality of our drivers. On the ap side there are "pureg" and "puren" knobs for constraining operation as 11g and 11n channel specs are bi-modal (b/g and legacy/11n). Sam