wl1251: Add support for idle mode
[pandora-wifi.git] / patches / 06-header-changes.patch
1
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
5 cases.
6
7 --- a/drivers/net/wireless/b43/phy_common.h
8 +++ b/drivers/net/wireless/b43/phy_common.h
9 @@ -2,6 +2,9 @@
10  #define LINUX_B43_PHY_COMMON_H_
11  
12  #include <linux/types.h>
13 +#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
14 +#include <asm/atomic.h>
15 +#endif
16  
17  struct b43_wldev;
18  
19 --- a/drivers/net/wireless/libertas/assoc.c
20 +++ b/drivers/net/wireless/libertas/assoc.c
21 @@ -5,6 +5,9 @@
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>
27 +#endif
28  
29  #include "assoc.h"
30  #include "decl.h"
31 --- a/drivers/net/wireless/wl12xx/wl1251_main.c
32 +++ b/drivers/net/wireless/wl12xx/wl1251_main.c
33 @@ -26,6 +26,9 @@
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>
39 +#endif
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
45 @@ -24,6 +24,9 @@
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>
51 +#endif
52  #include <linux/spi/spi.h>
53  #include <linux/spi/wl12xx.h>
54  
55 --- a/net/mac80211/key.c
56 +++ b/net/mac80211/key.c
57 @@ -21,6 +21,9 @@
58  #include "aes_ccm.h"
59  #include "aes_cmac.h"
60  
61 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
62 +#include <asm/unaligned.h>
63 +#endif
64  
65  /**
66   * DOC: Key handling basics
67 --- a/net/mac80211/main.c
68 +++ b/net/mac80211/main.c
69 @@ -20,7 +20,9 @@
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>
75 +#endif
76  #include <net/cfg80211.h>
77  
78  #include "ieee80211_i.h"
79 --- a/net/mac80211/cfg.c
80 +++ b/net/mac80211/cfg.c
81 @@ -9,7 +9,9 @@
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>
87 +#endif
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
93 @@ -18,7 +18,9 @@
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>
99 +#endif
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
105 @@ -20,7 +20,9 @@
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>
111 +#endif
112  #include <net/cfg80211.h>
113  #include <net/rtnetlink.h>
114  
115 --- a/net/wireless/nl80211.c
116 +++ b/net/wireless/nl80211.c
117 @@ -14,7 +14,9 @@
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>
123 +#endif
124  #include <net/genetlink.h>
125  #include <net/cfg80211.h>
126  #include <net/sock.h>