65 lines
1.6 KiB
Diff
65 lines
1.6 KiB
Diff
|
|
Every kernel release there are a few changes to headers
|
|
made. Some code gets shifted around between headers or
|
|
new headers are defined. This patch deals with such
|
|
cases.
|
|
|
|
--- a/drivers/net/wireless/b43/phy_common.h
|
|
+++ b/drivers/net/wireless/b43/phy_common.h
|
|
@@ -3,6 +3,9 @@
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/nl80211.h>
|
|
+#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
|
|
+#include <asm/atomic.h>
|
|
+#endif
|
|
|
|
struct b43_wldev;
|
|
|
|
--- a/drivers/net/wireless/rtlwifi/base.c
|
|
+++ b/drivers/net/wireless/rtlwifi/base.c
|
|
@@ -30,6 +30,7 @@
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
#include <linux/ip.h>
|
|
+#include <linux/in.h>
|
|
#include <linux/module.h>
|
|
#include "wifi.h"
|
|
#include "rc.h"
|
|
--- a/drivers/net/wireless/wl1251/main.c
|
|
+++ b/drivers/net/wireless/wl1251/main.c
|
|
@@ -24,6 +24,9 @@
|
|
#include <linux/firmware.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/irq.h>
|
|
+#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
|
|
+#include <linux/device.h>
|
|
+#endif
|
|
#include <linux/crc32.h>
|
|
#include <linux/etherdevice.h>
|
|
#include <linux/vmalloc.h>
|
|
--- a/drivers/net/wireless/wl1251/spi.c
|
|
+++ b/drivers/net/wireless/wl1251/spi.c
|
|
@@ -24,6 +24,9 @@
|
|
#include <linux/module.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/crc7.h>
|
|
+#if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,28))
|
|
+#include <linux/device.h>
|
|
+#endif
|
|
#include <linux/spi/spi.h>
|
|
#include <linux/wl12xx.h>
|
|
|
|
--- a/net/mac80211/key.c
|
|
+++ b/net/mac80211/key.c
|
|
@@ -23,6 +23,9 @@
|
|
#include "aes_ccm.h"
|
|
#include "aes_cmac.h"
|
|
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
|
|
+#include <asm/unaligned.h>
|
|
+#endif
|
|
|
|
/**
|
|
* DOC: Key handling basics
|