1 --- a/drivers/net/wireless/ath/carl9170/main.c
2 +++ b/drivers/net/wireless/ath/carl9170/main.c
3 @@ -811,16 +811,34 @@ out:
6 static u64 carl9170_op_prepare_multicast(struct ieee80211_hw *hw,
7 - struct netdev_hw_addr_list *mc_list)
8 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
9 + struct netdev_hw_addr_list *mc_list)
11 + int mc_count, struct dev_addr_list *ha)
14 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
15 struct netdev_hw_addr *ha;
21 /* always get broadcast frames */
22 mchash = 1ULL << (0xff >> 2);
24 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
25 netdev_hw_addr_list_for_each(ha, mc_list)
26 mchash |= 1ULL << (ha->addr[5] >> 2);
28 + for (i = 0; i < mc_count; i++) {
32 + mchash |= 1ULL << (ha->dmi_addr[5] >> 2);