Subject: NetBSD wi0 AP and Mcintoshes?
To: None <tech-net@NetBSD.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-net
Date: 07/31/2004 21:30:32
Hi,

what are your experiences with a wi(4) based access-point, WEP and Apple
Macintoshes? I find that with both System 9 and MacOS X.3 clients, I can
connect without WEP. With WEP enabled, OTOH (using a 128 bit key), I get an
unspecified error from both clients.

On the server/AP, an 'ifconfig wi0 debug' gives me an endless stream of

Jul 31 21:10:32 pizza /netbsd: wi0: received auth from 00:30:65:01:c6:62
rssi 37
Jul 31 21:10:32 pizza /netbsd: wi0: station 00:30:65:01:c6:62 shared key
reauthentication
Jul 31 21:10:32 pizza /netbsd: wi0: sending auth to 00:30:65:01:c6:62 on
channel 11
Jul 31 21:10:32 pizza /netbsd: wi0: dst 00:30:65:01:c6:62 threshold[160,
0.0] 0 < 9388
Jul 31 21:10:38 pizza /netbsd: wi0: dst 09:00:07:ff:ff:ff threshold[77,
11.0] 0 < 7648
Jul 31 21:10:39 pizza /netbsd: wi0: dst ff:ff:ff:ff:ff:ff threshold[68,
11.0] 0 < 7648

and 'tcpdump -ne -D ieee802_11 -i wi0' gives

21:12:38.394876 DA:9:0:7:ff:ff:ff BSSID:0:9:5b:54:f1:e5 SA:8:0:20:18:76:7e
Data IV:3aaaa Pad 0 KeyID 0
21:12:39.281749 BSSID:0:9:5b:54:f1:e5 DA:0:9:5b:54:f1:e5 SA:0:30:65:1:c6:62
Authentication (Shared Key)-1: Succesful
21:12:39.320517 BSSID:0:9:5b:54:f1:e5 DA:0:30:65:1:c6:62 SA:0:9:5b:54:f1:e5
[|802.11]

so there is nothing that resembles an error here. But while the above
tcpdump says, "Shared Key",

[hauke@pizza] /home/hauke # wiconfig wi0
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [  ]
SSID for IBSS creation:                 [ Forstquelle ]
Current netname (SSID):                 [ Forstquelle ]
Desired netname (SSID):                 [ Forstquelle ]
Current BSSID:                          [ 00:09:5b:54:f1:e5 ]
Channel list:                           [ 1 2 3 4 5 6 7 8 9 10 11 12 13 ]
IBSS channel:                           [ 11 ]
Current channel:                        [ 11 ]
Comms quality/signal/noise:             [ 0 81 27 ]
Promiscuous mode:                       [ Off ]
Port type:                              [ 6 ]
MAC address:                            [ 00:09:5b:54:f1:e5 ]
TX rate (selection):                    [ 0 ]
TX rate (actual speed):                 [ 2 ]
Beacon Interval (current) [msec]:       [ 100 ]
Maximum data length:                    [ 2304 ]
RTS/CTS handshake threshold:            [ 2347 ]
fragmentation threshold:                [ 2346 ]
RSSI -> dBm adjustment:                 [ 100 ]
Create IBSS:                            [ Off ]
Microwave oven robustness:              [ 0 ]
Roaming mode(1:firm,3:disable):         [ 1 ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time (msec):                  [ 100 ]
Vendor info:                            [ Unknown ID: 31 version: 1.7 ]
WEP encryption:                         [ On ]
Authentication type
(1=OpenSys, 2=Shared Key):              [ 1 ]
TX encryption key:                      [ 1 ]
Encryption keys:                        [ <snipped> ][  ][  ][  ]
[hauke@pizza] /home/hauke #

has "OpenSys" as authentication type. The related switch for wiconfig(8)
was present in NetBSD 1.6

     -A 0|1      [Prism2 only] Sets the authentication type for a given inter-
                 face.  Permitted values are 1 (Open System Authentication) or
                 2 (Shared Key Authentication).  The default is 1.

                 Note: It is not valid to enable Shared Key Authentication
                 when no valid WEP keys have been defined.


but has been axed (why? see PR 25833, and, probably related, PR 19111).

It would be sooo nice if this issue were fixed in 2.0...

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards