<div id="RTEContent"><br><br><b><i>Rick Stevens &lt;rstevens@vitalstream.com&gt;</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>&gt; &gt; Try one of these versions:<br>&gt; &gt; <br>&gt; &gt; iwconfig wlan0 mode ad-hoc essid <ESSID> key restricted <KEY-STRING><br>&gt; &gt; iwconfig wlan0 mode managed essid <ESSID> key restricted <KEY-STRING><br>&gt; &gt; <br>&gt; &gt; My guess is that ad-hoc will work.  Without the mode spec, sometimes<br>&gt; &gt; iwconfig won't set the frequency or allow the essid.  Weird, but true.<br>&gt; &gt; You might also try removing the "restricted" keyword--your network may<br>&gt; &gt; not be in that mode and using "restricted" limits you to truly<br>&gt; &gt; restricted networks.<br>&gt; &gt; <br>&gt; &gt; And yes, I have it working on several WEP networks using D-Link access<br>&gt; &gt; points and routers and!
 using
 ASCII key strings.  Note that they're<br>&gt; &gt; ad-hoc networks, but it should work on managed as well.<br>&gt; &gt; <br>&gt; &gt; The networks are old D-Link DI-614+ routers with DI-900AP access points.<br>&gt; &gt; ndiswrapper is managing a Broadcom wireless chip in my laptop and I use<br>&gt; &gt; an iwconfig of:<br>&gt; &gt; <br>&gt; &gt;  iwconfig wlan0 mode ad-hoc essid xxxxxx key s:blah-blah<br>&gt; &gt; <br>&gt; &gt; Works peachy!<br>&gt; &gt; <br>&gt; <br>&gt; Rick,<br>&gt; <br>&gt; I tried Ad-hoc and indeed it does load, but now mine loads like its own<br>&gt; AP, not connecting to DLINK AP. It's sets itself up as its own cell:<br>&gt; <br>&gt; wlan0     IEEE 802.11g  ESSID:"my-essid"  Nickname:"me.mydomain.com"<br>&gt;           Mode:Ad-Hoc  Frequency:2.437 GHz  Cell: D6:D5:6D:44:61:93<br>&gt;           Bit Rate=54 Mb/s   Tx-Power:25 dBm<br>&gt;           RTS thr=2347 B   Fragment thr=2346 B<br>&gt;           Encryption key:1234-1234-1234-1234-1234-1234-12  
 Security<br>&gt; mode:restricted<br>&gt;           Power Management:off<br>&gt;           Link Quality:100/100  Signal level:-57 dBm  Noise level:-256<br>&gt; dBm<br>&gt;           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br>&gt;           Tx excessive retries:0  Invalid misc:0   Missed beacon:0<br>&gt; <br>&gt; If I do an iwlist scan I see my DLINK AP as one cell and my laptop as<br>&gt; 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>&gt; Also, in your example you said:<br>&gt; iwconfig wlan0 mode ad-hoc essid xxxxxx key s:blah-blah<br>&gt; <br>&gt; What is the "s:" after key, and you don't use the dashes in your key<br>&gt; 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&nbsp;&nbsp;&nbsp;&nbsp; IEEE 802.11g&nbsp; ESSID:"my-essid"&nbsp; Nickname:"localhost.localdomain"<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mode:Managed&nbsp; Frequency:2.462 GHz&nbsp; Access Point: 00:09:5B:DE:1A:A4<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bit Rate=54 Mb/s&nbsp;&nbsp; Tx-Power:25 dBm<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RTS thr=2347 B&nbsp;&nbsp; Fragment thr=2346 B<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX&nbsp;&nbsp; Security mode:restricted<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Power Management:off<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link Quality:100/100&nbsp; Signal level:-34 dBm&nbsp; Noise level:-256 dBm<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rx invalid nwid:0&nbsp; Rx invalid crypt:0&nbsp; Rx invalid frag:0<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tx excessive retries:0&nbsp; Invalid misc:0&nbsp;&nbsp; Missed beacon:0<br> <br> # iwlist wlan0 scan<br> wlan0&nbsp;&nbsp;&nbsp;&nbsp; Scan completed :<br> &nbsp;&nbsp;&nbsp; .....<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>