root@kali:/usr/src/linux-headers-4.3.0-kali1-amd64# cd /usr/src/linux-master/net/mac80211
root@kali:/usr/src/linux-master/net/mac80211# wget -O tsf.patch "https://bitbucket.org/memahaxx/drc-mac80211/commits/4a9823cf2a6733bc15a05cffaebd8850d07451a7/raw/"
--2016-06-16 02:02:58-- https://bitbucket.org/memahaxx/drc-mac80211/commits/4a9823cf2a6733bc15a05cffaebd8850d07451a7/raw/
Resolving bitbucket.org (bitbucket.org)... 104.192.143.2, 104.192.143.1, 104.192.143.3
Connecting to bitbucket.org (bitbucket.org)|104.192.143.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3093 (3.0K) [text/plain]
Saving to: ‘tsf.patch’
tsf.patch 100%[==================>] 3.02K --.-KB/s in 0s
2016-06-16 02:02:59 (13.9 MB/s) - ‘tsf.patch’ saved [3093/3093]
root@kali:/usr/src/linux-master/net/mac80211# patch -p1 < tsf.patch
patching file README.DRC
patching file iface.c
Hunk #1 succeeded at 1699 with fuzz 2 (offset 119 lines).
Hunk #2 succeeded at 1888 with fuzz 1 (offset 154 lines).
Hunk #3 succeeded at 1917 (offset 154 lines).
Hunk #4 succeeded at 1962 with fuzz 2 (offset 157 lines).
root@kali:/usr/src/linux-master/net/mac80211# cd /usr/src/linux-headers-4.3.0-kali1-amd64
root@kali:/usr/src/linux-headers-4.3.0-kali1-amd64# make -C /usr/src/linux-headers-4.3.0-kali1-amd64 M=/usr/src/linux-master/net/mac80211make: Entering directory '/usr/src/linux-headers-4.3.0-kali1-amd64'
LD /usr/src/linux-master/net/mac80211/built-in.o
CC [M] /usr/src/linux-master/net/mac80211/main.o
In file included from /usr/src/linux-master/net/mac80211/main.c:12:0:
include/net/mac80211.h: In function ‘ieee80211_iftype_p2p’:
include/net/mac80211.h:5278:3: error: ‘ret’ undeclared (first use in this function)
ret = device_create_file(&ndev->dev, &dev_attr_tsf);
^
include/net/mac80211.h:5278:3: note: each undeclared identifier is reported only once for each function it appears in
include/net/mac80211.h:5278:29: error: ‘ndev’ undeclared (first use in this function)
ret = device_create_file(&ndev->dev, &dev_attr_tsf);
^
include/net/mac80211.h:5278:41: error: ‘dev_attr_tsf’ undeclared (first use in this function)
ret = device_create_file(&ndev->dev, &dev_attr_tsf);
^
In file included from /usr/src/linux-master/net/mac80211/main.c:28:0:
/usr/src/linux-master/net/mac80211/ieee80211_i.h: At top level:
/usr/src/linux-master/net/mac80211/ieee80211_i.h:899:22: error: ‘NUM_NL80211_BANDS’ undeclared here (not in a function)
u32 rc_rateidx_mask[NUM_NL80211_BANDS];
^
/usr/src/linux-master/net/mac80211/ieee80211_i.h: In function ‘ieee80211_have_rx_timestamp’:
/usr/src/linux-master/net/mac80211/ieee80211_i.h:1477:21: error: ‘RX_FLAG_MACTIME_PLCP_START’ undeclared (first use in this function)
if (status->flag & RX_FLAG_MACTIME_PLCP_START &&
^
In file included from /usr/src/linux-master/net/mac80211/trace.h:9:0,
from /usr/src/linux-master/net/mac80211/driver-ops.h:11,
from /usr/src/linux-master/net/mac80211/main.c:29:
/usr/src/linux-master/net/mac80211/trace.h: At top level:
/usr/src/linux-master/net/mac80211/trace.h:1001:11: warning: ‘struct ieee80211_ampdu_params’ declared inside parameter list
struct ieee80211_ampdu_params *params),
^
include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-master/net/mac80211/trace.h:998:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_ampdu_action,
^
/usr/src/linux-master/net/mac80211/trace.h:999:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/usr/src/linux-master/net/mac80211/trace.h:1001:11: warning: its scope is only this definition or declaration, which is probably not what you want
struct ieee80211_ampdu_params *params),
^
include/linux/tracepoint.h:177:34: note: in definition of macro ‘__DECLARE_TRACE’
static inline void trace_##name(proto) \
^
include/linux/tracepoint.h:333:25: note: in expansion of macro ‘PARAMS’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-master/net/mac80211/trace.h:998:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_ampdu_action,
^
/usr/src/linux-master/net/mac80211/trace.h:999:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/usr/src/linux-master/net/mac80211/trace.h:1001:11: warning: ‘struct ieee80211_ampdu_params’ declared inside parameter list
struct ieee80211_ampdu_params *params),
^
include/linux/tracepoint.h:193:38: note: in definition of macro ‘__DECLARE_TRACE’
register_trace_##name(void (*probe)(data_proto), void *data) \
^
include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-master/net/mac80211/trace.h:998:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_ampdu_action,
^
/usr/src/linux-master/net/mac80211/trace.h:999:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/usr/src/linux-master/net/mac80211/trace.h:1001:11: warning: ‘struct ieee80211_ampdu_params’ declared inside parameter list
struct ieee80211_ampdu_params *params),
^
include/linux/tracepoint.h:199:40: note: in definition of macro ‘__DECLARE_TRACE’
unregister_trace_##name(void (*probe)(data_proto), void *data) \
^
include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-master/net/mac80211/trace.h:998:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_ampdu_action,
^
/usr/src/linux-master/net/mac80211/trace.h:999:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
/usr/src/linux-master/net/mac80211/trace.h:1001:11: warning: ‘struct ieee80211_ampdu_params’ declared inside parameter list
struct ieee80211_ampdu_params *params),
^
include/linux/tracepoint.h:205:46: note: in definition of macro ‘__DECLARE_TRACE’
check_trace_callback_type_##name(void (*cb)(data_proto)) \
^
include/linux/tracepoint.h:334:5: note: in expansion of macro ‘PARAMS’
PARAMS(void *__data, proto), \
^
include/linux/tracepoint.h:467:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:467:22: note: in expansion of macro ‘PARAMS’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
/usr/src/linux-master/net/mac80211/trace.h:998:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(drv_ampdu_action,
^
/usr/src/linux-master/net/mac80211/trace.h:999:2: note: in expansion of macro ‘TP_PROTO’
TP_PROTO(struct ieee80211_local *local,
^
In file included from /usr/src/linux-master/net/mac80211/main.c:29:0:
/usr/src/linux-master/net/mac80211/driver-ops.h: In function ‘drv_sync_rx_queues’:
/usr/src/linux-master/net/mac80211/driver-ops.h:40:16: error: ‘const struct ieee80211_ops’ has no member named ‘sync_rx_queues’
if (local->ops->sync_rx_queues) {
^
/usr/src/linux-master/net/mac80211/driver-ops.h:42:13: error: ‘const struct ieee80211_ops’ has no member named ‘sync_rx_queues’
local->ops->sync_rx_queues(&local->hw);
^
/usr/src/linux-master/net/mac80211/driver-ops.h: In function ‘drv_config_iface_filter’:
/usr/src/linux-master/net/mac80211/driver-ops.h:215:16: error: ‘const struct ieee80211_ops’ has no member named ‘config_iface_filter’
if (local->ops->config_iface_filter)
^
/usr/src/linux-master/net/mac80211/driver-ops.h:216:13: error: ‘const struct ieee80211_ops’ has no member named ‘config_iface_filter’
local->ops->config_iface_filter(&local->hw, &sdata->vif,
^
/usr/src/linux-master/net/mac80211/driver-ops.h: At top level:
/usr/src/linux-master/net/mac80211/driver-ops.h:603:15: warning: ‘struct ieee80211_ampdu_params’ declared inside parameter list
struct ieee80211_ampdu_params *params);
^
/usr/src/linux-master/net/mac80211/main.c: In function ‘ieee80211_alloc_hw_nm’:
/usr/src/linux-master/net/mac80211/main.c:561:31: error: ‘NL80211_EXT_FEATURE_RRM’ undeclared (first use in this function)
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);
^
scripts/Makefile.build:263: recipe for target '/usr/src/linux-master/net/mac80211/main.o' failed
make[1]: *** [/usr/src/linux-master/net/mac80211/main.o] Error 1
Makefile:1395: recipe for target '_module_/usr/src/linux-master/net/mac80211' failed
make: *** [_module_/usr/src/linux-master/net/mac80211] Error 2
make: Leaving directory '/usr/src/linux-headers-4.3.0-kali1-amd64'