Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2006 20:51:45 +0100
From:      Carlos Amengual <listas@informatica.info>
To:        freebsd-stable@freebsd.org
Subject:   wpa_supplicant with NDIS-wrapped wireless card and WPA-PSK reboots 6.1-pre
Message-ID:  <4404A9D1.5000705@informatica.info>

next in thread | raw e-mail | index | archive | help
My system is a 6.1-PRERELEASE as of yesterday afternoon, but the same 
happened with a RELENG_6 as of a month ago.

I set up a D-Link AirPlus DWL-520+ wireless PCI adapter in an old 
server, and NDISwrapped it (got an AIRPLUS_SYS.ko).

When running wpa_supplicant -dd -indis0 -Dndis 
-c/etc/wpa_supplicant.conf, the system reboots after printing:

--------------------------------------------------------
Initializing interface 'ndis0' conf '/etc/wpa_supplicant.conf' driver 'ndis'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0 (from group name 'wheel')
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=11):
     47 4e 43 57 49 52 45 4c 45 53 53                  GNCWIRELESS    
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=26): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='GNCWIRELESS'
Initializing interface (2) 'ndis0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
NDIS: 1 adapter names found
NDIS: 1 adapter descriptions found
NDIS: 0 - ndis0 - ndis0
NDIS: Adapter description prefix 'ndis0'
ndis_get_oid: oid=0xd010122 len (512) failed
NDIS: verifying driver WPA capability
NDIS: WPA key management supported
NDIS: WPA-PSK key management supported
ndis_set_oid: oid=0xd01011b len (4) failed
NDIS: Failed to set OID_802_11_ENCRYPTION_STATUS (6)
NDIS: TKIP encryption supported
NDIS: driver supports WPA
NDIS: driver capabilities: key_mgmt 0x5 enc 0x4 auth 0x3
Own MAC address: **:**:**:**:**:**
wpa_driver_ndis_set_wpa: enabled=1
ndis_get_oid: oid=0xd010101 len (6) failed
--------------------------------------------------------

My kldstat is the following:

Id Refs Address    Size     Name
 1   23 0xc0400000 642cac   kernel
 2    1 0xc0a43000 6da4     wlan_ccmp.ko
 3    1 0xc0a4a000 4040     wlan_tkip.ko
 4    1 0xc0a4f000 2cf4     wlan_acl.ko
 5    2 0xc0a52000 ca80     if_ndis.ko
 6    3 0xc0a5f000 1753c    ndis.ko
 7    1 0xc0a77000 51314    AIRPLUS_SYS.ko
 8    1 0xc0ac9000 58554    acpi.ko
 9    1 0xc36a1000 2000     star_saver.ko
10    1 0xc36c9000 16000    linux.ko


My /etc/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
#
# home network; allow all valid ciphers
network={
        ssid="GNCWIRELESS"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="**********************"
}

dmesg -a:
-----------------------------------------------------------------------------------
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.1-PRERELEASE #0: Tue Feb 28 05:25:01 CET 2006
    xxxxx@xxxxx.informatica.info:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (319.98-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536854528 (511 MB)
avail memory = 515973120 (492 MB)
wlan: mac acl policy registered
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS P3V_4X> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge> mem 
0xe4000000-0xe7ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C596B UDMA66 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 4.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 12 at device 
4.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge, HOST-PCI> at device 4.3 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xd000-0xd0ff mem 
0xdb800000-0xdb8000ff irq 12 at device 9.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:02:44:39:58:6e
ahc0: <Adaptec aic7850 SCSI adapter> port 0xb800-0xb8ff mem 
0xdb000000-0xdb000fff irq 10 at device 10.0 on pci0
ahc0: [GIANT-LOCKED]
aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs
atapci1: <Promise PDC20270 UDMA100 controller> port 
0xb400-0xb407,0xb000-0xb003,0xa800-0xa807,0xa400-0xa403,0xa000-0xa00f 
mem 0xda800000-0xda80ffff irq 11 at device 12.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
ndis0: <D-Link AirPlus DWL-520+ Wireless PCI Adapter> port 0x9800-0x981f 
mem 0xda000000-0xda000fff,0xd9800000-0xd980ffff irq 10 at device 14.0 on 
pci0
ndis0: NDIS API version: 5.1
ndis0: Ethernet address: xx:xx:xx:xx:xx:xx
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 drq 
3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xd07ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 319982296 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 28629MB <WDC WD300BB-00AUA1 18.20D18> at ata0-master UDMA66
acd0: CDROM <IDE/ATAPI CD-ROM 50XS/185E> at ata1-master UDMA33
ad4: 57241MB <Seagate ST360021A 3.05> at ata2-master UDMA100
ad6: 57241MB <Seagate ST360021A 3.05> at ata3-master UDMA100
sa0 at ahc0 bus 0 target 3 lun 0
sa0: <HP C1537A L907> Removable Sequential Access SCSI-2 device
sa0: 10.000MB/s transfers (10.000MHz, offset 15)
ar0: 57220MB <Promise Fasttrak RAID1> status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master
Trying to mount root from ufs:/dev/ar0s1a
WARNING: / was not properly dismounted
Loading configuration files.
Entropy harvesting:
 interrupts
 ethernet
 point_to_point
 kickstart
.
swapon: adding /dev/ar0s1b as swap device
swapon: adding /dev/ad0s1b as swap device
Starting file system checks:
/dev/ar0s1a: 1473 files, 28461 used, 333482 free (802 frags, 41585 
blocks, 0.2% fragmentation)
/dev/ar0s1d: DEFER FOR BACKGROUND CHECKING
/dev/ar0s1f: DEFER FOR BACKGROUND CHECKING
/dev/ar0s1e: DEFER FOR BACKGROUND CHECKING
/dev/ad0s1e: DEFER FOR BACKGROUND CHECKING
/dev/ad0s1f: DEFER FOR BACKGROUND CHECKING
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 14496 files 1
WARNING: /var was not properly dismounted
WARNING: /var/tmp was not properly dismounted
WARNING: /usr/backups was not properly dismounted
Setting hostname: azul.informatica.info.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::202:44ff:fe39:586e%rl0 prefixlen 64 tentative 
scopeid 0x1
        inet 192.168.1.20 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:02:44:39:58:6e
        media: Ethernet autoselect (none)
        status: no carrier
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 ***********%ndis0 prefixlen 64 scopeid 0x2
        inet 192.168.1.21 netmask 0xffffff00 broadcast 192.168.1.255
        ether **:**:**:**:**:**
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: no carrier
        ssid "" channel 1
        authmode OPEN privacy OFF txpowmax 100
add net default: gateway 192.168.1.1
Additional routing options:
.
Starting devd.
hw.acpi.cpu.cx_lowest:
C1
 ->
C1

Mounting NFS file systems:
.
Creating and/or trimming log files:
.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib 
/usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
Starting usbd.
Starting local daemons:
.
Updating motd
.
Configuring syscons:
 keymap
 blanktime
 screensaver
.
Starting sshd.
Initial i386 initialization:
.
Additional ABI support:
 linux
.
Starting cron.
Local package initialization:
.
Additional TCP options:
.
Starting inetd.
Starting background file system checks in 60 seconds.

-----------------------------------------------------------------------------------


Is this a known problem? Found one more wpa_supplicant-related reboot 
problem with an NDIS card in the mailing lists, but no news about that.

Regards,
Carlos Amengual



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4404A9D1.5000705>