M7350/external/compat-wireless/patches/15-symbol-export-conflicts.patch
2024-09-09 08:57:42 +00:00

19 lines
531 B
Diff

In kernel < 2.6.32 libipw also exports ieee80211_rx.
To avoid conflicts with the other export we rename our.
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -3083,7 +3083,12 @@ void ieee80211_rx(struct ieee80211_hw *h
drop:
kfree_skb(skb);
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
EXPORT_SYMBOL(ieee80211_rx);
+#else
+EXPORT_SYMBOL(mac80211_ieee80211_rx);
+#endif
+
/* This is a version of the rx handler that can be called from hard irq
* context. Post the skb on the queue and schedule the tasklet */