summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c')
-rw-r--r--patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c b/patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c
new file mode 100644
index 00000000..03c405b8
--- /dev/null
+++ b/patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_main.c
@@ -0,0 +1,26 @@
+--- a/net/mac80211/main.c
++++ b/net/mac80211/main.c
+@@ -71,7 +71,11 @@
+ spin_lock_bh(&local->filter_lock);
+ changed_flags = local->filter_flags ^ new_flags;
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ mc = drv_prepare_multicast(local, &local->mc_list);
++#else
++ mc = drv_prepare_multicast(local, local->mc_count, local->mc_list);
++#endif
+ spin_unlock_bh(&local->filter_lock);
+
+ /* be a bit nasty */
+@@ -592,9 +596,11 @@
+ wiphy->vht_capa_mod_mask = &mac80211_vht_capa_mod_mask;
+
+ INIT_LIST_HEAD(&local->interfaces);
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+
+ __hw_addr_init(&local->mc_list);
+
++#endif
+ mutex_init(&local->iflist_mtx);
+ mutex_init(&local->mtx);
+