Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2009 09:50:49 -0400 (EDT)
From:      Keith White <kwhite@site.uottawa.ca>
To:        freebsd-current@freebsd.org
Subject:   Unable to associate using NDIS driver to WPA/WPA2 APs post 2009/03/26
Message-ID:  <20090406092653.W48458@admin16.site.uottawa.ca>

next in thread | raw e-mail | index | archive | help
The platform is an msi wind U100 using an NDIS driver for the onboard rt2860.

This has worked well, both at home with WPA2-PSK and at work with
WPA2-EAP, until recently [post 2009/03/26?].  It stopped working
with the recent changes to if_ndis and net80211.

My current workaround is to use older versions of wlan.ko and
if_ndis.ko, but that's not going to continue forever...

ident differences between working and current versions:

=== if_ndis ===
    1      $FreeBSD: src/sys/dev/if_ndis/if_ndis.c,v 1.154 2009/03/24 04:20:17 weongyo Exp $
    1      $FreeBSD: src/sys/dev/if_ndis/if_ndis.c,v 1.155 2009/03/29 17:59:14 sam Exp $
=== wlan.ko ===
    1      $FreeBSD: src/sys/net80211/ieee80211.c,v 1.68 2009/03/24 20:39:08 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211.c,v 1.70 2009/03/29 21:17:08 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_ddb.c,v 1.23 2009/02/27 14:12:05 bz Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_ddb.c,v 1.24 2009/03/29 17:59:14 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_freebsd.c,v 1.25 2009/01/08 17:12:47 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_freebsd.c,v 1.27 2009/03/30 21:53:27 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_hostap.c,v 1.15 2009/03/24 20:39:08 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_hostap.c,v 1.16 2009/03/30 21:53:27 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_ioctl.c,v 1.83 2009/03/24 20:39:08 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_ioctl.c,v 1.84 2009/03/29 21:17:08 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_node.c,v 1.123 2009/03/24 20:39:08 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_node.c,v 1.125 2009/03/30 21:53:27 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_output.c,v 1.79 2009/03/26 19:13:11 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_output.c,v 1.82 2009/04/03 20:46:32 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_scan.c,v 1.13 2009/02/22 18:46:36 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_scan.c,v 1.14 2009/03/29 21:17:08 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_sta.c,v 1.14 2009/03/25 03:02:03 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_sta.c,v 1.15 2009/03/30 21:53:27 sam Exp $

    1      $FreeBSD: src/sys/net80211/ieee80211_wds.c,v 1.7 2009/03/24 20:39:08 sam Exp $
    1      $FreeBSD: src/sys/net80211/ieee80211_wds.c,v 1.8 2009/04/03 18:00:19 sam Exp $

=== config ===
cpu		I686_CPU
ident		"U100"

options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	SCTP			# Stream Control Transmission Protocol
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_DIRHASH		# Improve performance on big directories
options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	MD_ROOT			# MD is a potential root device
options 	GEOM_PART_GPT		# GUID Partition Tables.
options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	STOP_NMI		# Stop CPUS using NMI instead of IPI
options  	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
#options		KDTRACE_HOOKS		# Kernel DTrace hooks
#options		DDB_CTF			#   for DTrace

# To make an SMP kernel, the next two lines are needed
options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# CPU frequency control
device		cpufreq

# Bus support.
device		acpi
device		pci

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
options 	ATA_STATIC_ID	# Static device numbering

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Add suspend/resume support for the i8254.
device		pmtimer

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)
device		firmware	# firmware assist module

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

