1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Broadcom WiFi

Discussion in 'Mobile Computing' started by lissyara, Feb 26, 2009.

  1. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    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.
     
  2. lme@

    lme@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    628
    Thanks Received:
    204
    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! :)
     
  3. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    can i use it for Broadcom 4322AGN ?
     
  4. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    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.
     
    daelious thanks for this.
  5. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    In perforce is a working driver.
    All that needs to be done to change one line in one file - bwimac.c
    Code:
    -/* 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.
     
  6. nikobordx

    nikobordx New Member

    Messages:
    107
    Thanks Received:
    4
    Hi,
    I've tried this driver, but when i load if_bwi.ko, i have this message:

    Code:
    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.
     
  7. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    try boot without acpi support

    it's problem of acpi allocator in freebsd
     
    lissyara thanks for this.
  8. nikobordx

    nikobordx New Member

    Messages:
    107
    Thanks Received:
    4
    Hi paradox,
    Thanks for your response.

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

    Niko.
     
  9. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
  10. nikobordx

    nikobordx New Member

    Messages:
    107
    Thanks Received:
    4
    This my card:

    Code:
    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.
     

    Attached Files:

  11. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    show me your
    pciconf -lvbc
     
  12. nikobordx

    nikobordx New Member

    Messages:
    107
    Thanks Received:
    4
    This is the pciconf -lvbc:

    Code:
    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
     
  13. Gusi

    Gusi New Member

    Messages:
    21
    Thanks Received:
    1
    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:
    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
     
  14. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    Code:
    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
     
  15. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    >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
     
  16. Gusi

    Gusi New Member

    Messages:
    21
    Thanks Received:
    1
    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:
    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
     
  17. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    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
     
  18. Gusi

    Gusi New Member

    Messages:
    21
    Thanks Received:
    1
    Hi 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
     
  19. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    >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"
     
  20. Gusi

    Gusi New Member

    Messages:
    21
    Thanks Received:
    1
    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
     
  21. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    >Gusi
    the small changes at bwi for phy_rev = 8
    as example
    try test it
    paradox.lissyara.su/bwi.03.tar.bz2
     
  22. Gusi

    Gusi New Member

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

    Code:
    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
     
  23. Gusi

    Gusi New Member

    Messages:
    21
    Thanks Received:
    1
    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:
    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
     
  24. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    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
     
  25. paradox

    paradox New Member

    Messages:
    97
    Thanks Received:
    20
    bwi already at current
    but have some misstake at source code
    im fixx it
    and make a patch paradox.lissyara.su/bwi.diff