Building rt8192cu driver against lichee/ilnux-3.4 kernel

comarius
Hi,
I built the kernel from 
http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO

/build.sh -p sun8iw7p1 -b nanopi-h3 -m kernel

I got the rtl drivers from:
https://github.com/pvaret/rtl8192cu-fixes

I am trying to build the driver against the kernel above, and I tried both
SUN* configurations:

CONFIG_PLATFORM_ARM_SUNxI = n
CONFIG_PLATFORM_ARM_SUN6I = y


 error: #error "Can't define CONFIG_IOCTL_CFG80211 because neither
CONFIG_CFG80211 nor CONFIG_CFG80211_MODULE is defined in kernel"


and

CONFIG_PLATFORM_ARM_SUNxI = y
CONFIG_PLATFORM_ARM_SUN6I = n

home/marius/APPS/BOARDS/NANOPI-NEO/rtl8192cu-fixes/os_dep/linux/usb_intf.c:1556:
2:
error: implicit declaration of function ‘script_parser_fetch’
[-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors



Any ideas. Thak you

comarius
If I hack the error in Makfile for SUNxI config, when 
sudo insmod -f ./8192cu.ko 
I get

pi@FriendlyARM:/home/cocam$ sudo dmesg -c
[ 2530.348359] 8192cu: Unknown symbol script_parser_fetch (err 0)
[ 2530.348468] 8192cu: Unknown symbol sw_usb_enable_hcd (err 0)
[ 2530.348492] 8192cu: Unknown symbol sw_usb_disable_hcd (err 0)

....

comarius
SOLVED:

I download xenial server from armbian, and hostapd works out of the box: