Rtl8192eu driver build problem


Hello! Have anyone an idea how to workaround the problem with the following undefined symbols in the module I am trying to build?

[284314.475215] 8192eu: Unknown symbol __ieee80211_get_channel (err 0)
[284314.475743] 8192eu: Unknown symbol cfg80211_connect_result (err 0)

Looks like the first one is relevant to this kernel patch: https://patchwork.kernel.org/patch/9434789/

It seems that compat-wireless exports this symbols without leading underscores, while cfg80211.h expects it with the underscores.

~/github/turris-os sudo find . -name 'Module.symvers' | grep ieee80211_get_channel
./build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/linux-mvebu/compat-wireless-2017-01-31/Module.symvers:0x00000000        ieee80211_get_channel   /openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/linux-mvebu/compat-wireless-2017-01-31/net/wireless/cfg80211     EXPORT_SYMBOL

Regarding the missing cfg80211_connect_result I have no ideas at all.