ifndef CONFIG_COMPAT_KERNEL_2_6_32
ifdef CONFIG_WL12XX_PLATFORM_DATA
-export CONFIG_COMPAT_WL12XX_SDIO=m
+export CONFIG_COMPAT_WLCORE_SDIO=m
endif #CONFIG_WL12XX_PLATFORM_DATA
endif #CONFIG_COMPAT_KERNEL_2_6_32
#include <linux/module.h>
/*
---- a/drivers/net/wireless/wl1251/main.c
-+++ b/drivers/net/wireless/wl1251/main.c
+--- a/drivers/net/wireless/ti/wl1251/main.c
++++ b/drivers/net/wireless/ti/wl1251/main.c
@@ -24,6 +24,9 @@
#include <linux/firmware.h>
#include <linux/delay.h>
#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
+--- a/drivers/net/wireless/ti/wl1251/spi.c
++++ b/drivers/net/wireless/t/wl1251/spi.c
@@ -24,6 +24,9 @@
#include <linux/module.h>
#include <linux/slab.h>
+obj-$(CONFIG_COMPAT_BT_HIDP) += hidp.o
hidp-objs := core.o sock.o
---- a/drivers/net/wireless/wl12xx/Makefile
-+++ b/drivers/net/wireless/wl12xx/Makefile
-@@ -7,7 +7,7 @@ wl12xx_sdio-objs = sdio.o
- wl12xx-$(CONFIG_NL80211_TESTMODE) += testmode.o
- obj-$(CONFIG_WL12XX) += wl12xx.o
- obj-$(CONFIG_WL12XX_SPI) += wl12xx_spi.o
--obj-$(CONFIG_WL12XX_SDIO) += wl12xx_sdio.o
-+obj-$(CONFIG_COMPAT_WL12XX_SDIO) += wl12xx_sdio.o
+--- a/drivers/net/wireless/ti/wlcore/Makefile
++++ b/drivers/net/wireless/ti/wlcore/Makefile
+@@ -7,7 +7,7 @@ wlcore_sdio-objs = sdio.o
+ wlcore-$(CONFIG_NL80211_TESTMODE) += testmode.o
+ obj-$(CONFIG_WLCORE) += wlcore.o
+ obj-$(CONFIG_WLCORE_SPI) += wlcore_spi.o
+-obj-$(CONFIG_WLCORE_SDIO) += wlcore_sdio.o
++obj-$(CONFIG_COMPAT_WLCORE_SDIO) += wlcore_sdio.o
# small builtin driver bit
obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wl12xx_platform_data.o
---- a/drivers/net/wireless/wl1251/Makefile
-+++ b/drivers/net/wireless/wl1251/Makefile
+--- a/drivers/net/wireless/ti/wl1251/Makefile
++++ b/drivers/net/wireless/ti/wl1251/Makefile
@@ -5,6 +5,6 @@ wl1251_sdio-objs += sdio.o
obj-$(CONFIG_WL1251) += wl1251.o
obj-$(CONFIG_WL1251_SPI) += wl1251_spi.o
-obj-$(CONFIG_WL1251_SDIO) += wl1251_sdio.o
-+obj-$(CONFIG_COMPAT_WL1251_SDIO) += wl1251_sdio.o
++obj-$(CONFIG_COMPAT_WL1251_SDIO)+= wl1251_sdio.o
ccflags-y += -D__CHECK_ENDIAN__
--- a/drivers/net/wireless/ath/ath9k/Makefile
};
/* Data structure for the WLAN parts (802.11 cores) of the b43 chip. */
---- a/drivers/net/wireless/wl12xx/main.c
-+++ b/drivers/net/wireless/wl12xx/main.c
+--- a/drivers/net/wireless/ti/wlcore/main.c
++++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -5493,14 +5493,25 @@ static int __devinit wl12xx_probe(struct
platform_set_drvdata(pdev, wl);
out_free_hw:
wl1271_free_hw(wl);
-@@ -5572,7 +5587,12 @@ static int __devexit wl12xx_remove(struc
+@@ -5081,7 +5081,12 @@ int __devexit wlcore_remove(struct platf
disable_irq_wake(wl->irq);
}
wl1271_unregister_hw(wl);
+#else
free_irq(wl->irq, wl);
+#endif
- wl1271_free_hw(wl);
+ wlcore_free_hw(wl);
return 0;
---- a/drivers/net/wireless/wl12xx/wl12xx.h
-+++ b/drivers/net/wireless/wl12xx/wl12xx.h
-@@ -498,6 +498,10 @@ struct wl1271 {
+--- a/drivers/net/wireless/ti/wlcore/wlcore.h
++++ b/drivers/net/wireless/ti/wlcore/wlcore.h
+@@ -349,6 +349,10 @@ struct wl1271 {
- /* work to fire when Tx is stuck */
- struct delayed_work tx_watchdog_work;
+ /* size of the private FW status data */
+ size_t fw_status_priv_len;
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+ struct compat_threaded_irq irq_compat;
+#endif
};
- struct wl1271_station {
+ int __devinit wlcore_probe(struct wl1271 *wl, struct platform_device *pdev);
}
static void rtl8187_configure_filter(struct ieee80211_hw *dev,
---- a/drivers/net/wireless/wl12xx/main.c
-+++ b/drivers/net/wireless/wl12xx/main.c
+--- a/drivers/net/wireless/ti/wlcore/main.c
++++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -2748,11 +2748,20 @@ struct wl1271_filter_params {
u8 mc_list[ACX_MC_ADDRESS_GROUP_MAX][ETH_ALEN];
};
---- a/drivers/net/wireless/wl12xx/main.c
-+++ b/drivers/net/wireless/wl12xx/main.c
-@@ -5631,16 +5631,20 @@ static int __devexit wl12xx_remove(struc
- return 0;
+--- a/drivers/net/wireless/ti/wl12xx/main.c
++++ b/drivers/net/wireless/ti/wl12xx/main.c
+@@ -1350,16 +1350,20 @@ static int __devinit wl12xx_probe(struct
+ return wlcore_probe(wl, pdev);
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
static struct platform_driver wl12xx_driver = {
.probe = wl12xx_probe,
- .remove = __devexit_p(wl12xx_remove),
+ .remove = __devexit_p(wlcore_remove),
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
.id_table = wl12xx_id_table,
+#endif
DRIVERS="$DRIVERS drivers/net/wireless/rtlwifi/rtl8192de"
DRIVERS="$DRIVERS drivers/net/wireless/libertas_tf"
DRIVERS="$DRIVERS drivers/net/wireless/ipw2x00"
-DRIVERS="$DRIVERS drivers/net/wireless/wl12xx"
-DRIVERS="$DRIVERS drivers/net/wireless/wl1251"
+DRIVERS="$DRIVERS drivers/net/wireless/ti"
+DRIVERS="$DRIVERS drivers/net/wireless/ti/wl12xx"
+DRIVERS="$DRIVERS drivers/net/wireless/ti/wl1251"
+DRIVERS="$DRIVERS drivers/net/wireless/ti/wlcore"
DRIVERS="$DRIVERS drivers/net/wireless/iwmc3200wifi"
DRIVERS="$DRIVERS drivers/net/wireless/orinoco"
DRIVERS="$DRIVERS drivers/net/wireless/mwifiex"