Followed the script below, only change was to the latest driver:
sudo apt-get update && apt-get upgrade -y
sudo apt-get install linux-headers-$(uname -r)
cd /usr/src/
sudo wget
http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.16.2/backports-3.16.2-1.tar.xzsudo tar xvfJ backports-3.16.2-1.tar.xz
cd backports-3.16.2-1
sudo make defconfig-wifi.....
All went well till sudo make as after i tiped make enter, I got this:
root@kali:/usr/src/backports-4.2.6-1# make
make[5]: 'conf' is up to date.
boolean symbol HWMON tested for 'm'? test forced to 'n'
boolean symbol HWMON tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
CC [M] /usr/src/backports-4.2.6-1/compat/main.o
In file included from /usr/src/backports-4.2.6-1/backport-include/backport/backport.h:7:0,
from <command-line>:0:
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
#define IS_BUILTIN(option) config_enabled(option)
^
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^~~~~~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:298: recipe for target '/usr/src/backports-4.2.6-1/compat/main.o' failed
make[8]: *** [/usr/src/backports-4.2.6-1/compat/main.o] Error 1
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:549: recipe for target '/usr/src/backports-4.2.6-1/compat' failed
make[7]: *** [/usr/src/backports-4.2.6-1/compat] Error 2
/usr/src/linux-headers-4.9.0-kali3-common/Makefile:1507: recipe for target '_module_/usr/src/backports-4.2.6-1' failed
make[6]: *** [_module_/usr/src/backports-4.2.6-1] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[5]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[4]: *** [all] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[3]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile:40: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:30: recipe for target 'default' failed
make: *** [default] Error 2
root@kali:/usr/src/backports-4.2.6-1# make install
CC [M] /usr/src/backports-4.2.6-1/compat/main.o
In file included from /usr/src/backports-4.2.6-1/backport-include/backport/backport.h:7:0,
from <command-line>:0:
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h: In function ‘__qrwlock_write_byte’:
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:28: error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-function-declaration]
#define IS_BUILTIN(option) config_enabled(option)
^
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^~~~~~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use in this function)
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:37: note: each undeclared identifier is reported only once for each function it appears in
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/usr/src/backports-4.2.6-1/backport-include/linux/kconfig.h:25:43: note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:298: recipe for target '/usr/src/backports-4.2.6-1/compat/main.o' failed
make[7]: *** [/usr/src/backports-4.2.6-1/compat/main.o] Error 1
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:549: recipe for target '/usr/src/backports-4.2.6-1/compat' failed
make[6]: *** [/usr/src/backports-4.2.6-1/compat] Error 2
/usr/src/linux-headers-4.9.0-kali3-common/Makefile:1507: recipe for target '_module_/usr/src/backports-4.2.6-1' failed
make[5]: *** [_module_/usr/src/backports-4.2.6-1] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[4]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[3]: *** [all] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:40: recipe for target 'install' failed
make: *** [install] Error 2
root@kali:/usr/src/backports-4.2.6-1#
any clue? I really need help please...