1 |
On Wed, 2008-03-26 at 19:52 -0700, Grant wrote: |
2 |
> > > > > > I'm trying to strengthen a wireless connection that spans about 150 |
3 |
> > > > > > feet and has to go through about 5 walls. I bought two of these: |
4 |
> > > > > > |
5 |
> > > > > > http://www.newegg.com/Product/Product.aspx?Item=N82E16833164110 |
6 |
> > > > > > |
7 |
> > > > > > for either end of the connection, but I'm having trouble making it |
8 |
> > > > > > work well. I've noticed the connection will be perfect for a short |
9 |
> > > > > > time, but then disappear. When watching iwconfig during this process, |
10 |
> > > > > > it looks like the connection is good when on a low rate, but when it |
11 |
> > > > > > goes to 54 Mbps it falls apart. |
12 |
> > > > > > |
13 |
> > > > > > Should limiting the rate solve this problem? If so, how can I do |
14 |
> > > > > > that? I'm using hostapd on the AP and wpa_supplicant on the client. |
15 |
> > > > > > |
16 |
> > > > > > - Grant |
17 |
> > > > > |
18 |
> > > > > Grant, |
19 |
> > > > > |
20 |
> > > > > Yes, lowering the rate to a "slower" speed will help greatly. The lower |
21 |
> > > > > rates use less compression and modulation... less complex wave forms |
22 |
> > > > > better connects over long hauls. |
23 |
> > > > > |
24 |
> > > > > The antennas look very good, but what's driving them? I use and whole |
25 |
> > > > > heartedly endorse SENAO products and have had very good luck with these |
26 |
> > > > > models: ECB-3220 (400 mw) or 2611CB3 PLUS (200 mw) at: |
27 |
> > > > > http://www.wlansolution.com. Either unit with the high gain antennas you |
28 |
> > > > > have, will penetrate what you stated and probably go pretty high on the |
29 |
> > > > > speed scale doing it too. |
30 |
> > > > |
31 |
> > > > I'm using a Netgear PCI adapter on the AP and an Edimax USB adapter on |
32 |
> > > > the client. Do you know how I can limit the rate? Should it be done |
33 |
> > > > on the Gentoo AP or the client? |
34 |
> > > > |
35 |
> > > > - Grant |
36 |
> > > |
37 |
> > > I use wireless-tools from portage. In it is iwconfig. A simple man iwconfig |
38 |
> > > will show you what you need. Other thing you could do is configure the |
39 |
> > > Wireless AP for a fixed rate... works for me. |
40 |
> > |
41 |
> > I found this: |
42 |
> > |
43 |
> > rate_wlan0=( "5.5M" ) |
44 |
> > |
45 |
> > which isn't documented in net.wireless, but it doesn't seem to have |
46 |
> > any affect. I've tried it on the router and the client which uses |
47 |
> > wpa_supplicant. I still see the rate on the client fluctuate all the |
48 |
> > way up to 54 Mb/s in the output from iwconfig. The router's rate is |
49 |
> > always reported as 0 kb/s. |
50 |
> > |
51 |
> > - Grant |
52 |
> |
53 |
> It appears 'iwconfig wlan0 rate 11M' works (at least as far as the |
54 |
> output from iwconfig is concerned) but how can I set /etc/conf.d/net |
55 |
> to always use this rate? |
56 |
> |
57 |
> - Grant |
58 |
|
59 |
The best way I found to do this is to just write your own script and run |
60 |
it at the default runlevel. write a script called wireless-up save it in |
61 |
your /root directory. Then in /etc/conf.d/local.start add the script |
62 |
name to the list: /root/wireless-up. Make sure the script is executable |
63 |
with chmod 666 /root/wireless-up. Here is what mine looks like. I laugh |
64 |
when I read this thing that I call a script. I'll be upgrading this in |
65 |
the future but for now maybe someone has a better idea and/or script. |
66 |
|
67 |
#!/bin/bash |
68 |
DATE=`date +%m_%d_%Y` |
69 |
ifconfig wlan0 up || "echo wlan up failed" |
70 |
iwconfig wlan0 essid ACCESSPOINTNAME || "echo setting essid failed" |
71 |
iwconfig wlan0 mode Managed || echo "setting mode to managed failed" |
72 |
iwconfig wlan0 key restricted YOURKEYHERE || echo "key failed |
73 |
verification" |
74 |
dhclient wlan0 || echo "wlan0 failed to receive dhcp request response" |
75 |
# if [ $DATE -ne `date +%m_%d_%Y -r /tmp/.wireless.* |
76 |
rm /tmp/.wireless.* |
77 |
iwconfig >> /tmp/.wireless.$DATE |
78 |
exit 0 |
79 |
|
80 |
|
81 |
|
82 |
-- |
83 |
gentoo-user@l.g.o mailing list |