Broadcom BCM 4312 connection is suspended

Help with setting up network cards, including WiFi cards.
Post Reply
krzysiekd
Posts: 3
Joined: Mon Jan 02, 2017 9:04 am

Broadcom BCM 4312 connection is suspended

Post by krzysiekd »

This is my first post.
English translation google.
The connection is and hangs.
sudo ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=47 time=42.788 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=47 time=39.528 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=47 time=39.859 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=47 time=37.558 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=47 time=38.055 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=47 time=38.300 ms
64 bytes from 8.8.8.8: icmp_seq=18 ttl=47 time=37.756 ms
64 bytes from 8.8.8.8: icmp_seq=23 ttl=47 time=37.958 ms
64 bytes from 8.8.8.8: icmp_seq=26 ttl=47 time=38.190 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=47 time=38.224 ms
64 bytes from 8.8.8.8: icmp_seq=35 ttl=47 time=38.100 ms
64 bytes from 8.8.8.8: icmp_seq=37 ttl=47 time=37.852 ms
^C
--- 8.8.8.8 ping statistics ---
61 packets transmitted, 12 packets received, 80.3% packet loss
round-trip min/avg/max/stddev = 37.558/38.681/42.788/1.403 ms
netstat -r
Routing tables

Internet:
Destination Gateway Flags Netif Expire
default 192.168.1.100 UGS wlan0
localhost link#3 UH lo0
192.168.1.0 link#4 U wlan0
192.168.1.106 link#4 UHS lo0

Internet6:
Destination Gateway Flags Netif Expire
:: localhost UGRS lo0
localhost link#3 UH lo0
::ffff:0.0.0.0 localhost UGRS lo0
fe80:: localhost UGRS lo0
fe80::%lo0 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff01::%lo0 localhost U lo0
ff02:: localhost UGRS lo0
ff02::%lo0 localhost U lo0
ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:1e:ec:53:98:92
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (none)
status: no carrier
bwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:1f:e2:86:28:c3
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:1f:e2:86:28:c3
inet 192.168.1.106 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid siec channel 6 (2437 MHz 11g) bssid 18:d0:71:0e:e2:be
regdomain ETSI country PL authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
protmode CTS wme roaming MANUAL
kldstat
Id Refs Address Size Name
1 69 0xffffffff80200000 17bc718 kernel
2 1 0xffffffff819bd000 215a8 geom_eli.ko
3 2 0xffffffff819df000 352d0 crypto.ko
4 1 0xffffffff81a15000 244b8 geom_journal.ko
5 1 0xffffffff81a3a000 23fb0 geom_mirror.ko
6 1 0xffffffff81a5e000 4ac0 geom_uzip.ko
7 1 0xffffffff81a63000 9af10 linux.ko
8 4 0xffffffff81afe000 c128 linux_common.ko
9 1 0xffffffff81b0b000 485a8 if_bwn.ko
10 2 0xffffffff81b54000 d320 siba_bwn.ko
11 1 0xffffffff81b62000 a158 cuse4bsd.ko
12 1 0xffffffff81b6d000 1a2b8 fuse.ko
13 1 0xffffffff81b88000 2de28 bwn_v4_lp_ucode.ko
14 1 0xffffffff81c21000 9faf linprocfs.ko
15 1 0xffffffff81c2b000 37ae5 linux64.ko
16 1 0xffffffff81c63000 cad6 iscsi.ko
17 1 0xffffffff81c70000 7874d i915kms.ko
18 1 0xffffffff81ce9000 5232a drm2.ko
19 4 0xffffffff81d3c000 2404 iicbus.ko
20 1 0xffffffff81d3f000 1c5e iic.ko
21 1 0xffffffff81d41000 1e2b iicbb.ko
# /etc/wpa_supplicant.conf written by wifimgr(8)

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0 #the group thats used by default (root)

network={
ssid="siec"
bssid=18:d0:71:0e:e2:be
key_mgmt=WPA-PSK
proto=RSN
psk="xxxxxxxg"
}
Thank you for your help!
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Broadcom BCM 4312 connection is suspended

Post by ASX »

Hello and welcome!

from bwn man page:
CAVEATS
Some LP PHY devices have DMA operation problems that in that case try to
use PIO mode.
so, try to use PIO mode:
LOADER TUNABLES
Tunables can be set at the loader(8) prompt before booting the kernel or
stored in loader.conf(5).

hw.bwn.msi_disable
This tunable disables MSI support on the hardware. The default
value is 0.

hw.bwn.usedma
This tunable enables DMA operations on the hardware. If the
value is 0, PIO mode would be used. The default value is 1.
add this line to /boot/loader.conf:

Code: Select all

hw.bwn.usedma=0
I guess that to make the setting effective you also need to load the if_bwn module and (the dependents modules) from loader.conf:

Code: Select all

9 1 0xffffffff81b0b000 485a8 if_bwn.ko
10 2 0xffffffff81b54000 d320 siba_bwn.ko
13 1 0xffffffff81b88000 2de28 bwn_v4_lp_ucode.ko
loading modules from /etc/rc.conf is faster and take care of dependencies automatically, loading modules from /boot/loader.conf is slower and doesn't pull in dependecmies automatically, but in your case it might be required.
krzysiekd
Posts: 3
Joined: Mon Jan 02, 2017 9:04 am

Re: Broadcom BCM 4312 connection is suspended

Post by krzysiekd »

Hello and thank you for your help!
loader,conf
vfs.mountroot.timeout="10"
autoboot_delay="10"
kern.vty=vt
geom_uzip_load="YES"
loader_brand="gbsd"
loader_logo="gbsd"
geom_mirror_load="YES"
geom_journal_load="YES"
geom_eli_load="YES"
linux_load="YES"
# hint.acpi.0.disabled="1"


cuse4bsd_load="YES"
fuse_load="YES"

if_bwn_load="YES"
siba_bwn_load="YES"
bwn_v4_lp_ucode_load="YES"
hw.bwn.usedma="0"
PIO
dmesg |grep bwn
siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0x64100000-0x64103fff irq 19 at device 0.0 on pci6
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f ver 0x2062 rev 2)
bwn0: PIO
bwn0: Using 1 MSI messages
bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
DMA
dmesg |grep bwn
siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0x64100000-0x64103fff irq 19 at device 0.0 on pci6
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f ver 0x2062 rev 2)
bwn0: DMA (64 bits)
bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
bwn0: RX decryption attempted (old 0 keyidx 0x1)
No internet.
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Broadcom BCM 4312 connection is suspended

Post by ASX »

Revert back the PIO mode changes, or leave it and try the following too:

https://forums.freebsd.org/threads/41521/

Reading the above thread it seems that BCM4312 only work in 11b mode and NOT in 11g, give it a try.
krzysiekd
Posts: 3
Joined: Mon Jan 02, 2017 9:04 am

Re: Broadcom BCM 4312 connection is suspended

Post by krzysiekd »

It helped add to the rc.conf
ifconfig_wlan0="WPA SYNCDHCP mode 11b"
Internet works well thanks for your help!
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Broadcom BCM 4312 connection is suspended

Post by ASX »

krzysiekd wrote:It helped add to the rc.conf
ifconfig_wlan0="WPA SYNCDHCP mode 11b"
Internet works well thanks for your help!
Great! :)
Post Reply