Error compile wireles driver Broadcom from source : Wl-sta driver linux_kernel 3.10 & 3.11

amaulana8@memetmetel:~/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141> make ACPI=80211
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-3.11.6-4-obj/i386/default'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M]  /home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.o
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c: In function ‘wl_tkip_printstats’:
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3246:7: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
wl->tkip_bcast_data[idx]);
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3246:7: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3249:4: warning: passing argument 1 of ‘wl->tkipmodops->print_stats’ from incompatible pointer type [enabled by default]
wl->tkipmodops->print_stats(debug_buf, wl->tkip_ucast_data);
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3249:4: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c: In function ‘wl_reg_proc_entry’:
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3470:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3470:22: warning: assignment makes pointer from integer without a cast [enabled by default]
if ((wl->proc_entry = create_proc_entry(tmp, 0644, NULL)) == NULL) {
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3475:16: error: dereferencing pointer to incomplete type
wl->proc_entry->read_proc = wl_proc_read;
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3476:16: error: dereferencing pointer to incomplete type
wl->proc_entry->write_proc = wl_proc_write;
^
/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.c:3477:16: error: dereferencing pointer to incomplete type
wl->proc_entry->data = wl;
^
cc1: some warnings being treated as errors
make[4]: *** [/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141/src/wl/sys/wl_linux.o] Error 1
make[3]: *** [_module_/home/amaulana8/Data/wl-sta/hybrid-v35-nodebug-pcoem-6_30_223_141] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.11.6-4-obj/i386/default'
make: *** [all] Error 2

Get patch and solution here http://www.mindwerks.net/2013/10/wireless-bcm4312-with-the-3-10-and-3-11-kernels/

Advertisements

One thought on “Error compile wireles driver Broadcom from source : Wl-sta driver linux_kernel 3.10 & 3.11

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s