[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wavelan bridging



On Sat, 30 Mar 2002, Theo de Raadt wrote:

> It should just work.

It is working very well here.

> pretty groovy stuff.  It'd be nice if some users tested this as a base
> station.

I've been testing {de,re}auth and {de,re}assoc with Win32 and OpenBSD
clients (sta's) against a bridging 3.1-beta host-ap. Every client
(sta) I've tried so far works as expected. Some early observations:

WEP doesn't seem to work in host-ap mode, but I understand this is normal.

wihap_timer causes idle OpenBSD 2.9 & 3.1 stations to disassoc/reassoc
every 30 secs. Win2K (Orinoco) clients don't do this if powersave mode
is enabled. In both cases, established TCP sessions are unaffected.

TCP connections (ssh) survive host-ap reboot or client sta going out
then back into range (expected, but very nice).

A new 3.1 install worked seamlessly via wi0 (using a new floppyC31.fs).

Todd's changes to if_wireg.h on 30/3 have made my Netgear MA301 (PLX
based) PCI adapter work. (I used to get wi0: device timeout).

Host-ap client stations appear to get multiple duplicate replies when
pinging other sta's or wired hosts on the other side of the bridge.

When operating in host-ap mode 'wicontrol -s <name>' sets the AP name.

I've appended my settings/results below. This was with code cvs'd and
built 2pm Sat 30th UTC using tag OPENBSD_3_1 (dmesg appended).

$ cat /etc/hostname.wi0
!/sbin/wicontrol wi0 -t11 -p6 -f5 -q test-net -s test-ap
up nwid test-net media DS5 mediaopt hostap debug

$ cat /etc/hostname.xl0
inet <external ip> 255.255.255.0 NONE

$ cat /etc/bridgename.bridge0
add xl0 add wi0 up

$ brconfig bridge0
bridge0: flags=41<UP,RUNNING>
	Configuration:
		priority 32768 hellotime 2 fwddelay 15 maxage 15
	Interfaces:
		wi0 flags=3<LEARNING,DISCOVER>
			port 21 priority 128
		xl0 flags=3<LEARNING,DISCOVER>
			port 1 priority 128
	Addresses (max cache: 100, timeout: 240):
		00:50:da:4b:53:89 xl0 0 flags=0<>
		00:08:c7:29:04:7d xl0 0 flags=0<>
		00:01:02:12:f7:43 xl0 1 flags=0<>
		00:02:2d:02:a6:fe wi0 1 flags=0<>
		00:02:2d:02:a7:06 wi0 1 flags=0<>

$ wicontrol wi0
NIC serial number:			[ 99SA01000000 ]
Station name:				[ test-ap ]
SSID for IBSS creation:			[ test-net ]
Current netname (SSID):			[ test-net ]
Desired netname (SSID):			[ test-net ]
Current BSSID:				[ 00:30:ab:0e:75:c6 ]
Channel list:				[ 8191 ]
IBSS channel:				[ 5 ]
Current channel:			[ 5 ]
Comms quality/signal/noise:		[ 0 27 27 ]
Promiscuous mode:			[ On ]
Port type (1=BSS, 3=ad-hoc, 6=Host AP):	[ 6 ]
MAC address:				[ 00:30:ab:0e:75:c6 ]
TX rate (selection):			[ 5 ]
TX rate (actual speed):			[ 2 ]
Maximum data length:			[ 2304 ]
RTS/CTS handshake threshold:		[ 2347 ]
Create IBSS:				[ Off ]
Microwave oven robustness:		[ 33 64549 0 ]
Roaming mode(1:firm,3:disable):		[ 1 ]
Access point density:			[ 1 ]
Power Mgmt (1=on, 0=off):		[ 0 ]
Max sleep time:				[ 100 ]
Card info:				[ PRISM II HWB3163 rev.A, Firmware 0.8 variant 3 ]
WEP encryption:				[ Off ]
Authentication type
(1=OpenSys, 2=Shared Key):		[ 1 ]
TX encryption key:			[ 1 ]
Encryption keys:			[  ][  ][  ][  ]

$ wicontrol wi0 -l
2 stations:
00:02:2d:02:a6:fe  asid=0530, flags=3<ASSOC,AUTH>, caps=1<ESS>,
rates=f<1M,2M,5.5M,11M>, sig=162/4
00:02:2d:02:a7:06  asid=03e0, flags=3<ASSOC,AUTH>, caps=1<ESS>,
rates=f<1M,2M,5.5M,11M>, sig=219/4

$ wicontrol wi0 -o
Transmitted unicast frames:		14319
Transmitted multicast frames:		151
Transmitted fragments:			350678
Transmitted unicast octets:		7201140
Transmitted multicast octets:		11678
Single transmit retries:		368
Multiple transmit retries:		92
Transmit retry limit exceeded:		1958
Transmit discards:			0
Transmit discards due to wrong SA:	0
Received unicast frames:		14791
Received multicast frames:		3408
Received fragments:			18199
Received unicast octets:		1273581
Received multicast octets:		156768
Receive FCS errors:			0
Receive discards due to no buffer:	7
Can't decrypt WEP frame:		0
Received message fragments:		0
Received message bad fragments:		0


OpenBSD 3.1-beta (GENERIC) #2: Sat Mar 30 14:33:58 GMT 2002
    root@twat:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon Model 6 (Palomino) ("AuthenticAMD" 686-class) 1.47 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD
real mem  = 536391680 (523820K)
avail mem = 491556864 (480036K)
using 5689 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(c4) BIOS, date 11/23/01, BIOS32 rev. 0 @ 0xfb4a0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xdf94
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdef0/160 (8 entries)
pcibios0: PCI Exclusive IRQs: 10 11 12
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0xb400 0xcc000/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8366 Host-PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8366 PCI-AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Vanta" rev 0x15
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
eap0 at pci0 dev 8 function 0 "Ensoniq CT5880" rev 0x02: irq 10
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
xl0 at pci0 dev 11 function 0 "3Com 3c905C 100Base-TX" rev 0x6c: irq 10 address 00:04:76:21:24:a7
exphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 4
cbb0 at pci0 dev 13 function 0 "Texas Instruments PCI1410 PCI-CardBus" rev 0x01: irq 12
pcib0 at pci0 dev 17 function 0 "VIA VT8366 PCI-ISA" rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA100, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <MAXTOR 6L080J4>
wd0: 16-sector PIO, LBA, 76345MB, 16383 cyl, 16 head, 63 sec, 156355584 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide0 channel 1 drive 0: <IBM-DJSA-220>
wd1: 16-sector PIO, LBA, 19077MB, 16383 cyl, 16 head, 63 sec, 39070080 sectors
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HP, CD-Writer+ 8200, 1.0f> SCSI0 5/cdrom removable
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 17 function 2 "VIA VT83C572 USB" rev 0x1b: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 17 function 3 "VIA VT83C572 USB" rev 0x1b: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 17 function 4 "VIA VT83C572 USB" rev 0x1b: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask d440 netmask d440 ttymask d4c2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
wi0 at pcmcia0 function 0 "NETGEAR MA401 Wireless PC, Card, Version 01.00"
wi0: PRISM II HWB3163 rev.A, Firmware 0.8 variant 3, address 00:30:ab:0e:75:c6
ums0 at uhub1 port 1 configuration 1 interface 0
ums0: Logitech USB Mouse, rev 1.10/6.20, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
wihap_init: sc=0xe0ed4000 whi=0xe0ed48dc
wihap_shutdown: sc=0xe0ed4000 whi=0xe0ed48dc
wihap_init: sc=0xe0ed4000 whi=0xe0ed48dc
wihap_mgmt_input: len=6 MGMT: auth:
wihap_auth_req: from station: 00:02:2d:02:a6:fe
wihap_auth_req: new station
wihap_auth_req: returns status=0x0
wihap_mgmt_input: len=22 MGMT: assoc req:
wihap_assoc_req: from station 00:02:2d:02:a6:fe
wihap_assoc_req: returns status=0x0
wihap_shutdown: sc=0xe0ed4000 whi=0xe0ed48dc
Sending disassoc to sta 00:02:2d:02:a6:fe
Sending deauth to sta 00:02:2d:02:a6:fe
wihap_shutdown: FREE(sta=0xe0eb6380)
wihap_init: sc=0xe0ed4000 whi=0xe0ed48dc