stopping ndis caused fatal trap 12

Scot Hetzel swhetzel at gmail.com
Wed Jul 18 23:07:39 UTC 2007


On 7/15/07, Andrew Thompson <thompsa at freebsd.org> wrote:
> On Sun, Jul 15, 2007 at 05:32:32AM -0500, Scot Hetzel wrote:
> > hp010# uname -a
> > FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jul 14 02:20:09
> > CDT 2007     root at hp010:/usr/src/7x/sys-p4/amd64/compile/GENERIC.debug
> > amd64
> >
> > I was testing wpa_supplicant at work, and couldn't get it to associate
> > with the network (open, no encryption), and so I had hardcoded the
> > network.  When I went home and booted the system, it still had the
> > hardcoded wireless network configured.  I then did a netif stop ndis0,
> > made the change to set ndis to "WPA DHCP", then when I used 'netif
> > start ndis0', it didn't obtain an IP.  So I performed an 'netif stop
> > ndis0' and received the following panic:
> >
> So back to the ndis association problem. Did the card find the access
> point? you can list the scan cache from 'ifconfig ndis0 list scan'.
>

ifconfig ndis0 scan ; ifconfig ndis0 list scan don't return with any
results, but if I run wpa_cli, and do a scan and scan_results it lists
the APs.

I applied your patch from the previous post and ran the following commands.

hp010# sysctl net.wlan.0.debug=0xffffffff
net.wlan.0.debug: 0 -> -1
hp010# ifconfig ndis0 scan
=== see ndis_dmesg2 ====
hp010# ifconfig ndis0 list scan
hp010#

hp010# uname -a
FreeBSD hp010.hetzel.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jul
18 12:25:45 CDT 2007
swhetzel at hp010.hetzel.org:/usr/src/7x/amd64/compile/GENERIC.debug
amd64

I was finally able to get connected to both my work and school
networks using the following wpa_supplicant.conf file:

network={
        ssid="Home"
        scan_ssid=1
        key_mgmt=NONE
        wep_key0=9123456c13800b19d3f8
}

network={
        ssid="Work"
        auth_alg=OPEN
        key_mgmt=NONE
}

network={
        ssid="School"
        key_mgmt=NONE
}

#Settings from Windows XP profile for School_WPA
#Association -> Network Authentication = WPA
#Association -> Data Encryption = TKIP
#Authentication -> Enable IEEE 802.1x authentication for this network
= checked (grayed out)
#Authentication -> EAP type = Protected EAP (PEAP)
#Authentication -> Protected EAP Properties -> Validate server
certificate = unchecked
#Authentication -> Protected EAP Properties -> Authentication Method =
Secured password (EAP-MSCHAP v2)
#Authentication -> Protected EAP Properties -> Enable Fast Reconnect = checked

network={
        ssid="School_WPA"
        proto=WPA
        key_mgmt=WPA-EAP
        pairwise=TKIP
        group=TKIP
        eap=PEAP
        identity="me at school"
        password="password"
        ca_cert=""
#        phase1="include_tls_length=1 peapver=1 peaplabel=1"
        phase2="auth=MSCHAPV2"
        disabled=1
}

But I haven't been able to get it to connect to School_WPA (see
ndis_test, ndis_dmesg) when it is enabled.  I had searched the net,
and found several hints that suggested to try various combinations of
peapver=x, peaplabel=y, and include_tls_length=1.  But none of them
worked.

Scot

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndis_dmesg2
Type: text/x-diff
Size: 2355 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070718/70d943d2/ndis_dmesg2.bin
-------------- next part --------------
Script started on Wed Jul 18 16:55:06 2007
You have mail.
hp010# ifconfig ndis0

ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:14:a5:72:68:64
	inet6 fe80::214:a5ff:fe72:6864%ndis0 prefixlen 64 scopeid 0x1 
	media: IEEE 802.11 Wireless Ethernet autoselect
	status: no carrier
	ssid "" channel 1 (2412 Mhz 11g)
	authmode OPEN privacy OFF txpowmax 100 bmiss 7 scanvalid 60
	protmode CTS
hp010# /etc/rc.d/netif start ndis0

Starting ndis_events.
Starting wpa_supplicant.
Initializing interface 'ndis0' conf '/etc/wpa_supplicant.conf' driver 'ndis' ctrl_interface 'N/A' bridge 'N/A'
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' (DEPRECATED)
update_config=1
Priority group 0
   id=0 ssid='School'
   id=1 ssid='School_WPA'
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: Packet.dll version: FreeBSD WinPcap compatibility shim v1.0
NDIS: 1 adapter names found
NDIS: 1 adapter descriptions found
NDIS: 0 - ndis0 - ndis0
NDIS: Adapter description prefix 'ndis0'
NDIS: Driver supports OID_802_11_CAPABILITY - NoOfPMKIDs 16 NoOfAuthEncrPairs 14
NDIS: driver capabilities: key_mgmt 0x1f enc 0xf auth 0x3
Own MAC address: 00:14:a5:72:68:64
wpa_driver_ndis_set_wpa: enabled=1
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
ctrl_interface_group=0
Added interface ndis0
Daemonize..
DHCPREQUEST on ndis0 to 255.255.255.255 port 67
DHCPREQUEST on ndis0 to 255.255.255.255 port 67
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
Trying recorded lease 10.65.108.83
bound: renewal in 343919 seconds.
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:14:a5:72:68:64
	inet6 fe80::214:a5ff:fe72:6864%ndis0 prefixlen 64 scopeid 0x1 
	media: IEEE 802.11 Wireless Ethernet autoselect
	status: no carrier
	ssid "" channel 1 (2412 Mhz 11g)
	authmode OPEN privacy OFF txpowmax 100 bmiss 7 scanvalid 60
	protmode CTS roaming MANUAL
