Broadcom WiFi

This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Broadcom WiFi

Postby lissyara » 26 Feb 2009, 07:00

hi!
Year or more ago, Sam Leffler porting bwi driver to FreeBSD.
But, it was not commited to source tree, because some errors appeared.
Now, we have work driver for old BroadCom WiFi devices. It work for i384/amd64, 8-CURRENT/7.x
http://paradox.lissyara.su/bwi.02c.tar.bz2 - soucre code
=======
I think, it would be good if code is commited to source tree.
lissyara
Junior Member
 
Posts: 30
Joined: 17 Nov 2008, 04:02
Location: USSR

Postby lme@ » 26 Feb 2009, 08:10

Could you please send this as a PR and tell others about it on current@freebsd.org mailing list?

Thanks a lot for the driver, btw! :)
User avatar
lme@
 
Posts: 611
Joined: 08 Oct 2007, 19:42
Location: Düsseldorf, Germany

Postby alie » 26 Feb 2009, 11:26

can i use it for Broadcom 4322AGN ?
[color="DarkRed"]www.alielee.com[/color]
FreeBSD FreeBSD 9.1-PRERELEASE #0 r243320 /usr/obj/usr/src/sys/EZYCLIE amd64
User avatar
alie
Member
 
Posts: 561
Joined: 11 Dec 2008, 08:13
Location: Somewhere in the world

Postby lissyara » 26 Feb 2009, 11:46

You can test it with this card.
It work for me with BCM4306, and not work for me with BCM4312 =(
Summary: if adapter PCI-E - it not work, If PCI/PCMCI - work. (maybe =))
Some instructions - http://forum.lissyara.su/viewtopic.php?f=5&t=10250 (russian, but - listings and instructions in english)
In first post - link for 7.x driver
======
2 lme@
It modifying by paradox, not me. Thanks to him =)
I send pr, later, trough 5-6 hours.
lissyara
Junior Member
 
Posts: 30
Joined: 17 Nov 2008, 04:02
Location: USSR

Postby lissyara » 26 Feb 2009, 19:59

In perforce is a working driver.
All that needs to be done to change one line in one file - bwimac.c
Code: Select all
-/* MAC */static const uint8_t bwi_sup_macrev[] = { 2, 4, 5, 6, 7, 9, 10, 12 };
+/* MAC */static const uint8_t bwi_sup_macrev[] = { 2, 4, 5 };

This remove all the new revision of the processor cards.

For new revision cards need to write a completely new driver.
lissyara
Junior Member
 
Posts: 30
Joined: 17 Nov 2008, 04:02
Location: USSR

Broadcom Wifi

Postby nikobordx » 02 Mar 2009, 13:54

Hi,
I've tried this driver, but when i load if_bwi.ko, i have this message:

Code: Select all
bwi0: <Broadcom BCM4311 802.11 Wireless Lan> irq 18 at device 0.0 on pci6
bwi0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
bwi0: cannot map register space
device_attach: bwi0 attach returned 6


Some people know what is the problem ?
I'm under FreeBSD-8 Current of today.

Thanks in advance.
Niko.
nikobordx
Member
 
Posts: 107
Joined: 02 Mar 2009, 13:49
Location: Bordeaux, France

Postby paradox » 02 Mar 2009, 17:50

try boot without acpi support

it's problem of acpi allocator in freebsd
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Broadcom Wifi

Postby nikobordx » 02 Mar 2009, 18:16

Hi paradox,
Thanks for your response.

But when i boot with or without acpi, i have the same error !
Another idea to try ?

Niko.
nikobordx
Member
 
Posts: 107
Joined: 02 Mar 2009, 13:49
Location: Bordeaux, France

Postby paradox » 02 Mar 2009, 18:32

try check asl for errors and fixx it

my be some help you this link
http://www.freebsd.org/doc/en/books/handbook/acpi-debug.html

which hardware are you use?
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Broadcom Wifi

Postby nikobordx » 02 Mar 2009, 19:02

This my card:

Code: Select all
none1@pci0:6:0:0:   class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'Dell Wireless 1390 WLAN Mini-PCI Card'
    class      = network


