compat-wireless-2010-03-10
[pandora-wifi.git] / patches / 15-symbol-export-conflicts.patch
1 In kernel < 2.6.32 libipw also exports ieee80211_rx.
2 To avoid conflicts with the other export we rename our.
3
4 --- a/net/mac80211/rx.c
5 +++ b/net/mac80211/rx.c
6 @@ -2565,7 +2565,12 @@ void ieee80211_rx(struct ieee80211_hw *h
7   drop:
8         kfree_skb(skb);
9  }
10 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
11  EXPORT_SYMBOL(ieee80211_rx);
12 +#else
13 +EXPORT_SYMBOL(mac80211_ieee80211_rx);
14 +#endif
15 +
16  
17  /* This is a version of the rx handler that can be called from hard irq
18   * context. Post the skb on the queue and schedule the tasklet */