From owner-freebsd-net@FreeBSD.ORG Wed Sep 2 15:16:57 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BBB01065676 for ; Wed, 2 Sep 2009 15:16:57 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 567EB8FC21 for ; Wed, 2 Sep 2009 15:16:57 +0000 (UTC) Received: from ice.local ([10.0.0.115]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n82FGuMY026393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Sep 2009 08:16:56 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <4A9E8C68.3060300@errno.com> Date: Wed, 02 Sep 2009 08:16:56 -0700 From: Sam Leffler User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Sin References: <4790A7EF670C4698ADB76933788A218F@dts> In-Reply-To: <4790A7EF670C4698ADB76933788A218F@dts> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-net@freebsd.org Subject: Re: toggle short / long preamble with hostapd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 15:16:57 -0000 Sin wrote: > Hello, > > > Does anyone know how to enable short preamble in 7-STABLE ? > > I'm using ath with hostapd in ap mode. It seems there was an option in hostapd.conf, but this is not in FreeBSD's /usr/share/examples/hostapd/hostapd.conf > > > The missing hostapd.conf option was found in google: > > # Short Preamble > # This parameter can be used to enable optional use of short preamble for > # frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance. > # This applies only to IEEE 802.11b-compatible networks and this should only be > # enabled if the local hardware supports use of short preamble. If any of the > # associated STAs do not support short preamble, use of short preamble will be > # disabled (and enabled when such STAs disassociate) dynamically. > # 0 = do not allow use of short preamble (default) > # 1 = allow use of short preamble > #preamble=1 > > > my version of hostapd is " v0.5.10 " - I was not able to set this option On freebsd hostapd is _purely_ an authenticator; to configure 802.11 parameters you use ifconfig. > > > hostapd.conf: > > interface=ath0 > #preamble=1 > debug=1 > ctrl_interface=/var/run/hostapd > ctrl_interface_group=wheel > ssid=private > wpa=1 > wpa_passphrase=apassword > wpa_key_mgmt=WPA-PSK > wpa_pairwise=TKIP > > > > rc.conf: > > hostapd_enable="YES" > ifconfig_ath0="mode 11g hidessid mediaopt hostap" > > > > ifconfig ath0: > > ath0: flags=8943 metric 0 mtu 1500 > ether 00:17:9a:4c:e7:83 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > ssid private channel 1 (2412 Mhz 11g) bssid 00:17:9a:4c:e7:83 > authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit > txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 > roam:rssi11g 7 roam:rate11g 5 protmode CTS burst hidessid dtimperiod 1 In ap mode you should not manually configure preamble; it should be selected according to the associated stations. What are you trying to accomplish? Sam