=== dmesg ===
Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #6: Sun Apr  5 17:44:36 UTC 2009
     root@demo:/usr/src/obj/usr/src/sys/U100
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Atom(TM) CPU N270   @ 1.60GHz (1600.01-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x106c2  Stepping = 2
   Features=0xbfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0x40c39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,xTPR,PDCM,<b22>>
   AMD Features=0x100000<NX>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
   Logical CPUs per core: 2
real memory  = 1062936576 (1013 MB)
avail memory = 1026977792 (979 MB)
ACPI APIC Table: <MSI_NB MEGABOOK>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP/HT): APIC ID:  1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
no match for ZwWriteFile
no match for ZwCreateFile
no match for ZwReadFile
cryptosoft0: <software crypto> on motherboard
acpi0: <MSI_NB MEGABOOK> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (evregion-0427): No handler for Region [EC__] (0xc4227740) [EmbeddedControl] [20070320]
ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler [20070320]
ACPI Error (psparse-0626): Method parse/execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
ACPI Error (uteval-0309): Method execution failed [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xc4228260), AE_NOT_EXIST
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x17> port 0x62,0x66 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xe100-0xe107 mem 0xdfe80000-0xdfefffff,0xc0000000-0xcfffffff,0xdff00000-0xdff3ffff irq 16 at device 2.0 on pci0
agp0: <Intel 945GME SVGA controller> on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
acpi_video0: <ACPI video extension> on vgapci0
vgapci1: <VGA-compatible display> mem 0xdfe00000-0xdfe7ffff at device 2.1 on pci0
hdac0: <Intel 82801G High Definition Audio Controller> mem 0xffe00000-0xffe03fff irq 16 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20090401_0132
hdac0: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <network, ethernet> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
ndis0: <802.11n Wireless LAN Card> mem 0xdfc00000-0xdfc0ffff irq 17 at device 0.0 on pci2
ndis0: [ITHREAD]
ndis0: NDIS API version: 5.0
NDIS: could not find file rate.bin in linker list
NDIS: and no filesystems mounted yet, aborting NdisOpenFile()
uhci0: <UHCI (generic) USB controller> port 0xe0a0-0xe0bf irq 23 at device 29.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x1f30
usbus0: <UHCI (generic) USB controller> on uhci0
uhci1: <UHCI (generic) USB controller> port 0xe080-0xe09f irq 19 at device 29.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x0f30
usbus1: <UHCI (generic) USB controller> on uhci1
uhci2: <UHCI (generic) USB controller> port 0xe060-0xe07f irq 18 at device 29.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x0f30
usbus2: <UHCI (generic) USB controller> on uhci2
uhci3: <UHCI (generic) USB controller> port 0xe040-0xe05f irq 16 at device 29.3 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x0f30
usbus3: <UHCI (generic) USB controller> on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xdff40400-0xdff407ff irq 23 at device 29.7 on pci0
ehci0: [ITHREAD]
usbus4: EHCI version 1.0
usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7M SATA300 controller> port 0xe0f0-0xe0f7,0xe0e0-0xe0e3,0xe0d0-0xe0d7,0xe0c0-0xe0c3,0xe020-0xe02f mem 0xdff40000-0xdff403ff irq 19 at device 31.2 on pci0
atapci0: [ITHREAD]
atapci0: AHCI called from vendor specific driver
atapci0: AHCI Version 01.10 controller with 4 ports PM not supported
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 2> on atapci0
ata3: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed03000-0xfed033ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xcf000-0xcffff pnpid ORM0000 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
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata0: [ITHREAD]
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
ata1: [ITHREAD]
Timecounters tick every 10.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ad4: 152627MB <WDC WD1600BEVT-22ZCT0 11.01A11> at ata2-master SATA150
hdac0: HDA Codec #0: Realtek ALC888
pcm0: <HDA Realtek ALC888 PCM #0 Analog> at cad 0 nid 1 on hdac0
SMP: AP CPU #1 Launched!
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen2.1: <Intel> at usbus2
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen1.1: <Intel> at usbus1
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
GEOM_LABEL: Label for provider ad4s1 is msdosfs/WINRE.
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
GEOM_LABEL: Label for provider ad4s2 is ntfs/OS_Install.
GEOM_LABEL: Label for provider ad4s4 is ufsid/49d7d542f62efef2.
GEOM_LABEL: Label for provider ad4s4 is ufs/Source.
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Root mount waiting for: usbus4
ugen4.2: <vendor 0x5986> at usbus4
Root mount waiting for: usbus4
ugen4.3: <Generic> at usbus4
umass0: <Bulk-In, Bulk-Out, Interface> on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x0000
Root mount waiting for: usbus4
umass0:0:0:-1: Attached to scbus0
Root mount waiting for: CAM usbus4
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Generic- Multi-Card 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 990MB (2029056 512 byte sectors: 64H 32S/T 990C)
GEOM_LABEL: Label for provider da0s1 is label/Thumb.
GEOM_LABEL: Label for provider da0s1 is msdosfs/THUMB.
Enter passphrase for da0s3: ugen3.2: <Micro Star International> at usbus3
********
GEOM_ELI: Device da0s3.eli created.
GEOM_ELI: Encryption: Blowfish-CBC 128
GEOM_ELI:     Crypto: software
GEOM_LABEL: Label for provider da0s2a is ufsid/49cbe7372542dd60.
GEOM_LABEL: Label for provider da0s2a is ufs/dotRoot.
da0s3.eli.uzip: 31627 x 32768 blocks
GEOM: da0s3.eli.uzip: media size does not match label.
GEOM_LABEL: Label for provider da0s3.eli.uzipa is ufsid/49d826e6cbc92b93.
GEOM_LABEL: Label for provider da0s3.eli.uzipa is ufs/FreeBSDonUSB.
Trying to mount root from ufs:ufs/FreeBSDonUSB
GEOM_LABEL: Label for provider md0 is ufsid/49d9fb847ed4f656.
GEOM_LABEL: Label ufsid/49d9fb847ed4f656 removed.
wlan0: Ethernet address: 00:1d:92:cd:45:d0
NDIS: open file /compat/ndis/rate.bin failed: 2
GEOM_LABEL: Label for provider md1 is ufsid/49d9fba8f0ad448d.
===

...keith
-- 
Keith White, EITI/SITE, University of Ottawa
kwhite@site.uottawa.ca [+1 613 562 5800 x6681] FAX [+1 613 562 5664]



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