Patch to Broadcom 802.11 Linux STA driver for Kernel 2.6.27

Update 2009-01-04: As Jose mentioned, the latest driver (ver. 5.10.27.12) no longer needs this patch!

If you have problem to compile Broadcom 802.11 Linux STA driver (version 5.10.27.6) on Kernel 2.6.27 and get error message like the following:

/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c: In function ‘wl_iw_get_scan’:
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:934: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:934: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:934: warning: passing argument 4 of ‘iwe_stream_add_event’ makes pointer from integer without a cast
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:934: error: too few arguments to function ‘iwe_stream_add_event’
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:939: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:939: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:939: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
/home/ye/downloads/bcm4328/hybrid_wl/src/wl/sys/wl_iw.c:939: error: too few arguments to function ‘iwe_stream_add_point’
...

Then you need to apply the patch: hybrid_wl-5.10.27.6_patch-2.6.27

How to apply the patch:

  1. Download the STA driver and the patch.
  2. Extract the STA driver and switch to the root of source tree (where Makefile is located).
  3. patch -p1 -E < path_to_patch/hybrid_wl_5.10.27.6_patch-2.6.27
This entry was posted in Troubleshooting and tagged , , , , . Bookmark the permalink.

8 Responses to Patch to Broadcom 802.11 Linux STA driver for Kernel 2.6.27

  1. UNF says:

    I have this exact problem … but do not know how to apply the patch … can you explain in noobese?

  2. jaux says:

    I have this exact problem … but do not know how to apply the patch … can you explain in noobese?

    @UNF: I’ve updated the article, check it out.

  3. UNF says:

    thanks jaux, that did the trick

    also, for anyone else out there, this page has other useful versions of the patch … http://fedoraforum.org/forum/showthread.php?t=201366

  4. jaux says:

    @UNF: Thank you for this information, I found the vlan_mode patch is also very useful.

  5. Chris says:

    I’ve made tarballs of the patched sources and made the patches available at

    http://www.cenolan.com/fedora9 (tarballs and patches are not fedora specific!)

    Also see this guide to installing the Broadcom 802.11 STA driver in Fedora 9:

    http://www.cenolan.com/2008/10/installing-the-broadcom-sta-driver-fedora-9/

    Enjoy!

  6. jose luis says:

    hi. my problem is:

    Gentoo wl2 # patch -p1 -E < hybrid_wl-5.10.27.6_patch-2.6.27
    patching file src/wl/sys/wl_iw.c
    Hunk #1 FAILED at 931.
    Hunk #2 FAILED at 944.
    Hunk #3 FAILED at 952.
    Hunk #4 FAILED at 970.
    Hunk #5 FAILED at 978.
    Hunk #6 FAILED at 989.
    Hunk #7 FAILED at 1003.
    Hunk #8 FAILED at 1012.
    8 out of 8 hunks FAILED — saving rejects to file src/wl/sys/wl_iw.c.rej
    Gentoo wl2 #

    :(… my kernel is 2.6.27-r7 and the driver is hybrid-portsrc-x86-32_5_10_27_11

    help. please

    sorry, my English is bad! I’m from Mexico xD

  7. jaux says:

    Hi Jose, my patch is for 5.10.27.6, please visit http://www.cenolan.com/broadcom-wl/ for the patches to the latest driver.

  8. Daniel Neis says:

    hello…
    thanks for the patch.
    i think it’s good news Broadcom have updated the driver.
    now it compiles ok at 2.6.27 and 2.6.28
    =oD

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>