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

8 thoughts on “Patch to Broadcom 802.11 Linux STA driver for Kernel 2.6.27

  1. 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.

  2. 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

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>