Acpi seem to be working fine, but i tried to check asl for error tomorrow.

Niko.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

nikobordx
Member
 
Posts: 107
Joined: 02 Mar 2009, 13:49
Location: Bordeaux, France

Postby paradox » 02 Mar 2009, 19:20

show me your
pciconf -lvbc
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby nikobordx » 02 Mar 2009, 19:38

This is the pciconf -lvbc:

Code: Select all
hostb0@pci0:0:0:0:   class=0x060000 card=0x30a5103c chip=0x27a08086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
    cap 09[e0] = vendor (length 9) Intel cap 5 version 1
vgapci0@pci0:0:2:0:   class=0x030000 card=0x30a5103c chip=0x27a28086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 945GM/GU Express Integrated Graphics Controller'
    class      = display
    subclass   = VGA
    bar   [10] = type Memory, range 32, base 0xd0200000, size 524288, enabled
    bar   [14] = type I/O Port, range 32, base 0x1800, size  8, enabled
    bar   [18] = type Prefetchable Memory, range 32, base 0xc0000000, size 268435456, enabled
    bar   [1c] = type Memory, range 32, base 0xd0300000, size 262144, enabled
    cap 05[90] = MSI supports 1 message
    cap 01[d0] = powerspec 2  supports D0 D3  current D0
vgapci1@pci0:0:2:1:   class=0x038000 card=0x30a5103c chip=0x27a68086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 945GM/GU Express Integrated Graphics Controller'
    class      = display
    bar   [10] = type Memory, range 32, base 0xd0280000, size 524288, enabled
    cap 01[d0] = powerspec 2  supports D0 D3  current D0
hdac0@pci0:0:27:0:   class=0x040300 card=0x30a5103c chip=0x27d88086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) High Definition Audio'
    class      = multimedia
    subclass   = HDA
    bar   [10] = type Memory, range 64, base 0xd0340000, size 16384, enabled
    cap 01[50] = powerspec 2  supports D0 D3  current D0
    cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[70] = PCI-Express 1 type 0
pcib1@pci0:0:28:0:   class=0x060400 card=0x30a5103c chip=0x27d08086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) PCIe Root Port'
    class      = bridge
    subclass   = PCI-PCI
    cap 10[40] = PCI-Express 1 root port
    cap 05[80] = MSI supports 1 message
    cap 0d[90] = PCI Bridge card=0x30a5103c
    cap 01[a0] = powerspec 2  supports D0 D3  current D0
pcib2@pci0:0:28:2:   class=0x060400 card=0x30a5103c chip=0x27d48086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) PCIe Root Port'
    class      = bridge
    subclass   = PCI-PCI
    cap 10[40] = PCI-Express 1 root port
    cap 05[80] = MSI supports 1 message
    cap 0d[90] = PCI Bridge card=0x30a5103c
    cap 01[a0] = powerspec 2  supports D0 D3  current D0
uhci0@pci0:0:29:0:   class=0x0c0300 card=0x30a5103c chip=0x27c88086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0x1820, size 32, enabled
uhci1@pci0:0:29:1:   class=0x0c0300 card=0x30a5103c chip=0x27c98086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0x1840, size 32, enabled
uhci2@pci0:0:29:2:   class=0x0c0300 card=0x30a5103c chip=0x27ca8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0x1860, size 32, enabled
ehci0@pci0:0:29:7:   class=0x0c0320 card=0x30a5103c chip=0x27cc8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [10] = type Memory, range 32, base 0xd0544000, size 1024, enabled
    cap 01[50] = powerspec 2  supports D0 D3  current D0
    cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
pcib3@pci0:0:30:0:   class=0x060401 card=0x30a5103c chip=0x24488086 rev=0xe1 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
    cap 0d[50] = PCI Bridge card=0x30a5103c
isab0@pci0:0:31:0:   class=0x060100 card=0x30a5103c chip=0x27b98086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801GBM (ICH7-M) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
    cap 09[e0] = vendor (length 12) Intel cap 1 version 0
       features: Quick Resume, SATA RAID-5, Mobile, 6 PCI-e x1 slots, SATA RAID-0/1/10
