Fazendo o driver Broadcom BCM4313 dar erro: declaração implícita de função ‘create_proc_entry’

0

Estou tentando criar um driver para meu adaptador de rede sem fio bcm4313 usando estas instruções da broadcom .

Estou recebendo este erro:

KBUILD_NOPEDANTIC=1 make -C /lib/modules/'uname -r'/build M='pwd'
make[1]: Entering directory '/usr/src/linux-headers-3.11.0-15-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/keroles/hybrid_wl/src/wl/sys/wl_linux.o
/home/keroles/hybrid_wl/src/wl/sys/wl_linux.c: In function ‘wl_tkip_printstats’:
/home/keroles/hybrid_wl/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/keroles/hybrid_wl/src/wl/sys/wl_linux.c:3246:7: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/home/keroles/hybrid_wl/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/keroles/hybrid_wl/src/wl/sys/wl_linux.c:3249:4: note: expected ‘struct seq_file *’ but argument is of type ‘char *’
/home/keroles/hybrid_wl/src/wl/sys/wl_linux.c: In function ‘wl_reg_proc_entry’:
/home/keroles/hybrid_wl/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/keroles/hybrid_wl/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/keroles/hybrid_wl/src/wl/sys/wl_linux.c:3475:16: error: dereferencing pointer to incomplete type
  wl->proc_entry->read_proc = wl_proc_read;
                ^
/home/keroles/hybrid_wl/src/wl/sys/wl_linux.c:3476:16: error: dereferencing pointer to incomplete type
  wl->proc_entry->write_proc = wl_proc_write;
                ^
/home/keroles/hybrid_wl/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[2]: *** [/home/keroles/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/home/keroles/hybrid_wl] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.11.0-15-generic'
make: *** [all] Error 2

Eu não sei porque, alguma idéia?

    
por Kaspro 28.01.2014 / 12:59

1 resposta

0

Primeiro de tudo, eu estou usando o driver BCM4313 e estou escrevendo isso via internet wi-fi conectado. Tudo o que fiz para funcionar foi instalar drivers adicionais que são encontrados em Software & amp; Atualizações. Instala o driver STA para mim. Claro que você precisa se conectar à internet via cabo ethernet.

Tenha um bom dia e estou aqui para ajudá-lo novamente.

    
por zemburak 28.01.2014 / 13:31