Subject: 802.11 (wi0) WEP problem
To: None <netbsd-help@netbsd.org>
From: Paul Chakravarti <pc000@passtheaardvark.com>
List: netbsd-help
Date: 07/03/2001 15:04:56
I am having some problems getting WEP working on my wireless card - the
card works fine unencrypted but idnt able to connect with encryption
turned on -

The card is a Linksys Instant Wireless 802.11 card -

wi0 at pcmcia0 function 0: Instant Wireless ,  Network PC CARD, Version 01.02,
  port 0x400-0x43fwi0: 802.11 address 00:03:2f:01:50:64

When I bring this up in non-encrypted mode it connects with no problem 

[root:latimer] /root # ifconfig wi0 down
[root:latimer] /root # wiconfig wi0 -n froghill_w -e 0 
[root:latimer] /root # ifconfig wi0 up
[root:latimer] /root # ping 192.168.123.254                   
PING smc.wlan.froghill.net (192.168.123.254): 56 data bytes
64 bytes from 192.168.123.254: icmp_seq=0 ttl=64 time=9.335 ms
64 bytes from 192.168.123.254: icmp_seq=1 ttl=64 time=4.792 ms
^C
----smc.wlan.froghill.net PING Statistics----
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 4.792/7.064/9.335/3.212 ms

[root:latimer] /root # wiconfig wi0                
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [ NetBSD WaveLAN/IEEE node ]
SSID for IBSS creation:                 [  ]
Current netname (SSID):                 [ froghill_w ]
Desired netname (SSID):                 [ froghill_w ]
Current BSSID:                          [ 00:50:18:05:2c:ae ]
Channel list:                           [ 2047 ]
IBSS channel:                           [ 3 ]
Current channel:                        [ 10 ]
Comms quality/signal/noise:             [ 92 176 0 ]
Promiscuous mode:                       [ Off ]
Port type (1=BSS, 3=ad-hoc):            [ 1 ]
MAC address:                            [ 00:03:2f:01:50:64 ]
TX rate (selection):                    [ 3 ]
TX rate (actual speed):                 [ 2 ]
Maximum data length:                    [ 2304 ]
RTS/CTS handshake threshold:            [ 2347 ]
Create IBSS:                            [ Off ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time:                         [ 100 ]
Microwave oven robustness:              [ 33 64549 0 ]
WEP encryption:                         [ On ]
TX encryption key:                      [ ]
Encryption keys:                        [  ][  ][  ][  ]

The unly unusual thing is that wiconfig shows WEP as on.

If however I switch the base-station into WEP mode and try to
connect this fails (either in 40 or 128 bit mode) - ie

[root:latimer] /root # ifconfig wi0 down                                      
[root:latimer] /root # wiconfig wi0 -k 0xaaaaaaaaaa -v 1 -e 1                 
[root:latimer] /root # ifconfig wi0 up                        
[root:latimer] /root # ping 192.168.123.254
PING smc.wlan.froghill.net (192.168.123.254): 56 data bytes
ping: sendto: Host is down
^C
----smc.wlan.froghill.net PING Statistics----
8 packets transmitted, 0 packets received, 100.0% packet loss

[root:latimer] /root # wiconfig wi0  
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [ NetBSD WaveLAN/IEEE node ]
SSID for IBSS creation:                 [  ]
Current netname (SSID):                 [ froghill_w ]
Desired netname (SSID):                 [ froghill_w ]
Current BSSID:                          [ 00:50:18:05:2c:ae ]
Channel list:                           [ 2047 ]
IBSS channel:                           [ 3 ]
Current channel:                        [ 10 ]
Comms quality/signal/noise:             [ 92 163 0 ]
Promiscuous mode:                       [ Off ]
Port type (1=BSS, 3=ad-hoc):            [ 1 ]
MAC address:                            [ 00:03:2f:01:50:64 ]
TX rate (selection):                    [ 3 ]
TX rate (actual speed):                 [ 2 ]
Maximum data length:                    [ 2304 ]
RTS/CTS handshake threshold:            [ 2347 ]
Create IBSS:                            [ Off ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time:                         [ 100 ]
Microwave oven robustness:              [ 33 64549 0 ]
WEP encryption:                         [ On ]
TX encryption key:                      [ ]
Encryption keys:                        [ 0xaaaaaaaaaa ][  ][  ][  ]

Again wiconfig shows WEP as enabled however no key appears to be
selected.

The card does work in encrypted mode under Windows.

OS version is -

NetBSD latimer 1.5U NetBSD 1.5U (GENERIC_LAPTOP) #9: Thu Apr 19 12:39:45 EDT 2001 root@norbert:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386

Any suggetsions ?

Regards, 

Paul Chakravarti