atapci0@pci0:0:31:1:   class=0x01018a card=0x30a5103c chip=0x27df8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) Ultra ATA Storage Controller'
    class      = mass storage
    subclass   = ATA
    bar   [10] = type I/O Port, range 32, base 0x1f0, size  8, enabled
    bar   [14] = type I/O Port, range 32, base 0x3f4, size  1, enabled
    bar   [18] = type I/O Port, range 32, base 0x170, size  8, enabled
    bar   [1c] = type I/O Port, range 32, base 0x374, size  1, enabled
    bar   [20] = type I/O Port, range 32, base 0x1810, size 16, enabled
atapci1@pci0:0:31:2:   class=0x010601 card=0x30a5103c chip=0x27c58086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
    class      = mass storage
    subclass   = SATA
    bar   [10] = type I/O Port, range 32, base 0x18b0, size  8, enabled
    bar   [14] = type I/O Port, range 32, base 0x18a4, size  4, enabled
    bar   [18] = type I/O Port, range 32, base 0x18a8, size  8, enabled
    bar   [1c] = type I/O Port, range 32, base 0x18a0, size  4, enabled
    bar   [20] = type I/O Port, range 32, base 0x1890, size 16, enabled
    bar   [24] = type Memory, range 32, base 0xd0544400, size 1024, enabled
    cap 05[80] = MSI supports 1 message
    cap 01[70] = powerspec 2  supports D0 D3  current D0
none0@pci0:0:31:3:   class=0x0c0500 card=0x30a5103c chip=0x27da8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
    bar   [20] = type I/O Port, range 32, base 0x18c0, size 32, enabled
none1@pci0:6:0:0:   class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'Dell Wireless 1390 WLAN Mini-PCI Card'
    class      = network
    cap 01[40] = powerspec 2  supports D0 D1 D2 D3  current D0
    cap 05[58] = MSI supports 1 message
    cap 10[d0] = PCI-Express 1 legacy endpoint
rl0@pci0:8:8:0:   class=0x020000 card=0x30a5103c chip=0x813910ec rev=0x10 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
    class      = network
    subclass   = ethernet
    bar   [10] = type I/O Port, range 32, base 0x2000, size 256, enabled
    bar   [14] = type Memory, range 32, base 0xd0100000, size 256, enabled
    cap 01[50] = powerspec 2  supports D0 D1 D2 D3  current D0


Niko
nikobordx
Member
 
Posts: 107
Joined: 02 Mar 2009, 13:49
Location: Bordeaux, France

Postby Gusi » 02 Mar 2009, 19:57

Hi there,

a few time ago I tried bwi02.tar.bz2. I worked quite well, but from time to time I found it loosed link and had to reboot the laptop (restarting the wpa supplicant always freezed the machine). Don't know the source of the problem (no trace of the problem in /var/log/messages). My wireless is :

Code: Select all
none1@pci0:12:0:0:   class=0x028000 card=0x00071028 chip=0x431214e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'BCM4310 broadcom wireless 1490 (dell)'
    class      = network



Also note that the version posted bwi02c.tar.bz2 doesn't compile on STABLE, looks like it is for CURRENT. It complains on net80211/ieee80211_phy.h, which can't be found on /usr/src/sys. So if I'm right, it should be noted if someone sends a pr.

A presto
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby paradox » 02 Mar 2009, 19:57

Code: Select all
none1@pci0:6:0:0: class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Dell Wireless 1390 WLAN Mini-PCI Card'
class = network
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[58] = MSI supports 1 message
cap 10[d0] = PCI-Express 1 legacy endpoint

bwi0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).


seems like good
but res [10] it's PCI-E resource
my be the problem at this point
i thinking about it within few days
and you to check asl too
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby paradox » 02 Mar 2009, 20:11

>Gusi
show me your
dmesg after kldload bwi.ko && ifconfig bwi0 up

some new BCM chip rev older then 5 need new a specification for driver
as new firmware, rewrite new bwi code, and so
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby Gusi » 03 Mar 2009, 15:16

