I'm trying to play around with the mechanism proposed by Johannes Berg in these patches:
1, 2, 3
It introduces the BPF program type wifimon
which should allow hooking into the RX path of mac80211.
I'm able to build an image but I get the following error during boot:
[ 14.484493] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[...]
[ 14.584634] cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)
[ 14.627063] kmodloader: 8 modules could not be probed
[ 14.632483] kmodloader: dependency not loaded cfg80211
[ 14.637970] kmodloader: - ath - 1
[ 14.641523] kmodloader: dependency not loaded mac80211
[ 14.646994] kmodloader: dependency not loaded cfg80211
[ 14.652335] kmodloader: dependency not loaded ath
[ 14.657325] kmodloader: - ath10k_core - 3
[ 14.661632] kmodloader: dependency not loaded ath10k_core
[ 14.667195] kmodloader: - ath10k_pci - 1
[ 14.671429] kmodloader: dependency not loaded mac80211
[ 14.676840] kmodloader: dependency not loaded ath9k_hw
[ 14.682309] kmodloader: dependency not loaded ath9k_common
[ 14.688211] kmodloader: dependency not loaded cfg80211
[ 14.693817] kmodloader: dependency not loaded ath
[ 14.698896] kmodloader: - ath9k - 5
[ 14.702616] kmodloader: dependency not loaded cfg80211
[ 14.708068] kmodloader: dependency not loaded ath9k_hw
[ 14.713628] kmodloader: dependency not loaded ath
[ 14.718568] kmodloader: - ath9k_common - 3
[ 14.723004] kmodloader: dependency not loaded ath
[ 14.728027] kmodloader: - ath9k_hw - 1
[ 14.731981] kmodloader: - cfg80211 - 0
[ 14.736049] kmodloader: dependency not loaded cfg80211
[ 14.741522] kmodloader: - mac80211 - 1
From what I've gathered it is some sort of conflict between the kernel's integrated mac80211 and another mac80211 kernel module both exporting __cfg80211_alloc_event_skb
.
I have close to no experience with kernel programming and so have no idea on how to go about fixing this. Any help is greatly appreciated.