Linux wireless drivers development
 help / color / mirror / Atom feed
* iw connect syntax for wep
@ 2011-05-14  7:01 John Frankish
  2011-05-14  8:27 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: John Frankish @ 2011-05-14  7:01 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

The iw documentation and "iw --help" states the following for establishing a wep connection:

iw wlan0 connect foo keys 0:abcde d:1:0011223344

What command syntax is supposed to be used when connecting to an ap using a single wep code consisting of 13 hex pairs?

"iw wlan0 connect ssid keys 1:00112233445566778899AABBCC" does not work

Thanks
John

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iw connect syntax for wep
  2011-05-14  7:01 iw connect syntax for wep John Frankish
@ 2011-05-14  8:27 ` Johannes Berg
  2011-05-14  8:38   ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2011-05-14  8:27 UTC (permalink / raw)
  To: John Frankish; +Cc: linux-wireless@vger.kernel.org

On Sat, 2011-05-14 at 07:01 +0000, John Frankish wrote:
> The iw documentation and "iw --help" states the following for establishing a wep connection:
> 
> iw wlan0 connect foo keys 0:abcde d:1:0011223344
> 
> What command syntax is supposed to be used when connecting to an ap using a single wep code consisting of 13 hex pairs?
> 
> "iw wlan0 connect ssid keys 1:00112233445566778899AABBCC" does not work

13 hex pairs isn't a valid key. WEP keys are either 5 or 10 bytes.

johannes


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iw connect syntax for wep
  2011-05-14  8:27 ` Johannes Berg
@ 2011-05-14  8:38   ` Johannes Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2011-05-14  8:38 UTC (permalink / raw)
  To: John Frankish; +Cc: linux-wireless@vger.kernel.org

On Sat, 2011-05-14 at 10:27 +0200, Johannes Berg wrote:
> On Sat, 2011-05-14 at 07:01 +0000, John Frankish wrote:
> > The iw documentation and "iw --help" states the following for establishing a wep connection:
> > 
> > iw wlan0 connect foo keys 0:abcde d:1:0011223344
> > 
> > What command syntax is supposed to be used when connecting to an ap using a single wep code consisting of 13 hex pairs?
> > 
> > "iw wlan0 connect ssid keys 1:00112233445566778899AABBCC" does not work
> 
> 13 hex pairs isn't a valid key. WEP keys are either 5 or 10 bytes.

Err, no, I got confused, it's either 5 or 13 bytes of course, and the
above works fine for me. If you have iw earlier than 0.9.16 you
absolutely need to make on key default though by prefixing "d:", later
versions will automatically select one key (basically at random though).

johannes


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-14  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-14  7:01 iw connect syntax for wep John Frankish
2011-05-14  8:27 ` Johannes Berg
2011-05-14  8:38   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox