1 --- a/drivers/net/wireless/ath/carl9170/main.c
2 +++ b/drivers/net/wireless/ath/carl9170/main.c
3 @@ -591,21 +591,36 @@ out:
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
8 +static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw,
9 + struct netdev_hw_addr_list *mclist)
11 static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count,
12 struct dev_addr_list *mclist)
16 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
17 + struct netdev_hw_addr *ha;
22 /* always get broadcast frames */
23 mchash = 1ULL << (0xff >> 2);
25 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
26 + netdev_hw_addr_list_for_each(ha, mclist) {
27 + mchash |= 1ULL << (ha->addr[5] >> 2);
30 for (i = 0; i < mc_count; i++) {
33 mchash |= 1ULL << (mclist->dmi_addr[5] >> 2);
34 mclist = mclist->next;
40 --- a/drivers/net/wireless/ath/carl9170/usb.c
41 +++ b/drivers/net/wireless/ath/carl9170/usb.c
46 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
47 +#define usb_buffer_alloc(dev, size, mem_flags, dma) usb_alloc_coherent(dev, size, mem_flags, dma)
48 +#define usb_buffer_free(dev, size, addr, dma) usb_free_coherent(dev, size, addr, dma)
51 MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
52 MODULE_AUTHOR("Christian Lamparter <chunkeey@googlemail.com>");
53 MODULE_LICENSE("GPL");