2 Every kernel release there are a few changes to headers
3 made. Some code gets shifted around between headers or
4 new headers are defined. This patch deals with such
7 --- a/drivers/net/wireless/b43/phy_common.h
8 +++ b/drivers/net/wireless/b43/phy_common.h
10 #define LINUX_B43_PHY_COMMON_H_
12 #include <linux/types.h>
13 +#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
14 +#include <asm/atomic.h>
19 --- a/drivers/net/wireless/libertas/assoc.c
20 +++ b/drivers/net/wireless/libertas/assoc.c
22 #include <linux/ieee80211.h>
23 #include <linux/if_arp.h>
24 #include <net/lib80211.h>
25 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
26 +#include <asm/unaligned.h>
31 --- a/drivers/net/wireless/wl12xx/wl1251_main.c
32 +++ b/drivers/net/wireless/wl12xx/wl1251_main.c
34 #include <linux/firmware.h>
35 #include <linux/delay.h>
36 #include <linux/irq.h>
37 +#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
38 +#include <linux/device.h>
40 #include <linux/crc32.h>
41 #include <linux/etherdevice.h>
42 #include <linux/vmalloc.h>
43 --- a/drivers/net/wireless/wl12xx/wl1251_spi.c
44 +++ b/drivers/net/wireless/wl12xx/wl1251_spi.c
46 #include <linux/irq.h>
47 #include <linux/module.h>
48 #include <linux/crc7.h>
49 +#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
50 +#include <linux/device.h>
52 #include <linux/spi/spi.h>
53 #include <linux/spi/wl12xx.h>
55 --- a/net/mac80211/key.c
56 +++ b/net/mac80211/key.c
61 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
62 +#include <asm/unaligned.h>
66 * DOC: Key handling basics
67 --- a/net/mac80211/main.c
68 +++ b/net/mac80211/main.c
70 #include <linux/rtnetlink.h>
71 #include <linux/bitmap.h>
72 #include <linux/pm_qos_params.h>
73 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
74 #include <net/net_namespace.h>
76 #include <net/cfg80211.h>
78 #include "ieee80211_i.h"
79 --- a/net/mac80211/cfg.c
80 +++ b/net/mac80211/cfg.c
82 #include <linux/ieee80211.h>
83 #include <linux/nl80211.h>
84 #include <linux/rtnetlink.h>
85 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
86 #include <net/net_namespace.h>
88 #include <linux/rcupdate.h>
89 #include <net/cfg80211.h>
90 #include "ieee80211_i.h"
91 --- a/net/mac80211/tx.c
92 +++ b/net/mac80211/tx.c
94 #include <linux/etherdevice.h>
95 #include <linux/bitmap.h>
96 #include <linux/rcupdate.h>
97 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
98 #include <net/net_namespace.h>
100 #include <net/ieee80211_radiotap.h>
101 #include <net/cfg80211.h>
102 #include <net/mac80211.h>
103 --- a/net/mac80211/util.c
104 +++ b/net/mac80211/util.c
106 #include <linux/if_arp.h>
107 #include <linux/bitmap.h>
108 #include <linux/crc32.h>
109 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
110 #include <net/net_namespace.h>
112 #include <net/cfg80211.h>
113 #include <net/rtnetlink.h>
115 --- a/net/wireless/nl80211.c
116 +++ b/net/wireless/nl80211.c
118 #include <linux/rtnetlink.h>
119 #include <linux/netlink.h>
120 #include <linux/etherdevice.h>
121 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
122 #include <net/net_namespace.h>
124 #include <net/genetlink.h>
125 #include <net/cfg80211.h>
126 #include <net/sock.h>