~mmach/netext73/bcmwl-kernel-source

« back to all changes in this revision

Viewing changes to debian/patches/0004-Add-support-for-Linux-3.2.patch.diff

  • Committer: mmach
  • Date: 2019-06-26 07:36:36 UTC
  • Revision ID: netbit73@gmail.com-20190626073636-rm4rlhgaov8qics9
dla 5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- bcmwl-6.30.223.271+bdcom.orig/debian/patches/0004-Add-support-for-Linux-3.2.patch
 
2
+++ bcmwl-6.30.223.271+bdcom/debian/patches/0004-Add-support-for-Linux-3.2.patch
 
3
@@ -0,0 +1,30 @@
 
4
+From 038110dd8729531cf052dca43894a1e5605229f4 Mon Sep 17 00:00:00 2001
 
5
+From: Alberto Milone <alberto.milone@canonical.com>
 
6
+Date: Thu, 5 Jul 2012 13:03:14 +0200
 
7
+Subject: [PATCH 1/1] Add support for Linux 3.2
 
8
+
 
9
+
 
10
+Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
 
11
+---
 
12
+ src/wl/sys/wl_linux.c |    4 ++++
 
13
+ 1 file changed, 4 insertions(+)
 
14
+
 
15
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 
16
+index ac87754..ec51c5b 100644
 
17
+--- a/src/wl/sys/wl_linux.c
 
18
++++ b/src/wl/sys/wl_linux.c
 
19
+@@ -385,7 +385,11 @@ static const struct net_device_ops wl_netdev_ops =
 
20
+ #endif
 
21
+       .ndo_get_stats = wl_get_stats,
 
22
+       .ndo_set_mac_address = wl_set_mac_address,
 
23
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
 
24
+       .ndo_set_multicast_list = wl_set_multicast_list,
 
25
++#else
 
26
++      .ndo_set_rx_mode = wl_set_multicast_list,
 
27
++#endif
 
28
+       .ndo_do_ioctl = wl_ioctl
 
29
+ };
 
30
 
31
+-- 
 
32
+1.7.9.5
 
33
+