i've problem when i try install driver to my wireless card:

KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali1-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /root/Downloads/wk/src/wl/sys/wl_linux.o
/root/Downloads/wk/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/root/Downloads/wk/src/wl/sys/wl_linux.c:1309:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/root/Downloads/wk/src/wl/sys/wl_linux.c:1309:8: error: ‘alloc_netdev’ undeclared (first use in this function)
/root/Downloads/wk/src/wl/sys/wl_linux.c:1309:8: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/root/Downloads/wk/src/wl/sys/wl_linux.o] Error 1
make[3]: *** [_module_/root/Downloads/wk] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali1-amd64'
make: *** [all] Error 2
I understand that function alloc_netdev has 3 arguments instead 4. How to fix it !?