From owner-freebsd-net@FreeBSD.ORG Wed Sep 2 15:34:31 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 4E8191065676 for ; Wed, 2 Sep 2009 15:34:31 +0000 (UTC) (envelope-from sinister@gmail.com) Received: from mail-yx0-f202.google.com (mail-yx0-f202.google.com [209.85.210.202]) by mx1.freebsd.org (Postfix) with ESMTP id F35268FC17 for ; Wed, 2 Sep 2009 15:34:29 +0000 (UTC) Received: by yxe40 with SMTP id 40so1304464yxe.13 for ; Wed, 02 Sep 2009 08:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc :references:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=8rMPhDHmMd6En8yEIKDAC8KXLLfBE/z+7YaNUTtsOGU=; b=UczebDkQFz0dCOHSQ5tCPKTrnO9afWcIhx9d65S36X3wHnSMhVPJURBfueoq/uuUcN RKsskUQjVn/egbkT5sftMz9Xxq/pvPj6AR+r2jt5PExR1EAGoL2r2D8NpdMpK7YV9x0s RjiEuYZeEY1+wt+nKy70TKdnB+zM24zx48C5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=IrYUjeZaVR4bVoKDwuoL9weGHtvVhBpke3+2iXWWpnVdOf7Fd2ZlWPtuUnNgUYD3UR fy/Y+dW8PvUx6xtiIhmfpKyWAn7cnRPJRtGR3xukvFjLltq5YxcCjVd6GiOwwPvgZaLn Q56H2FqmH3HE7BmVj8ljfgmgjiLA16BMCqHcY= Received: by 10.90.149.6 with SMTP id w6mr6196289agd.90.1251905669191; Wed, 02 Sep 2009 08:34:29 -0700 (PDT) Received: from dts (markofthebeast.ca [216.8.139.47]) by mx.google.com with ESMTPS id 39sm68181aga.21.2009.09.02.08.34.27 (version=SSLv3 cipher=RC4-MD5); Wed, 02 Sep 2009 08:34:28 -0700 (PDT) Message-ID: From: Sin To: "Sam Leffler" , "Sin" References: <4790A7EF670C4698ADB76933788A218F@dts> <4A9E8C68.3060300@errno.com> Date: Wed, 2 Sep 2009 11:34:30 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 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:34:31 -0000 Sam, Basically I have a dlink WBR-1310 thats in bridge mode connected to my current BSD router ( 6.3) I'm trying to replace this 1310 product with FreeBSD 7. The last problem i'm dealing with is poor preformance. When I use my current BSD 7 setup it works, but ping times from client to another or even to the access point are bad. 100 - 400ms round trip. I had this exact problem with the 1310. The fix was to change from long to short preable. Been fine ever since. I used three computers to prove this before emailing. Just swapping the 1310 for the 7-STABLE corrects this. The 1310 uses g only mode with short preamble getting less then 5ms ping times to each client and host and vice-versa I realize that hostapd.conf is just for the encryption. However ifconfig and ath man pages do not talk about this setting. ----- Original Message ----- From: "Sam Leffler" To: "Sin" Cc: Sent: Wednesday, September 02, 2009 11:16 AM Subject: Re: toggle short / long preamble with hostapd > 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 >