From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JfIuW-000706-JS for garchives@archives.gentoo.org; Fri, 28 Mar 2008 18:02:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF08CE05FB; Fri, 28 Mar 2008 18:02:38 +0000 (UTC) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by pigeon.gentoo.org (Postfix) with ESMTP id BDEC0E05FB for ; Fri, 28 Mar 2008 18:02:38 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 8A447DC3E0; Fri, 28 Mar 2008 14:02:38 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 28 Mar 2008 14:02:38 -0400 X-Sasl-enc: 7u+QBF9V+z0EjOElK6MuQYxkqjlu2JcWTI7idht10Vrz 1206727357 Received: from [192.168.2.2] (dslb-088-072-136-113.pools.arcor-ip.net [88.72.136.113]) by mail.messagingengine.com (Postfix) with ESMTPSA id 8AB571F403 for ; Fri, 28 Mar 2008 14:02:37 -0400 (EDT) Subject: Re: [gentoo-user] Wireless: Limit rate to strengthen connection? From: Florian Philipp To: gentoo-user@lists.gentoo.org In-Reply-To: <1206664947.6355.16.camel@localhost> References: <49bf44f10803261353l2b3b6607j48e127322ec8dd95@mail.gmail.com> <200803261714.18899.mcbrides9@comcast.net> <49bf44f10803261421k67889561t9a09b27e94d0ca8c@mail.gmail.com> <200803261802.07368.mcbrides9@comcast.net> <49bf44f10803261944hb0acbd9q9eff31ef150f97cd@mail.gmail.com> <49bf44f10803261952u517d87ecv4052dfa8175df3dd@mail.gmail.com> <1206664947.6355.16.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0F7qkKKDI1g/dAx3GPNv" Date: Fri, 28 Mar 2008 19:02:10 +0100 Message-Id: <1206727330.30987.119.camel@NOTE_GENTOO64.PHHEIMNETZ> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-Archives-Salt: 5e337dd8-9a7f-4566-a0c0-7a75d80fb728 X-Archives-Hash: d5c035f9bb045ae4532a76d890493ab6 --=-0F7qkKKDI1g/dAx3GPNv Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-03-27 at 20:42 -0400, Richard Marzan wrote: > On Wed, 2008-03-26 at 19:52 -0700, Grant wrote: > > > > > > > I'm trying to strengthen a wireless connection that spans a= bout 150 > > > > > > > feet and has to go through about 5 walls. I bought two of= these: > > > > > > > > > > > > > > http://www.newegg.com/Product/Product.aspx?Item=3DN82E1683= 3164110 > > > > > > > > > > > > > > for either end of the connection, but I'm having trouble m= aking it > > > > > > > work well. I've noticed the connection will be perfect fo= r a short > > > > > > > time, but then disappear. When watching iwconfig during t= his process, > > > > > > > it looks like the connection is good when on a low rate, b= ut when it > > > > > > > goes to 54 Mbps it falls apart. > > > > > > > > > > > > > > Should limiting the rate solve this problem? If so, how c= an I do > > > > > > > that? I'm using hostapd on the AP and wpa_supplicant on t= he client. > > > > > > > > > > > > > > - Grant > > > > > > > > > > > > Grant, > > > > > > > > > > > > Yes, lowering the rate to a "slower" speed will help greatly= . The lower > > > > > > rates use less compression and modulation... less complex wav= e forms > > > > > > better connects over long hauls. > > > > > > > > > > > > The antennas look very good, but what's driving them? I use = and whole > > > > > > heartedly endorse SENAO products and have had very good luck= with these > > > > > > models: ECB-3220 (400 mw) or 2611CB3 PLUS (200 mw) at: > > > > > > http://www.wlansolution.com. Either unit with the high gain = antennas you > > > > > > have, will penetrate what you stated and probably go pretty= high on the > > > > > > speed scale doing it too. > > > > > > > > > > I'm using a Netgear PCI adapter on the AP and an Edimax USB ada= pter on > > > > > the client. Do you know how I can limit the rate? Should it b= e done > > > > > on the Gentoo AP or the client? > > > > > > > > > > - Grant > > > > > > > > I use wireless-tools from portage. In it is iwconfig. A simple ma= n iwconfig > > > > will show you what you need. Other thing you could do is configur= e the > > > > Wireless AP for a fixed rate... works for me. > > > > > > I found this: > > > > > > rate_wlan0=3D( "5.5M" ) > > > > > > which isn't documented in net.wireless, but it doesn't seem to have > > > any affect. I've tried it on the router and the client which uses > > > wpa_supplicant. I still see the rate on the client fluctuate all th= e > > > way up to 54 Mb/s in the output from iwconfig. The router's rate is > > > always reported as 0 kb/s. > > > > > > - Grant > >=20 > > It appears 'iwconfig wlan0 rate 11M' works (at least as far as the > > output from iwconfig is concerned) but how can I set /etc/conf.d/net > > to always use this rate? > >=20 > > - Grant >=20 > The best way I found to do this is to just write your own script and run > it at the default runlevel. write a script called wireless-up save it in > your /root directory. Then in /etc/conf.d/local.start add the script > name to the list: /root/wireless-up. Make sure the script is executable > with chmod 666 /root/wireless-up. Here is what mine looks like. I laugh > when I read this thing that I call a script. I'll be upgrading this in > the future but for now maybe someone has a better idea and/or script. >=20 > #!/bin/bash > DATE=3D`date +%m_%d_%Y` > ifconfig wlan0 up || "echo wlan up failed" > iwconfig wlan0 essid ACCESSPOINTNAME || "echo setting essid failed" > iwconfig wlan0 mode Managed || echo "setting mode to managed failed" > iwconfig wlan0 key restricted YOURKEYHERE || echo "key failed > verification" > dhclient wlan0 || echo "wlan0 failed to receive dhcp request response" > # if [ $DATE -ne `date +%m_%d_%Y -r /tmp/.wireless.* > rm /tmp/.wireless.*=20 > iwconfig >> /tmp/.wireless.$DATE > exit 0 >=20 >=20 >=20 For custom scrips, you can add a preup, failup or postup-function to /etc/conf.d/net, there should be examples in the file. Something like pastup() { if [[ ${IFACE} =3D "wlan0" ]]; then iwconfig [...] fi return 0 } should work. --=-0F7qkKKDI1g/dAx3GPNv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBH7TKiqs4uOUlOuU8RAuKGAJ9SangvHc/L/KVFNcah1b5F1np1fgCeJ06m WmBYqdQ8/dN/GyxOXq8AFM0= =RUBc -----END PGP SIGNATURE----- --=-0F7qkKKDI1g/dAx3GPNv-- -- gentoo-user@lists.gentoo.org mailing list