Hi Paradox,

did the following :

kldload /boot/kernel.old/bwi_v3.ko && kldload /boot/kernel.old/if_bwi.ko && ifconfig bwi0 up

Dmesg showded me got the following :

********************
Code: Select all
bwi0: <Broadcom BCM4312 802.11 Wireless Lan> mem 0xf1ffc000-0xf1ffffff irq 17 at device 0.0 on pci12
bwi0: [ITHREAD]
bwi0: regwin: chipcommon (0x800), rev 17, vendor 0x4243
bwi0: BBP: id 0x4311, rev 0x1, pkg 0
bwi0: nregwin 4, cap 0x0064000d
bwi0: regwin: 802.11 MAC (0x812), rev 10, vendor 0x4243
bwi0: MAC: rev 10
bwi0: regwin: usb 1.1 host (0x817), rev 3, vendor 0x4243
bwi0: regwin: pci express (0x820), rev 1, vendor 0x4243
bwi0: clksrc CS_OSC
bwi0: clkfreq min 990000, max 1010000
bwi0: power on delay 3
bwi0: bus rev 1
bwi0: pci express is enabled
bwi0: card flags 0x4a49
bwi0: 0th led, act 2, lowact 0
bwi0: 1th led, act 3, lowact 1
bwi0: 2th led, act 4, lowact 0
bwi0: 3th led, act 0, lowact 0
bwi0: 802.11 MAC was already disabled
bwi0: PHY is linked
bwi0: PHY: type 2, rev 8, ver 4
bwi0: PHY: 802.11G attach
bwi0: RF: manu 0x17f, type 0x2050, rev 2
bwi0: bus rev 1
bwi0: PHY is linked
bwi0: 32bit bus space
bwi0: max txpower from sprom: 74 dBm
bwi0: ant gain 8 dBm
bwi0: region/domain max txpower 76 dBm
bwi0: max txpower 74 dBm
bwi0: sprom idle tssi: 0x783e
bwi0: TSSI-TX power map:
83 83 82 82 82 82 81 81
80 80 79 79 79 78 78 77
77 76 75 75 74 74 73 73
72 72 71 70 69 69 68 67
66 65 64 64 62 61 60 59
58 57 55 54 52 51 49 48
46 45 42 41 38 36 33 31
28 25 22 19 15 11 6 2
bwi0: idle tssi0: 62
bwi0: bus rev 1
bwi0: locale: 0
bwi0: WARNING: using obsoleted if_watchdog interface
bwi0: Ethernet address: 00:1c:26:66:26:10
bwi0: bwi_init
bwi0: bwi_stop
bwi0: bbp atten: 0, rf atten: 3, ctrl1: 2, ctrl2: 65535
bwi0: bus rev 1
bwi0: 802.11 MAC is disabled
bwi0: 802.11 MAC was already disabled
bwi0: PHY is linked
bwi0: firmware rev 0x0127, patch level 0x000e
bwi0: IV count 317
bwi0: IV count 31
bwi0: lo gain: 13, rx gain: 48
bwi0: RF calibration value: 0x003e
bwi0: base tssi 50
bwi0: bwi_updateslot
bwi0: bwi_updateslot
bwi0: tssi0 19, tssi1 19, tssi2 18, tssi3 24
bwi0: tssi avg 22
bwi0: current txpower 64
bwi0: rf atten adjust -2, bbp atten adjust 3
bwi0: link state changed to UP
bwi0: no DS tssi
bwi0: tssi0 6, tssi1 6, tssi2 6, tssi3 6
bwi0: tssi avg 8
bwi0: current txpower 74
bwi0: no need to adjust RF/BBP attenuation
bwi0: no DS tssi
bwi0: no OFDM tssi
bwi0: no DS tssi
bwi0: no OFDM tssi
bwi0: no DS tssi
bwi0: no OFDM tssi

********************

Got to insert the firmware first, otherwise it refuses to work. If you need something else, please let me know.

Greets,

Gus
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby paradox » 03 Mar 2009, 16:08

