When setting up wireless for someone, tripped across this one:

# ifconfig ral0 nwkey 0x4646464646      <- note: 10 hex digits
# ifconfig ral0                    
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:39:15:60:82
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (OFDM36)
        status: no network
        ieee80211: nwid Benny nwkey FFFFF 100dBm     <- Fail
        inet6 fe80::218:39ff:fe15:6082%ral0 prefixlen 64 scopeid 0x5

# ifconfig ral0 nwkey 0x46464646     <- 8 hex digits
# ifconfig ral0                  
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:39:15:60:82
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (OFDM36 mode 11g)
        status: active
        ieee80211: nwid Benny nwkey 0x4646464600 100dBm   <- ok,
        inet6 fe80::218:39ff:fe15:6082%ral0 prefixlen 64 scopeid 0x5

# ifconfig ral0 nwkey 0x4646464611      <- 10 hex digits, but different
# ifconfig ral0                    
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:39:15:60:82
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (OFDM36)
        status: no network
        ieee80211: nwid Benny nwkey 0x4646464611 100dBm   <- good!
        inet6 fe80::218:39ff:fe15:6082%ral0 prefixlen 64 scopeid 0x5

# ifconfig ral0 nwkey 0x4646464622 
# ifconfig ral0                    
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:39:15:60:82
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (autoselect mode 11b)
        status: no network
        ieee80211: nwid Benny nwkey FFFF" 100dBm        <- fail
        inet6 fe80::218:39ff:fe15:6082%ral0 prefixlen 64 scopeid 0x5

???
And now for the next mind blower:

# ifconfig ral0 nwkey 0x1146464622 
# ifconfig ral0                    
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:39:15:60:82
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect (OFDM36 mode 11g)
        status: no network
        ieee80211: nwid Benny nwkey 0x1146464622 100dBm <- works! ???
        inet6 fe80::218:39ff:fe15:6082%ral0 prefixlen 64 scopeid 0x5

I'm not able to figure out the pattern.

Impacts other than just ral(4); kettenis@ verified on ath(4).

Nick.


OpenBSD 5.5 (GENERIC.MP) #262: Wed Mar  5 10:06:29 MST 2014
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR,PERF
real mem  = 1064742912 (1015MB)
avail mem = 1035014144 (987MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/25/05, BIOS32 rev. 0 @ 0xeb520, SMBIOS 
rev. 2.3 @ 0xeeae0 (59 entries)
bios0: vendor Hewlett-Packard version "786C2 v01.07" date 08/25/2005
bios0: Hewlett-Packard HP Compaq dc5100 SFF(PZ595UA)
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC ASF! MCFG
acpi0: wakeup devices PCI0(S4) PEG1(S4) PCX1(S4) PCX2(S4) PCX4(S4) HUB_(S4) 
COM1(S4) COM2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR,PERF
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xd0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG1)
acpiprt2 at acpi0: bus 32 (PCX1)
acpiprt3 at acpi0: bus 64 (PCX2)
acpiprt4 at acpi0: bus -1 (PCX4)
acpiprt5 at acpi0: bus 5 (HUB_)
acpicpu0 at acpi0: FVS, 3000, 2800 MHz
acpicpu1 at acpi0: FVS, 3000, 2800 MHz
acpibtn0 at acpi0: PBTN
bios0: ROM list: 0xc0000/0xa800! 0xca800/0x1000 0xcb800/0x2000 0xcd800/0x1000 
0xe9c00/0x6400!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915G Host" rev 0x04
vga1 at pci0 dev 2 function 0 "Intel 82915G Video" rev 0x04
intagp0 at vga1
agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1920x1080
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 32
ppb1 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x03: apic 1 int 17
pci2 at ppb1 bus 64
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1 (0x4001): 
apic 1 int 17, address 00:16:35:a1:77:ee
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 1 int 18
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 1 int 21
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 1 int 22
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 1 int 20
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd3
pci3 at ppb2 bus 5
ral0 at pci3 dev 4 function 0 "Ralink RT2561S" rev 0x00: apic 1 int 16, address 
00:18:39:15:60:82
ral0: MAC/BBP RT2561C, RF RT2527
em0 at pci3 dev 9 function 0 "Intel 82541GI" rev 0x00: apic 1 int 18, address 
00:0e:0c:50:80:d8
auich0 at pci0 dev 30 function 2 "Intel 82801FB AC97" rev 0x03: apic 1 int 21, 
ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x03: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LITE-ON, COMBO SOHC-4836K, SQK5> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801FB SATA" rev 0x03: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <Maxtor 6N040T0>
wd0: 16-sector PIO, LBA48, 38166MB, 78165360 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Dell Dell USB Keyboard" 
rev 1.10/3.06 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (19bf8edc0d00af67.a) swap on wd0b dump on wd0b

Reply via email to