Hi Stefan,

Stefan Sperling wrote:
Sounds like a wrong key, or the wrong type of crypto.
Are you the AP is using WEP? Perhaps you need 'wpakey' instead of 'nwkey'?

If the key is wrong or the crypto is wrong, would the interface still be active and connected?

I am sure the AP is using WEP: I connect to that access point with many computer since years. Also, I tried connectiong to another access point which has WPA, same failure.


If you want more help, please show commands you are typing and their output.
It is much easier to provide help when we can see what you are seeing,
instead of trying to guess what happened based on your verbal description.

Sure, to be more scientific about determining the issue, I proceeded making a small script. I invoked the script once with ipw0 - the internal interface, then with a CardBus WiFi card I grabbed from another computer. I actually tested two.

sudo route delete default
sudo pkill dhclient
sudo ifconfig $1 up
sudo ifconfig $1 nwid westernesse-hlwpakey xxxxxxxxxx
sudo dhclient $1

whhere westernesse-hlis the access point with WPA, for the one with WEP, I use the corresponding nwkey. This I love of OpenBSD: the lack of wpasupplicant:

ipw0: internal 2100;
ipw0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr 00:0c:f1:1f:b2:a0
        index 1 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect (DS11 mode 11b)
        status: active
        ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 -48dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp

ral0:
ral0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr 00:22:b0:64:44:06
        index 5 priority 4 llprio 3
        groups: wlan egress
        media: IEEE802.11 autoselect (OFDM36 mode 11g)
        status: active
        ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 -115dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
        inet 192.168.1.137 netmask 0xffffff00 broadcast 192.168.1.255


of course the old card can connect only in 11b to the access point.

The script proves that the network settings if applied are correct and do work and that I do not "mistype"!

If I try to scan, I see networks:
$ sudo ifconfig ipw0 scan
ipw0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
        lladdr 00:0c:f1:1f:b2:a0
        index 1 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect (DS11 mode 11b)
        status: active
        ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 -48dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp                 nwid Paredi chan 2 bssid 60:32:b1:d1:7e:96 -19dBm HT-MCS15 privacy,short_preamble,short_slottime,wep                 nwid westernesse chan 2 bssid 94:0c:6d:f7:a4:9c -46dBm 54M privacy,short_preamble,short_slottime,wep                 nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 -52dBm HT-MCS23 privacy,wpa2


you can see both a WPA and WEP network which I can use plus another network, apparently WEP enabled too. This proves that the card is capable of receiving.

Riccardo

Reply via email to