try this
paradox.lissyara.su/bwi.02.tar.bz2
i'am remove all mutex
my be its do some stability for driver

try
ifconfig bwi0 down && ifconfig bwi0 up
for a reboot bwi core
if have some problem again

so, yr
>bwi0: MAC: rev 10
is not stability for bwi and v3 formware
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby Gusi » 04 Mar 2009, 08:01

Hi Again,

paradox wrote:try
ifconfig bwi0 down && ifconfig bwi0 up
for a reboot bwi core
if have some problem again


Yesterday I tried what you suggested. I took me some time to associate to my AP which is a FreeBSD with hostapd+WPA2-TLS (in fact what took long was dhclient). After a few time I started to see some :

Mar 3 21:12:32 gusiport dhclient[26984]: send_packet: No buffer space available

Moreover I felt it a little bit slow. Maybe both problems are related ? Finally stopping wpa_supplicant didn't freeze or reboot the system anymore. If you need more information or do you want me to do something, let me know.

Greets and thanks,

Gus
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby paradox » 04 Mar 2009, 11:23

>Mar 3 21:12:32 gusiport dhclient[26984]: send_packet: No buffer space available

try increase the buffer

loader.conf
kern.maxusers="512"
kern.ipc.nmbclusters="2048"
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby Gusi » 04 Mar 2009, 20:27

Hi,

tried sysctl kern.ipc.nmbcluster and I discovered that it was greater than the value you suggested. Will try the values you gave, but I suspect they won't work better (maybe). I'll keep you informed anyway.

Do you want something else ?

Thanks again,

Gusi
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby paradox » 04 Apr 2009, 13:57

>Gusi
the small changes at bwi for phy_rev = 8
as example
bwi0: PHY: type 2, rev 8, ver 4

try test it
paradox.lissyara.su/bwi.03.tar.bz2
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby Gusi » 26 Apr 2009, 09:51

paradox wrote:>Gusi
the small changes at bwi for phy_rev = 8
as example

try test it
paradox.lissyara.su/bwi.03.tar.bz2


Sorry for the delay. I tried it in current (I left stable), but gave me errors in compile :

Code: Select all
if_bwi.c: In function 'bwi_attach':
if_bwi.c:400: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:401: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:402: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:403: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:406: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:418: error: too many arguments to function 'ieee80211_init_channels'
if_bwi.c:427: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c:432: error: too few arguments to function 'ieee80211_ifattach'
if_bwi.c:438: error: 'struct ieee80211com' has no member named 'ic_newstate'
if_bwi.c:439: error: 'struct ieee80211com' has no member named 'ic_newstate'
cc1: warnings being treated as errors
if_bwi.c:443: warning: assignment from incompatible pointer type
if_bwi.c:446: error: too many arguments to function 'ieee80211_media_init'
if_bwi.c:449: warning: passing argument 2 of 'ieee80211_amrr_init' from incompatible pointer type
if_bwi.c:449: error: too few arguments to function 'ieee80211_amrr_init'
if_bwi.c: In function 'bwi_init':
if_bwi.c:1100: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1100: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1103: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1140: error: 'struct ieee80211com' has no member named 'ic_roaming'
if_bwi.c:1141: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c:1143: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c: In function 'bwi_ioctl':
if_bwi.c:1195: warning: passing argument 1 of 'ieee80211_ioctl' from incompatible pointer type
if_bwi.c: In function 'bwi_start':
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1239: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c:1255: warning: passing argument 1 of 'ieee80211_find_txnode' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 1 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 2 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 3 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1274: error: 'struct ieee80211com' has no member named 'ic_rawbpf'
if_bwi.c:1275: error: 'struct ieee80211com' has no member named 'ic_rawbpf'
if_bwi.c:1279: warning: passing argument 1 of 'ieee80211_crypto_encap' from incompatible pointer type
if_bwi.c:1279: warning: passing argument 2 of 'ieee80211_crypto_encap' from incompatible pointer type
if_bwi.c:1279: error: too many arguments to function 'ieee80211_crypto_encap'
if_bwi.c: In function 'bwi_stop':
if_bwi.c:1345: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c: In function 'bwi_newstate':
if_bwi.c:1547: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c:1549: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c:1565: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c: In function 'bwi_newassoc':
if_bwi.c:1601: error: too few arguments to function 'ieee80211_amrr_node_init'
if_bwi.c: In function 'bwi_iter_func':
if_bwi.c:1616: warning: passing argument 1 of 'ieee80211_amrr_choose' from incompatible pointer type
if_bwi.c:1616: warning: passing argument 2 of 'ieee80211_amrr_choose' from incompatible pointer type
if_bwi.c:1616: error: too many arguments to function 'ieee80211_amrr_choose'
if_bwi.c: In function 'bwi_amrr_timeout':
if_bwi.c:1627: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c: In function 'bwi_media_change':
if_bwi.c:1640: warning: unused variable 'sc'
if_bwi.c:2522:45: error: macro "ieee80211_input" passed 6 arguments, but takes just 5
if_bwi.c: In function 'bwi_rxeof':
if_bwi.c:2521: error: 'ieee80211_input' undeclared (first use in this function)
if_bwi.c:2521: error: (Each undeclared identifier is reported only once
if_bwi.c:2521: error: for each function it appears in.)
if_bwi.c: In function 'bwi_encap':
if_bwi.c:2819: error: 'struct ieee80211com' has no member named 'ic_mcast_rate'
if_bwi.c:2820: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c:2825: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c: In function 'bwi_set_bssid':
if_bwi.c:3426: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c: In function 'bwi_calibrate':
if_bwi.c:3468: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c: At top level:
if_bwi.c:3650: error: conflicting types for 'ieee80211_plcp2rate'
@/net80211/ieee80211_phy.h:143: error: previous declaration of 'ieee80211_plcp2rate' was here


