7.0-BETA3 ndis/wpa_supplicant/dhclient problem

From: Kevin Foo <chflags_at_gmail.com>
Date: Thu, 29 Nov 2007 13:45:42 +0800
Hello list,

I'm having problem with Broadcom card (card=0x1371103c chip=0x431214e4
rev=0x02) with ndis. It was working (associating and receiving dhcp
offer) prior system upgrade from 6.3-PRERELEASE to 7.0-BETA3. After
upgraded to 7.0-BETA3, it managed to associate with AP but could no
longer able to obtain dhcp offer. Dhclient failed to obtain dhcp lease
and fell back to sleep all the time. Manully assigning IP
addr/netmask/route did not help either. Without  using wpa_supplicant
(ifconfig_ndis0="DHCP ssid MYWIFI wepmode mixed
0xAAAAAABBBBBBCCCCCCDDDDDD00"), it failed to obtain dhcp lease too.
Here are some of the sanitized details.

uname -a
#########################
FreeBSD coeus.m0m0.org 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Wed Nov 28
02:05:22 MYT 2007
chflags_at_coeus.m0m0.org:/usr/obj/usr/src/sys/COEUS  i386
GENERIC kernel configure with pf stuff added in
device          pf
device          pfsync
device          pflog
device          carp
options         ALTQ
options         ALTQ_CBQ
options         ALTQ_RED
options         ALTQ_RIO
options         ALTQ_HFSC
options         ALTQ_PRI

dmesg
#########################
wlan: mac acl policy registered
no match for IoGetDeviceObjectPointer
ndis0: <Broadcom 802.11a/b/g WLAN> mem 0xb3000000-0xb3003fff irq 19 at
device 0.0 on pci1
ndis0: [ITHREAD]
ndis0: NDIS API version: 5.1
ndis0: using obsoleted if_watchdog interface
ndis0: Ethernet address: 00:00:00:00:00:22
Setting ESSID to ""
Setting ESSID to ""
Setting ESSID to ""
Setting ESSID to ""
ndis0: bssid_list failed
ndis0: link state changed to UP

loader.conf
#########################
if_ndis_load="YES"
bcmwl5_sys_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
wlan_acl_load="YES"
wlan_scan_sta_load="YES"

rc.conf
#########################
ifconfig_ndis0="DHCP WPA ssid MYWIFI"

wpa_supplicant.conf
#########################
network={
        ssid="MYWIFI"
        scan_ssid=1
        key_mgmt=NONE
        wep_tx_keyidx=0
        wep_key0=AAAAAABBBBBBCCCCCCDDDDDD00
}

ifconfig -a
#########################
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:00:00:00:00:22
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: associated
        ssid "" channel 1 (2412 Mhz 11g)
        authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit bmiss 7
        scanvalid 60 protmode CTS roaming MANUAL bintval 0

pciconf -lv
#########################
ndis0_at_pci0:1:0:0:       class=0x028000 card=0x1371103c chip=0x431214e4
rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'BCM4310 broadcom wireless 1490 (dell)'
    class      = network

wpa_cli interactive mode output
#########################
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:00:00:00:00:11
ssid=MYWIFI
id=0
pairwise_cipher=WEP-104
group_cipher=WEP-104
key_mgmt=NONE
wpa_state=COMPLETED
ip_address=0.0.0.0
> scan_results
bssid / frequency / signal level / flags / ssid
00:00:00:00:00:11       2437    -46     [WEP]   MYWIFI

wpa_supplicant debug mode output
#########################
wpa_supplicant -i ndis0 -c /etc/wpa_supplicant.conf -D ndis -d
Initializing interface 'ndis0' conf '/etc/wpa_supplicant.conf' driver
'ndis' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/root/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='MYWIFI'
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:00:00:00:00:22
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
Added interface ndis0
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
     4d 59 57 49 46 49                              MYWIFI
Trying to get current scan results first without requesting a new scan
to speed up initial association
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=0):
NDIS: turning radio on before the first scan
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
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Scan timeout - try to get results
Scan results: 3
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:00:00:00:00:11 ssid='MYWIFI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:00:00:00:00:11 ssid='MYWIFI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   selected non-WPA AP 00:00:00:00:00:11 ssid='MYWIFI'
Trying to associate with 00:00:00:00:00:11 (SSID='MYWIFI' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
ndis_get_oid: oid=0xd010101 len (6) failed
State: SCANNING -> ASSOCIATING
NDIS: Re-setting static WEP key 0
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_set_oid: oid=0xd010119 len (4) failed
NDIS: Failed to set OID_802_11_PRIVACY_FILTER (0)
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
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
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
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:11 into blacklist
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
State: ASSOCIATING -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
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
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Scan timeout - try to get results
Scan results: 3
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:00:00:00:00:11 ssid='MYWIFI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:00:00:00:00:11 ssid='MYWIFI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   selected non-WPA AP 00:00:00:00:00:11 ssid='MYWIFI'
Trying to associate with 00:00:00:00:00:11 (SSID='MYWIFI' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
ndis_get_oid: oid=0xd010101 len (6) failed
State: SCANNING -> ASSOCIATING
NDIS: Re-setting static WEP key 0
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_set_oid: oid=0xd010119 len (4) failed
NDIS: Failed to set OID_802_11_PRIVACY_FILTER (0)
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: ReqFixed=0x3 RespFixed=0x7 off_req=40 off_resp=92 len_req=52 len_resp=30
NDIS: 3 BSSID items to process for AssocInfo
Association info event
req_ies - hexdump(len=52): 00 07 5a 49 5f 57 49 46 49 01 08 82 84 8b
96 24 30 48 6c 21 02 08 12 24 02 01 0e 32 04 0c 12 18 60 dd 06 00 40
96 01 01 00 dd 09 00 10 18 02 00 11 00 00 00
resp_ies - hexdump(len=30): 01 08 82 84 8b 96 0c 18 30 48 32 04 12 24
60 6c dd 0c 00 03 7f 02 01 01 52 00 02 a4 40 00
beacon_ies - hexdump(len=96): 00 07 5a 49 5f 57 49 46 49 01 08 82 84
8b 96 0c 18 30 48 03 01 06 05 04 00 01 20 10 07 06 47 42 20 01 0d 12
2a 01 00 32 04 12 24 60 6c dd 09 00 03 7f 01 01 00 17 00 00 dd 0c 00
03 7f 02 01 01 52 00 02 a4 40 00 dd 18 00 50 f2 02 01 01 00 00 03 a4
00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
WPA: clearing own WPA/RSN IE
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=00:00:00:00:00:11
Associated with 00:00:00:00:00:11
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
Removed BSSID 00:00:00:00:00:11 from blacklist
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:11 completed
(auth) [id=0 id_str=]
Cancelling scan request

driver used
#########################
ftp://ftp.hp.com/pub/softpaq/sp34001-34500/sp34152.exe

The Broadcom ndis driver version 4.40.19.0 failed to detect the device
ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33008.exe

Thanks for help.

-- 
Regards
Kevin Foo
Received on Thu Nov 29 2007 - 05:13:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC