| On Sun, Feb 15, 2009 at 06:58:10PM +0100, Damien Bergamini wrote:
| > any particular reason to use a syntax different from the one
| > in the drivers man pages?
| >
| > i.e:
| > ifconfig wpi0 wpa wpapsk `wpa-psk wlan supersecret`
| > instead of:
| > ifconfig wpi0 nwid wlan wpa wpapsk $(wpa-psk wlan supersecret)
|
| This is the syntax that I've been using without issue for months.

maybe but this is wrong.
if you don't specify an ssid, you will associate with any
access point supporting wpa (not necessarily the one you
want to associate with) but the key handshake will fail because
the pairwise key derived from your psk won't match.
the ssid passed to wpa-psk is just used to hash your passphrase
into a psk.

this is exactly like wep, if you don't specify an ssid, you
will associate with any wep capable AP but you won't be able
to exchange data because your wep key won't match.


| > you really want to specify the ssid with nwid too.
|
| When I do that (don't recall if it's every time, but there have been 
many),
| it's by accident, and I have to issue an `ifconfign -nwid' to keep it
| from doing a link state up/link state down dance which keeps me off
| of the access point. This seems to be incorrect behavior (I had thought
| that my usage was incorrect), so I'll talk to you offline about that.

well if you think there is a bug, you should report it ;-)
but the example in ifconfig(8) should be updated to specify
an ssid.

Damien 

Reply via email to