<div id="RTEContent"><br><br><b><i>Rick Stevens <rstevens@vitalstream.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Thu, 2005-11-17 at 14:23 -0500, James Pifer wrote:<br>> > Try one of these versions:<br>> > <br>> > iwconfig wlan0 mode ad-hoc essid <ESSID> key restricted <KEY-STRING><br>> > iwconfig wlan0 mode managed essid <ESSID> key restricted <KEY-STRING><br>> > <br>> > My guess is that ad-hoc will work.  Without the mode spec, sometimes<br>> > iwconfig won't set the frequency or allow the essid.  Weird, but true.<br>> > You might also try removing the "restricted" keyword--your network may<br>> > not be in that mode and using "restricted" limits you to truly<br>> > restricted networks.<br>> > <br>> > And yes, I have it working on several WEP networks using D-Link access<br>> > points and routers and!
 using
 ASCII key strings.  Note that they're<br>> > ad-hoc networks, but it should work on managed as well.<br>> > <br>> > The networks are old D-Link DI-614+ routers with DI-900AP access points.<br>> > ndiswrapper is managing a Broadcom wireless chip in my laptop and I use<br>> > an iwconfig of:<br>> > <br>> >  iwconfig wlan0 mode ad-hoc essid xxxxxx key s:blah-blah<br>> > <br>> > Works peachy!<br>> > <br>> <br>> Rick,<br>> <br>> I tried Ad-hoc and indeed it does load, but now mine loads like its own<br>> AP, not connecting to DLINK AP. It's sets itself up as its own cell:<br>> <br>> wlan0     IEEE 802.11g  ESSID:"my-essid"  Nickname:"me.mydomain.com"<br>>           Mode:Ad-Hoc  Frequency:2.437 GHz  Cell: D6:D5:6D:44:61:93<br>>           Bit Rate=54 Mb/s   Tx-Power:25 dBm<br>>           RTS thr=2347 B   Fragment thr=2346 B<br>>           Encryption key:1234-1234-1234-1234-1234-1234-12  
 Security<br>> mode:restricted<br>>           Power Management:off<br>>           Link Quality:100/100  Signal level:-57 dBm  Noise level:-256<br>> dBm<br>>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br>>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0<br>> <br>> If I do an iwlist scan I see my DLINK AP as one cell and my laptop as<br>> another cell. <br><br>Then try "managed" instead of "ad-hoc" and see what happens.  Remember,<br>you have to set the ESSID to the same as your DLink stuff.<br><br>> Also, in your example you said:<br>> iwconfig wlan0 mode ad-hoc essid xxxxxx key s:blah-blah<br>> <br>> What is the "s:" after key, and you don't use the dashes in your key<br>> correct? <br><br>I use ASCII string WEP keys.  The "s:" tells iwconfig that it's an ASCII<br>string rather than a string that represents hex values, e.g.<br><br> "abcdef" means three bytes of hex values, 0xab, 0xcd and 0xe!
f<br>
 "s:abcdef" means a six-byte ASCII string, "abcdef"<br><br>----------------------------------------------------------------------<br>- Rick Stevens, Senior Systems Engineer     rstevens@vitalstream.com -<br>- VitalStream, Inc.                       http://www.vitalstream.com -<br></KEY-STRING></ESSID></KEY-STRING></ESSID></blockquote>Here's my working info, in case it helps:<br> <br> # uname -a<br> Linux localhost.localdomain 2.6.14-1.1637_FC4 #1 Wed Nov 9 18:19:37 EST 2005 i686 athlon i386 GNU/Linux<br> <br> # iwconfig wlan0<br> wlan0     IEEE 802.11g  ESSID:"my-essid"  Nickname:"localhost.localdomain"<br>           Mode:Managed  Frequency:2.462 GHz  Access Point: 00:09:5B:DE:1A:A4<br>           Bit Rate=54 Mb/s   Tx-Power:25 dBm<br>           RTS thr=2347 B   Fragment thr=2346 B<br>
           Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security mode:restricted<br>           Power Management:off<br>           Link Quality:100/100  Signal level:-34 dBm  Noise level:-256 dBm<br>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0<br> <br> # iwlist wlan0 scan<br> wlan0     Scan completed :<br>     .....<br> Used to get a wireless-tools version error here, but updated wireless-tools from fedora repo about 2 weeks ago.<br> <br> <br></div><BR><BR><div id="RTEContent">Shin zen ni rei<br>-j<br><a href="http://counter.li.org">Registered Linux user number 403109</a></div><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>