diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-09-14 22:53:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-09-14 22:53:54 +0000 |
commit | 0b61462b10f5aa36bef8de62341c762e9e29d928 (patch) | |
tree | 0bfc5f31cc4ea54f7253c14f510eac831f1495d0 /package/carl9170/patches/120-2.6.35-compat.patch | |
parent | 73c920ee4f6252e5d5b0ad751c1c67c57d2aa735 (diff) | |
download | upstream-0b61462b10f5aa36bef8de62341c762e9e29d928.tar.gz upstream-0b61462b10f5aa36bef8de62341c762e9e29d928.tar.bz2 upstream-0b61462b10f5aa36bef8de62341c762e9e29d928.zip |
mac80211: upgrade to wireless-testing 2010-09-14, replace the external carl9170 with the recently merged upstream version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23061 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/carl9170/patches/120-2.6.35-compat.patch')
-rw-r--r-- | package/carl9170/patches/120-2.6.35-compat.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/package/carl9170/patches/120-2.6.35-compat.patch b/package/carl9170/patches/120-2.6.35-compat.patch deleted file mode 100644 index e413edf2c8..0000000000 --- a/package/carl9170/patches/120-2.6.35-compat.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/drivers/net/wireless/ath/carl9170/main.c -+++ b/drivers/net/wireless/ath/carl9170/main.c -@@ -591,21 +591,36 @@ out: - return err; - } - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, -+ struct netdev_hw_addr_list *mclist) -+#else - static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count, - struct dev_addr_list *mclist) -+#endif - { - u64 mchash; -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+ struct netdev_hw_addr *ha; -+#else - int i; -+#endif - - /* always get broadcast frames */ - mchash = 1ULL << (0xff >> 2); - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+ netdev_hw_addr_list_for_each(ha, mclist) { -+ mchash |= 1ULL << (ha->addr[5] >> 2); -+ } -+#else - for (i = 0; i < mc_count; i++) { - if (WARN_ON(!mclist)) - break; - mchash |= 1ULL << (mclist->dmi_addr[5] >> 2); - mclist = mclist->next; - } -+#endif - - return mchash; - } ---- a/drivers/net/wireless/ath/carl9170/usb.c -+++ b/drivers/net/wireless/ath/carl9170/usb.c -@@ -48,6 +48,11 @@ - #include "fwcmd.h" - #include "usb.h" - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+#define usb_buffer_alloc(dev, size, mem_flags, dma) usb_alloc_coherent(dev, size, mem_flags, dma) -+#define usb_buffer_free(dev, size, addr, dma) usb_free_coherent(dev, size, addr, dma) -+#endif -+ - MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); - MODULE_AUTHOR("Christian Lamparter <chunkeey@googlemail.com>"); - MODULE_LICENSE("GPL"); |