Broadcom WiFi

Read the handbook dude, that should be your first move anyway.

On 8.0 you need to create wlanX first and use wlanX instead of ndisX.
 
help

help! i'm battling with my brodcom 4315 and ndis bcmwl5_sys driver - it's not going well- i'm unable to run wpa_supplicant freezes, kernel panics if i put module in boot/loader.conf

is there ANYONE with 4315 that can give me a hand? thanks.
 
strangeness enough kldload loads bcmwl5_sys.ko without issues - however when i add same module to /boot/loader.conf i get kernel panic...

also i'm not sure if my issue in the driver itself or wpa_supplicant... as any time i try to use wpa_supplicant iе freeze and give me errors such as

Code:
ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported
Failed to disable WPA in the driver.
ELOOP: remaining socket: и так далее

here is my wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
ssid="мy AP"
key_mgmt=WPA-PSK
psk="topsecretpassword created from running wpa_passphrase"
}

here is how i run it
Code:
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf
 
Regarding panic during boot, problem is already reported, second time in this thread.

For second issue you must use -Dndis switch, I stopped to count this one.

More info you will get using forum search feature.
 
help please? i got ndis driver bcmwl5_sys.ko - device is broadcom 4315.
when i run wpa_supplicant i get kernel panic

Code:
$ sudo /usr/sbin/wpa_supplicant -Dndis -iwlan0 -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1f:f3:c2:48:e5 (SSID='my ssid' freq=2412 MHz)

WPA: Could not verify EAPOL-Key MIC - dropping packet
Associated with 00:1f:f3:c2:48:e5

Write failed: Software caused connection abort
 
Code:
    class      = network
    subclass   = ethernet
none2@pci0:2:0:0:       class=0x028000 card=0x1507103c chip=0x431514e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
    class      = network


here is output when i load ndis bcwm5_sys
Code:
no match for ZwQueryInformationFile
no match for ZwReadFile
no match for ZwCreateFile
no match for ExFreePoolWithTag
no match for IoUnregisterPlugPlayNotification
ndis0: <Broadcom 802.11b/g WLAN> mem 0x56000000-0x56003fff irq 17 at device 0.0 on pci2
ndis0: [ITHREAD]
ndis0: NDIS API version: 5.1

here is detailed code of wpa_supplicant
Code:
$ sudo wpa_supplicant -Dndis -iwlan0 -dd -c/etc/wpa_supplicant.conf
Initializing interface 'wlan0' 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'
Line: 2 - start of a new network block
ssid - hexdump_ascii(len=8):
     75 6e 73 6f 62 69 6c 6c                           unsobill
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
priority=2 (0x2)
Priority group 2
   id=0 ssid='unsobill'
Initializing interface (2) 'wlan0'
NDIS: Packet.dll version: FreeBSD WinPcap compatibility shim v1.0
NDIS: 1 adapter names found
NDIS: 1 adapter descriptions found
NDIS: 0 - wlan0 - wlan0
NDIS: Adapter description prefix 'wlan0'
OID_802_11_CAPABILITY - hexdump(len=128): 80 00 00 00 02 00 00 00 10 00 00 00 0e 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 
00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 03 00 00 00 04 00 00 00 04 00 00 00 04 00 00 00 05 00 00 00 04 00 00 00 06 00 00 00 04 00 00 00 
07 00 00 00 04 00 00 00 03 00 00 00 06 00 00 00 04 00 00 00 06 00 00 00 05 00 00 00 06 00 00 00 06 00 00 00 06 00 00 00 07 00 00 00 06 00 00 
00 
NDIS: Driver supports OID_802_11_CAPABILITY - NoOfPMKIDs 16 NoOfAuthEncrPairs 14
NDIS: 0 - auth 0 encr 1
NDIS: 1 - auth 0 encr 0
NDIS: 2 - auth 1 encr 1
NDIS: 3 - auth 1 encr 0
NDIS: 4 - auth 3 encr 4
NDIS: 5 - auth 4 encr 4
NDIS: 6 - auth 5 encr 4
NDIS: 7 - auth 6 encr 4
NDIS: 8 - auth 7 encr 4
NDIS: 9 - auth 3 encr 6
NDIS: 10 - auth 4 encr 6
NDIS: 11 - auth 5 encr 6
NDIS: 12 - auth 6 encr 6
NDIS: 13 - auth 7 encr 6
NDIS: driver capabilities: key_mgmt 0x1f enc 0xf auth 0x3
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
NDIS: Set OID 0d010108 - hexdump(len=4): [REMOVED]
Own MAC address: c4:17:fe:bf:1b:bd
wpa_driver_ndis_set_wpa: enabled=1
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
RSN: flushing PMKID list in the driver
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
Setting scan request: 0 sec 100000 usec
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
Added interface wlan0
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Cached scan results are empty - not posting
Selecting BSS from priority group 2
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 (broadcast SSID)
NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
EAPOL: disable timer tick
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
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 2
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
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
Starting AP scan (broadcast SSID)
NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
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
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 2
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: SCANNING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_ndis_set_wpa: enabled=0
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
NDIS: Set OID 0d010115 - hexdump(len=4): [REMOVED]