hp010# ifconfig ndis0 scan

hp010# ifconfig ndis0 list scan

hp010# wpa_cli

wpa_cli v0.5.8
Copyright (c) 2004-2007, Jouni Malinen <j at w1.fi> and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.


Selected interface 'ndis0'

Interactive mode

> status
bssid=00:0b:0e:19:33:42
ssid=School_WPA
id=1
pairwise_cipher=TKIP
group_cipher=TKIP
key_mgmt=WPA/IEEE 802.1X/EAP
wpa_state=ASSOCIATED
Supplicant PAE state=HELD
suppPortStatus=Unauthorized
EAP state=FAILURE
> scan
OK
> scan_results
bssid / frequency / signal level / flags / ssid
00:0b:0e:18:4e:80	2437	-70		School
00:0b:0e:18:4e:82	2437	-72	[WPA-EAP-TKIP]	School_WPA
00:0b:0e:19:33:40	2437	-53		School
00:0b:0e:19:33:42	2437	-52	[WPA-EAP-TKIP]	School_WPA
> <2>Trying to associate with 00:0b:0e:18:4e:82 (SSID='School_WPA' freq=2437 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0b:0e:18:4e:82 (SSID='School_WPA' freq=2437 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0b:0e:19:33:40 (SSID='School' freq=2437 MHz)
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:0b:0e:19:33:40
<2>CTRL-EVENT-CONNECTED - Connection to 00:0b:0e:19:33:40 completed (auth) [id=0 id_str=]
> level 2
OK
> reassociate
OK
> <2>Trying to associate with 00:0b:0e:19:33:40 (SSID='School' freq=2437 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0b:0e:19:33:40 (SSID='School' freq=2437 MHz)
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with 00:0b:0e:18:59:02 (SSID='School_WPA' freq=2437 MHz)
<2>Associated with 00:0b:0e:19:33:42
<2>CTRL-EVENT-EAP-STARTED EAP authentication started
<2>EAP: Failed to initialize EAP method: vendor 0 method 25 (PEAP)
<2>CTRL-EVENT-EAP-FAILURE EAP authentication failed
<2>CTRL-EVENT-EAP-STARTED EAP authentication started
<2>EAP: Failed to initialize EAP method: vendor 0 method 25 (PEAP)
<2>CTRL-EVENT-EAP-FAILURE EAP authentication failed
<2>Authentication with 00:0b:0e:19:33:42 timed out.
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Trying to associate with 00:0b:0e:18:4e:80 (SSID='School' freq=2437 MHz)
<2>Associated with 00:0b:0e:19:33:40
<2>CTRL-EVENT-CONNECTED - Connection to 00:0b:0e:19:33:40 completed (reauth) [id=0 id_str=]
status
bssid=00:0b:0e:19:33:40
ssid=School
id=0
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=NONE
wpa_state=COMPLETED
> quit
hp010# ifconfig ndis0

ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:14:a5:72:68:64
	inet6 fe80::214:a5ff:fe72:6864%ndis0 prefixlen 64 scopeid 0x1 
	media: IEEE 802.11 Wireless Ethernet autoselect
	status: associated
	ssid "" channel 1 (2412 Mhz 11g)
	authmode OPEN privacy OFF txpowmax 100 bmiss 7 scanvalid 60
	protmode CTS roaming MANUAL
hp010# ifconfig ndis0 inet 10.65.108.83 netmask 0xfffffc00

hp010# ifconfig ndis0

ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:14:a5:72:68:64
	inet6 fe80::214:a5ff:fe72:6864%ndis0 prefixlen 64 scopeid 0x1 
	inet 10.65.108.83 netmask 0xfffffc00 broadcast 10.65.111.255
	media: IEEE 802.11 Wireless Ethernet autoselect
	status: associated
	ssid "" channel 1 (2412 Mhz 11g)
	authmode OPEN privacy OFF txpowmax 100 bmiss 7 scanvalid 60
	protmode CTS roaming MANUAL
hp010# ping 10.65.110.1
PING 10.65.110.1 (10.65.110.1): 56 data bytes
64 bytes from 10.65.110.1: icmp_seq=0 ttl=255 time=16.250 ms
64 bytes from 10.65.110.1: icmp_seq=1 ttl=255 time=12.038 ms
64 bytes from 10.65.110.1: icmp_seq=2 ttl=255 time=7.663 ms

--- 10.65.110.1 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 7.663/11.984/16.250/3.506 ms


More information about the freebsd-current mailing list