From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 11:32:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE7BE1065670; Tue, 9 Aug 2011 11:32:54 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0FA988FC16; Tue, 9 Aug 2011 11:32:53 +0000 (UTC) Received: by ewy1 with SMTP id 1so1266172ewy.13 for ; Tue, 09 Aug 2011 04:32:53 -0700 (PDT) Received: by 10.213.13.19 with SMTP id z19mr1941609ebz.107.1312889572795; Tue, 09 Aug 2011 04:32:52 -0700 (PDT) Received: from jessie.localnet (p5B2EC9BC.dip0.t-ipconnect.de [91.46.201.188]) by mx.google.com with ESMTPS id z3sm2676810eem.44.2011.08.09.04.32.51 (version=SSLv3 cipher=OTHER); Tue, 09 Aug 2011 04:32:51 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Lev Serebryakov Date: Tue, 9 Aug 2011 13:32:15 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; ) References: <1151152206.20110808220720@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> In-Reply-To: <281311475.20110809142033@serebryakov.spb.ru> X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201108091332.16269.bschmidt@freebsd.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@freebsd.org List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2011 11:32:54 -0000 On Tuesday, August 09, 2011 12:20:33 Lev Serebryakov wrote: > Hello, Adrian. > You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 14:1= 4:19: >=20 > > txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) > Bernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower > 30" on iwn(4) means 15dBm physically. Err.. let me explain that in more detail. The ifconfig txpower command gets its argument in 0.5 dBm steps. That means if you want to set 15dBm you have to use 30, as 30 * 0.5 =3D 15. This is because someone might want to set eg 7.5 dBm but we still want use an integer to store that value. iwn(4) has a "limit" of 15 dBm because it internally assumes that the TX power always relates to all 3 chains being used (11n feature). Each chain does double the output power, to account for that you have to decrease the value by 2 * numchains. So.. setting it 15 dBm results in 15 + 2 * 3 dBm which is around 100mW. The 30 you are seeing is probably coming somewhere else, I assume it is the regulatory limit allowed by that channel. Try playing with different regdomains/countries. =2D-=20 Bernhard