编译这个https://github.com/aircrack-ng/rtl8812au
rtl8812au的无线网卡驱动用于监听模式出现
/home/orangepi/rtl8812au/core/rtw_xmit.c: In function ‘rtw_monitor_xmit_entry’:
/home/orangepi/rtl8812au/core/rtw_xmit.c:4630:20: error: ‘IEEE80211_RADIOTAP_MCS_HAVE_STBC’ undeclared (first use in this function)
if (mcs_have & IEEE80211_RADIOTAP_MCS_HAVE_STBC) {
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4630:20: note: each undeclared identifier is reported only once for each function it appears in
/home/orangepi/rtl8812au/core/rtw_xmit.c:4631:40: error: ‘IEEE80211_RADIOTAP_MCS_STBC_MASK’ undeclared (first use in this function)
u8 stbc = (iterator.this_arg[1] & IEEE80211_RADIOTAP_MCS_STBC_MASK) >> IEEE80211_RADIOTAP_MCS_STBC_SHIFT;
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4631:77: error: ‘IEEE80211_RADIOTAP_MCS_STBC_SHIFT’ undeclared (first use in this function)
u8 stbc = (iterator.this_arg[1] & IEEE80211_RADIOTAP_MCS_STBC_MASK) >> IEEE80211_RADIOTAP_MCS_STBC_SHIFT;
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4638:9: error: ‘IEEE80211_RADIOTAP_VHT’ undeclared (first use in this function)
case IEEE80211_RADIOTAP_VHT: {
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4654:18: error: ‘IEEE80211_RADIOTAP_VHT_KNOWN_STBC’ undeclared (first use in this function)
if ((known & IEEE80211_RADIOTAP_VHT_KNOWN_STBC) && (flags & IEEE80211_RADIOTAP_VHT_FLAG_STBC))
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4654:65: error: ‘IEEE80211_RADIOTAP_VHT_FLAG_STBC’ undeclared (first use in this function)
if ((known & IEEE80211_RADIOTAP_VHT_KNOWN_STBC) && (flags & IEEE80211_RADIOTAP_VHT_FLAG_STBC))
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4657:18: error: ‘IEEE80211_RADIOTAP_VHT_KNOWN_GI’ undeclared (first use in this function)
if ((known & IEEE80211_RADIOTAP_VHT_KNOWN_GI) && (flags & IEEE80211_RADIOTAP_VHT_FLAG_SGI))
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4657:63: error: ‘IEEE80211_RADIOTAP_VHT_FLAG_SGI’ undeclared (first use in this function)
if ((known & IEEE80211_RADIOTAP_VHT_KNOWN_GI) && (flags & IEEE80211_RADIOTAP_VHT_FLAG_SGI))
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4660:17: error: ‘IEEE80211_RADIOTAP_VHT_KNOWN_BANDWIDTH’ undeclared (first use in this function)
if (known & IEEE80211_RADIOTAP_VHT_KNOWN_BANDWIDTH) {
^
/home/orangepi/rtl8812au/core/rtw_xmit.c:4684:33: error: ‘IEEE80211_RADIOTAP_CODING_LDPC_USER0’ undeclared (first use in this function)
if (iterator.this_arg[8] & IEEE80211_RADIOTAP_CODING_LDPC_USER0)
^
/home/orangepi/rtl8812au/core/rtw_xmit.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
scripts/Makefile.build:307: recipe for target '/home/orangepi/rtl8812au/core/rtw_xmit.o' failed
make[2]: *** [/home/orangepi/rtl8812au/core/rtw_xmit.o] Error 1
Makefile:1368: recipe for target '_module_/home/orangepi/rtl8812au' failed
make[1]: *** [_module_/home/orangepi/rtl8812au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.4.113-sun8i'
Makefile:2244: recipe for target 'modules' failed
make: *** [modules] Error 2
用的3.4 内核是怎么回事
离线