strangely enough i get no kernel panics anymore since i ran update to stable at night
 
Perhaps you need to use ap_scan in wpa_supplicant.conf because scanning may be tricky with some drivers.

8.0 RELEASE have bug with scanning(net80211 related, reproducible via ifconfig only), it is resolved in 8.0 STABLE and in CURRENT.
 
here is my wpa_supplicant.conf - perhaps something is missing here?
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1
network={
        ssid="mynetwork"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        psk=********************************
        priority=2
        }
 
if i to remove
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

$ sudo wpa_supplicant -Dndis -iwlan0 -c/etc/wpa_supplicant.conf

Code:
CTRL-EVENT-SCAN-RESULTS
Trying to associate with xx:xx:xx:xx:xx:xx (SSID='myssid' freq=2412 MHz)
Associated with xx:xx:xx:xx:xx:xx
Write failed: Software caused connection abort
-at this point ssh connection drops to server and kernel panic on dmesg...
 
hard to get panic message if keyboard/mouse down and reboot kicks in almost immediately.
similar to this image of kernel - but that's not my picture - i will come back from work and update with exact picture of kernel
C.JPG
 
Sorry for the wait, just got back from work - here is kernel panic that i get... Thank you much !!!
Code:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x4
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc4e30868
stack pointer		= 0x28:0xe6723c04
frame pointer		= 0x28:0xe6723c18
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1518 (Windows Workitem 3)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 6h8m10s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort
 
This sounds promising. While I was able to load the ndis modules bcm43xx54.cat.ko, bcmwl564_sys.ko and set up and interface and association, my system would freeze on dhclient wlan0.

So I thought I'd try compiling the bwn modules... until I hit:

Code:
[root@machine /home/bwn/net/bwn-firmware-kmod]# kldload if_bwn
kldload: can't load if_bwn: Exec format error

Any ideas on how to fix this?
 
to get ur card working follow this...

1) Install the siba driver
go to:

http://svn.freebsd.org/base/head/sys/dev/siba/

pick the the files there and put them in /usr/src/sys/dev/siba <- must create
it !

then go to:
http://svn.freebsd.org/base/head/sys/modules/siba_bwn/
pick the Makefile and put in /usr/src/sys/modules/siba_bwn <- must create too.

then:
Code:
cd /usr/src/sys/modules/siba_bwn
make && make install

2) Install the bwn driver
Similar to 1), go to:

http://svn.freebsd.org/base/head/sys/dev/bwn/

pick the three files there and put them in /usr/src/sys/dev/bwn <- must create
it !

then go to:
http://svn.freebsd.org/base/head/sys/modules/bwn/

pick the Makefile and put in /usr/src/sys/modules/bwn <- must create too

then:
Code:
cd /usr/src/sys/modules/bwn
make && make install

3) Install bwn firmware:
Code:
cd /usr/ports/net/bwn-firmware-kmod && make install clean

4)Add the following to /etc/rc.conf:
Code:
network_interfaces="AUTO"
wpa_supplicant_enable="YES"
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

5)and /boot/loader.conf:
Code:
if_bwn_load="YES"
bwn_v4_lp_ucode_load="YES"
Note that, depending on your card, you may have to use the non-lp module bwn_v4_ucode_load="YES", but not both.

Now reboot and you should be online.
 
@unsobill: Umm, nope. That’s actually no longer the way to do it. Instead, just csup a recent 8-STABLE and recompile kernel and world.
 
Back
Top