Tried some of the variants (bwi.03[c-e]) but none of them worked. bwi.03c gave me errors in compile (I think the same problem I had with bwi.03). bwi.03d or bwi.03e freezed the system (can remember which one)

Will try bwi.02c, some claimed it compiled in current.

Greets,

Gusi
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby Gusi » 27 Apr 2009, 11:28

Gusi wrote: Will try bwi.02c, some claimed it compiled in current.

Greets,

Gusi


bwi.02c doesn't compile with i386/current (csuped today). Both problems are related, struct ieee80211com doesn't have a field called ic_myaddr.

Code: Select all
if_bwi.c:521: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:522: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:523: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:524: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:527: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:553: error: too few arguments to function 'ieee80211_ifattach'
if_bwi.c: In function 'bwi_init_statechg':
if_bwi.c:1303: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1303: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1306: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c: In function 'bwi_start_locked':
if_bwi.c:1446: warning: passing argument 1 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1446: warning: passing argument 2 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1446: error: too few arguments to function 'ieee80211_encap'
if_bwi.c: In function 'bwi_init_tx_ring64':
if_bwi.c:2543: warning: right shift count >= width of type
if_bwi.c:2544: warning: right shift count >= width of type
if_bwi.c: In function 'bwi_init_rxdesc_ring64':
if_bwi.c:2565: warning: right shift count >= width of type
if_bwi.c:2566: warning: right shift count >= width of type
if_bwi.c: In function 'bwi_set_bssid':
if_bwi.c:3975: error: 'struct ieee80211com' has no member named 'ic_myaddr'


Greets,

Gus
Gusi
Junior Member
 
Posts: 21
Joined: 24 Feb 2009, 08:50

Postby paradox » 01 May 2009, 12:37

at April 4th, 2009, 15:57 its works

but since the some moment Sam to change a macaddr struct ....
so i have new build with some the broadcom sources from wireless router as asus WL* or LinkSys *
but provide it only for private users
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Postby paradox » 07 May 2009, 19:19

bwi already at current
but have some misstake at source code
im fixx it
and make a patch paradox.lissyara.su/bwi.diff
paradox
Junior Member
 
Posts: 97
Joined: 16 Nov 2008, 18:52

Next

Return to Mobile Computing

Who is online

Users browsing this forum: No registered users and 0 guests