Hello,

I'm experiencing some inconsistencies with bwi driver. I just did a fresh
new -current install from snapshots, downloaded firmware following
instructions from bwi(4) man page and successfully associated card to my
wireless router (debug logs below). Card seems to keep the connection for
only a few seconds and then immediately becomes unresponsive, sometimes it
is unresponsive right from the start - it might again show some temporary,
short response randomly after re-associating. I wonder if this has something
to do with my card (ASUS laptop, more details below) as bwi(4) man page
mentions that some chips are incorrectly calibrated. After doing some search
on the net I discovered that some people with Apple laptops also seem to
have the same issue. I'd be very grateful guys if you could drop me some
suggestion how to track this or perhaps some thoughts about a possible
solution as I'm currently trying to learn more about internals and would be
glad to give some help or even contribution as well. Thanks!

lspci -v:
------------------------------------------------------------------------------
...
 0:9:0: Broadcom BCM4318
        0x0000: Vendor ID: 14e4 Product ID: 4318
        0x0004: Command: 0106 Status ID: 0000
        0x0008: Class: 02 Subclass: 80 Interface: 00 Revision: 02
        0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size:
00
        0x0010: BAR mem 32bit addr: 0xfebfa000/0x00002000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1043 Product ID: 120f
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
...

Driver messages with 'debug' enabled. Here I'm basically doing: ifconfig
bwi0 nwid XXXX wpakey XXXX debug; ifconfig bwi0 up; dhclient bwi0. Most of
the time dhclient gets the IP but connection lasts for a few moments and
packets just seem to get "lost". After it becomes unresponsive I'm starting
to get these lines:

..
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 19 mode 11g
..
(many more with different 'rssi' and addresses)

All driver messages from dmesg:
------------------------------------------------------------------------------
bwi0: begin active scan
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 1 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: received beacon from 64:87:d7:8c:6f:7d rssi 23 mode 11g
bwi0: received beacon from 64:87:d7:8c:6f:7d rssi 21 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 2 mode 11g
bwi0: received beacon from 64:87:d7:8c:6f:7d rssi 21 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 3 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 25 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 4 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 38 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 5 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 40 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 39 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 41 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 6 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 41 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 7 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 41 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 41 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 39 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 8 mode 11g
bwi0: received beacon from 00:22:33:eb:42:f2 rssi 39 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 9 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 28 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 10 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 30 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 11 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 32 mode 11g
bwi0: received beacon from 00:22:33:2a:58:b3 rssi 21 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 32 mode 11g
bwi0: received beacon from 00:24:2b:81:61:e3 rssi 20 mode 11g
bwi0: received beacon from 00:22:33:2a:58:b3 rssi 23 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 12 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 30 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 29 mode 11g
bwi0: received beacon from 00:22:33:2a:58:b3 rssi 22 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 13 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 28 mode 11g
bwi0: received beacon from 00:22:33:ef:ef:a8 rssi 28 mode 11g
bwi0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 14 mode 11g
bwi0: end active scan
bwi0: sending auth to 00:22:33:eb:42:f2 on channel 6 mode 11g
bwi0: received auth from 00:22:33:eb:42:f2 rssi 44 mode 11g
bwi0: sending assoc_req to 00:22:33:eb:42:f2 on channel 6 mode 11g
bwi0: received assoc_resp from 00:22:33:eb:42:f2 rssi 44 mode 11g
bwi0: associated with 00:22:33:eb:42:f2 ssid "TEO-HOMENET" channel 6 start
36Mb long preamble short slot time
bwi0: received msg 1/4 of the 4-way handshake from 00:22:33:eb:42:f2
bwi0: sending msg 2/4 of the 4-way handshake to 00:22:33:eb:42:f2
bwi0: received msg 3/4 of the 4-way handshake from 00:22:33:eb:42:f2
bwi0: sending msg 4/4 of the 4-way handshake to 00:22:33:eb:42:f2
bwi0: received msg 1/2 of the group key handshake from 00:22:33:eb:42:f2
bwi0: sending msg 2/2 of the group key handshake to 00:22:33:eb:42:f2
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 18 mode 11g
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 18 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 43 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: received probe_resp from 00:22:33:eb:42:f2 rssi 42 mode 11g
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 19 mode 11g
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 19 mode 11g
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 19 mode 11g
bwi0: received probe_resp from c8:3a:35:07:7a:78 rssi 17 mode 11g

Dmesg:
------------------------------------------------------------------------------
OpenBSD 4.9-current (GENERIC) #36: Mon Jun  6 15:52:41 MDT 2011
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1072496640 (1022MB)
avail mem = 1029902336 (982MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfb8b0 (37 entries)
bios0: vendor American Megatrends Inc. version "207" date 08/29/2006
bios0: ASUSTeK Computer Inc. A6Kt
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) UAR2(S4) PCI0(S4) AC97(S4)
MC97(S4) MAC_(S4) CBS0(S3) P394(S3) MPCI(S3) EUSB(S3) USB_(S3) USB2(S3)
USB3(S3) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Turion(tm) 64 Mobile Technology MT-34, 1800.31 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 14, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, PSS
acpitz0 at acpi0: critical temperature 105 degC
acpipwrres0 at acpi0: GFAN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "A6-4222" serial   type LIon oem "ASUSTEK"
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID_
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: VGA_
cpu0: PowerNow! K8 1800 MHz: speeds: 1800 1600 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "SiS 756 PCI" rev 0x02
ppb0 at pci0 dev 1 function 0 "SiS PCI-PCI" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility X1600" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
pcib0 at pci0 dev 2 function 0 "SiS 964 ISA" rev 0x36
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 964: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHV2100AT PL>
wd0: 16-sector PIO, LBA, 95396MB, 195371568 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CD/DVDW TS-L632C, AS06> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
"SiS 7013 Modem" rev 0xa0 at pci0 dev 2 function 6 not configured
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: apic 1 int 18,
SiS7012 AC97
ac97: codec id 0x414c4720 (Avance Logic ALC650)
ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: apic 1 int 20,
version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: apic 1 int 21,
version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: apic 1 int 22,
version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "SiS EHCI root hub" rev 2.00/1.00 addr 1
bwi0 at pci0 dev 9 function 0 "Broadcom BCM4318" rev 0x02: apic 1 int 18,
address 00:17:31:11:f2:a7
cbb0 at pci0 dev 10 function 0 "Ricoh 5C476 CardBus" rev 0xb3: apic 1 int 17
"Ricoh 5C552 Firewire" rev 0x08 at pci0 dev 10 function 1 not configured
sdhc0 at pci0 dev 10 function 2 "Ricoh 5C822 SD/MMC" rev 0x17: apic 1 int 19
sdmmc0 at sdhc0
"Ricoh 5C592 Memory Stick" rev 0x08 at pci0 dev 10 function 3 not configured
re0 at pci0 dev 11 function 0 "Realtek 8169" rev 0x10: RTL8169/8110SB
(0x1000), apic 1 int 19, address 00:17:31:01:59:e2
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pchb1 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "SiS OHCI root hub" rev 1.00/1.00 addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x40
pcmcia0 at cardslot0
mtrr: Pentium Pro MTRR support
uaudio0 at uhub0 port 4 configuration 1 interface 1 "Syntek Semicon. USB2.0
Video" rev 2.00/0.01 addr 2
uaudio0: audio rev 1.00, 2 mixer controls
audio1 at uaudio0
ugen0 at uhub0 port 4 configuration 1 "Syntek Semicon. USB2.0 Video" rev
2.00/0.01 addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (ac86b2915e060b56.a) swap on wd0b dump on wd0b

Reply via email to