root@kali:~/drc/drc-mac80211# make -C /usr/src/linux-headers-4.3.0-kali1-amd64 M=/root/drc/drc-mac80211/
make: Entering directory '/usr/src/linux-headers-4.3.0-kali1-amd64'
LD /root/drc/drc-mac80211//built-in.o
CC [M] /root/drc/drc-mac80211//main.o
In file included from /root/drc/drc-mac80211//ieee80211_i.h:32:0,
from /root/drc/drc-mac80211//main.c:28:
/root/drc/drc-mac80211//sta_info.h:349:14: error: field ‘avg_signal’ has incomplete type
struct ewma avg_signal;
^
/root/drc/drc-mac80211//sta_info.h:354:14: error: array type has incomplete element type ‘struct ewma’
struct ewma chain_signal_avg[IEEE80211_MAX_CHAINS];
^
In file included from /root/drc/drc-mac80211//trace.h:4:0,
from /root/drc/drc-mac80211//driver-ops.h:6,
from /root/drc/drc-mac80211//main.c:29:
/root/drc/drc-mac80211//trace.h:1220:9: error: ‘ieee80211_rssi_event’ defined as wrong kind of tag
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: warning: ‘enum ieee80211_rssi_event’ declared inside parameter list
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: warning: its scope is only this definition or declaration, which is probably not what you want
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:30: error: parameter 3 (‘rssi_event’) has incomplete type
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:177:21: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
static inline void trace_##name(proto) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:3: note: in expansion of macro ‘__DECLARE_TRACE’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h: In function ‘trace_drv_rssi_callback’:
/root/drc/drc-mac80211//trace.h:1222:24: error: type of formal parameter 4 is incomplete
TP_ARGS(local, sdata, rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:141:33: note: in definition of macro ‘__DO_TRACE’
((void(*)(proto))(it_func))(args); \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:182:5: note: in expansion of macro ‘TP_ARGS’
TP_ARGS(data_args), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:333:3: note: in expansion of macro ‘__DECLARE_TRACE’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:335:5: note: in expansion of macro ‘PARAMS’
PARAMS(__data, args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:37: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1222:2: note: in expansion of macro ‘TP_ARGS’
TP_ARGS(local, sdata, rssi_event),
^
/root/drc/drc-mac80211//trace.h: At top level:
/root/drc/drc-mac80211//trace.h:1220:9: error: ‘ieee80211_rssi_event’ defined as wrong kind of tag
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:193:38: note: in definition of macro ‘__DECLARE_TRACE’
register_trace_##name(void (*probe)(data_proto), void *data) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: warning: ‘enum ieee80211_rssi_event’ declared inside parameter list
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:193:38: note: in definition of macro ‘__DECLARE_TRACE’
register_trace_##name(void (*probe)(data_proto), void *data) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: error: ‘ieee80211_rssi_event’ defined as wrong kind of tag
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:199:40: note: in definition of macro ‘__DECLARE_TRACE’
unregister_trace_##name(void (*probe)(data_proto), void *data) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: warning: ‘enum ieee80211_rssi_event’ declared inside parameter list
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:199:40: note: in definition of macro ‘__DECLARE_TRACE’
unregister_trace_##name(void (*probe)(data_proto), void *data) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: error: ‘ieee80211_rssi_event’ defined as wrong kind of tag
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:205:46: note: in definition of macro ‘__DECLARE_TRACE’
check_trace_callback_type_##name(void (*cb)(data_proto)) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//trace.h:1220:9: warning: ‘enum ieee80211_rssi_event’ declared inside parameter list
enum ieee80211_rssi_event rssi_event),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:205:46: note: in definition of macro ‘__DECLARE_TRACE’
check_trace_callback_type_##name(void (*cb)(data_proto)) \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/root/drc/drc-mac80211//trace.h:1217:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_rssi_callback,
^
/root/drc/drc-mac80211//trace.h:1218:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
In file included from /usr/src/linux-headers-4.3.0-kali1-common/arch/x86/include/asm/bug.h:35:0,
from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/bug.h:4,
from /usr/src/linux-headers-4.3.0-kali1-common/include/net/mac80211.h:17,
from /root/drc/drc-mac80211//main.c:11:
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_add_interface’:
/root/drc/drc-mac80211//driver-ops.h:149:26: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
!(local->hw.flags & IEEE80211_HW_WANT_MONITOR_VIF) &&
^
/usr/src/linux-headers-4.3.0-kali1-common/include/asm-generic/bug.h:86:25: note: in definition of macro ‘WARN_ON’
int __ret_warn_on = !!(condition); \
^
In file included from /root/drc/drc-mac80211//main.c:29:0:
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_set_multicast_list’:
/root/drc/drc-mac80211//driver-ops.h:255:16: error: ‘const struct ieee80211_ops’ has no member named ‘set_multicast_list’
if (local->ops->set_multicast_list)
^
/root/drc/drc-mac80211//driver-ops.h:256:13: error: ‘const struct ieee80211_ops’ has no member named ‘set_multicast_list’
local->ops->set_multicast_list(&local->hw, &sdata->vif,
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_hw_scan’:
/root/drc/drc-mac80211//driver-ops.h:337:53: warning: passing argument 3 of ‘local->ops->hw_scan’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = local->ops->hw_scan(&local->hw, &sdata->vif, req);
^
/root/drc/drc-mac80211//driver-ops.h:337:53: note: expected ‘struct ieee80211_scan_request *’ but argument is of type ‘struct cfg80211_scan_request *’
/root/drc/drc-mac80211//driver-ops.h: At top level:
/root/drc/drc-mac80211//driver-ops.h:358:15: warning: ‘struct ieee80211_sched_scan_ies’ declared inside parameter list
struct ieee80211_sched_scan_ies *ies)
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_sched_scan_start’:
/root/drc/drc-mac80211//driver-ops.h:368:17: warning: passing argument 4 of ‘local->ops->sched_scan_start’ from incompatible pointer type [-Wincompatible-pointer-types]
req, ies);
^
/root/drc/drc-mac80211//driver-ops.h:368:17: note: expected ‘struct ieee80211_scan_ies *’ but argument is of type ‘struct ieee80211_sched_scan_ies *’
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_sw_scan_start’:
/root/drc/drc-mac80211//driver-ops.h:391:3: error: too few arguments to function ‘local->ops->sw_scan_start’
local->ops->sw_scan_start(&local->hw);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_sw_scan_complete’:
/root/drc/drc-mac80211//driver-ops.h:401:3: error: too few arguments to function ‘local->ops->sw_scan_complete’
local->ops->sw_scan_complete(&local->hw);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_get_tkip_seq’:
/root/drc/drc-mac80211//driver-ops.h:422:16: error: ‘const struct ieee80211_ops’ has no member named ‘get_tkip_seq’
if (local->ops->get_tkip_seq)
^
/root/drc/drc-mac80211//driver-ops.h:423:13: error: ‘const struct ieee80211_ops’ has no member named ‘get_tkip_seq’
local->ops->get_tkip_seq(&local->hw, hw_key_idx, iv32, iv16);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_flush’:
/root/drc/drc-mac80211//driver-ops.h:731:33: warning: passing argument 2 of ‘local->ops->flush’ makes pointer from integer without a cast [-Wint-conversion]
local->ops->flush(&local->hw, queues, drop);
^
/root/drc/drc-mac80211//driver-ops.h:731:33: note: expected ‘struct ieee80211_vif *’ but argument is of type ‘u32 {aka unsigned int}’
/root/drc/drc-mac80211//driver-ops.h:731:3: error: too few arguments to function ‘local->ops->flush’
local->ops->flush(&local->hw, queues, drop);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_channel_switch’:
/root/drc/drc-mac80211//driver-ops.h:741:41: warning: passing argument 2 of ‘local->ops->channel_switch’ from incompatible pointer type [-Wincompatible-pointer-types]
local->ops->channel_switch(&local->hw, ch_switch);
^
/root/drc/drc-mac80211//driver-ops.h:741:41: note: expected ‘struct ieee80211_vif *’ but argument is of type ‘struct ieee80211_channel_switch *’
/root/drc/drc-mac80211//driver-ops.h:741:2: error: too few arguments to function ‘local->ops->channel_switch’
local->ops->channel_switch(&local->hw, ch_switch);
^
/root/drc/drc-mac80211//driver-ops.h: At top level:
/root/drc/drc-mac80211//driver-ops.h:872:21: error: ‘ieee80211_rssi_event’ defined as wrong kind of tag
const enum ieee80211_rssi_event event)
^
/root/drc/drc-mac80211//driver-ops.h:872:21: warning: ‘enum ieee80211_rssi_event’ declared inside parameter list
/root/drc/drc-mac80211//driver-ops.h:872:42: error: parameter 3 (‘event’) has incomplete type
const enum ieee80211_rssi_event event)
^
/root/drc/drc-mac80211//driver-ops.h:870:20: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
static inline void drv_rssi_callback(struct ieee80211_local *local,
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_rssi_callback’:
/root/drc/drc-mac80211//driver-ops.h:875:16: error: ‘const struct ieee80211_ops’ has no member named ‘rssi_callback’
if (local->ops->rssi_callback)
^
/root/drc/drc-mac80211//driver-ops.h:876:13: error: ‘const struct ieee80211_ops’ has no member named ‘rssi_callback’
local->ops->rssi_callback(&local->hw, &sdata->vif, event);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_get_rssi’:
/root/drc/drc-mac80211//driver-ops.h:919:18: error: ‘const struct ieee80211_ops’ has no member named ‘get_rssi’
ret = local->ops->get_rssi(&local->hw, &sdata->vif, sta, rssi_dbm);
^
/root/drc/drc-mac80211//driver-ops.h: In function ‘drv_restart_complete’:
/root/drc/drc-mac80211//driver-ops.h:1042:16: error: ‘const struct ieee80211_ops’ has no member named ‘restart_complete’
if (local->ops->restart_complete)
^
/root/drc/drc-mac80211//driver-ops.h:1043:13: error: ‘const struct ieee80211_ops’ has no member named ‘restart_complete’
local->ops->restart_complete(&local->hw);
^
/root/drc/drc-mac80211//main.c: In function ‘ieee80211_configure_filter’:
/root/drc/drc-mac80211//main.c:44:16: error: ‘FIF_PROMISC_IN_BSS’ undeclared (first use in this function)
new_flags |= FIF_PROMISC_IN_BSS;
^
/root/drc/drc-mac80211//main.c:44:16: note: each undeclared identifier is reported only once for each function it appears in
/root/drc/drc-mac80211//main.c: At top level:
/root/drc/drc-mac80211//main.c:484:22: error: redefinition of ‘ieee80211_alloc_hw’
struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
^
In file included from /root/drc/drc-mac80211//main.c:11:0:
/usr/src/linux-headers-4.3.0-kali1-common/include/net/mac80211.h:3507:22: note: previous definition of ‘ieee80211_alloc_hw’ was here
struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
^
/root/drc/drc-mac80211//main.c: In function ‘ieee80211_register_hw’:
/root/drc/drc-mac80211//main.c:674:16: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
if (hw->flags & IEEE80211_HW_QUEUE_CONTROL &&
^
/root/drc/drc-mac80211//main.c:814:22: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM)
^
/root/drc/drc-mac80211//main.c:816:27: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)
^
In file included from /usr/src/linux-headers-4.3.0-kali1-common/arch/x86/include/asm/bug.h:35:0,
from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/bug.h:4,
from /usr/src/linux-headers-4.3.0-kali1-common/include/net/mac80211.h:17,
from /root/drc/drc-mac80211//main.c:11:
/root/drc/drc-mac80211//main.c:819:26: error: ‘IEEE80211_HW_SUPPORTS_UAPSD’ undeclared (first use in this function)
WARN((local->hw.flags & IEEE80211_HW_SUPPORTS_UAPSD)
^
/usr/src/linux-headers-4.3.0-kali1-common/include/asm-generic/bug.h:95:25: note: in definition of macro ‘WARN’
int __ret_warn_on = !!(condition); \
^
/root/drc/drc-mac80211//main.c:820:27: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
&& (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK),
^
/usr/src/linux-headers-4.3.0-kali1-common/include/asm-generic/bug.h:95:25: note: in definition of macro ‘WARN’
int __ret_warn_on = !!(condition); \
^
/root/drc/drc-mac80211//main.c:858:25: error: invalid operands to binary & (have ‘long unsigned int *’ and ‘int’)
if (!(local->hw.flags & IEEE80211_HW_MFP_CAPABLE))
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.3.0-kali1-common/scripts/Makefile.build:263: recipe for target '/root/drc/drc-mac80211//main.o' failed
make[3]: *** [/root/drc/drc-mac80211//main.o] Error 1
/usr/src/linux-headers-4.3.0-kali1-common/Makefile:1395: recipe for target '_module_/root/drc/drc-mac80211/' failed
make[2]: *** [_module_/root/drc/drc-mac80211/] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.3.0-kali1-amd64'
root@kali:~/drc/drc-mac80211#