~mmach/netext73/bcmwl-kernel-source

« back to all changes in this revision

Viewing changes to debian/patches/0014-add-support-for-Linux-3.17.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/0014-add-support-for-Linux-3.17.patch
 
2
+++ bcmwl-6.30.223.271+bdcom/debian/patches/0014-add-support-for-Linux-3.17.patch
 
3
@@ -0,0 +1,30 @@
 
4
+From 05dd11abffe27c2fd8f618e79036be026f71b20c Mon Sep 17 00:00:00 2001
 
5
+From: Brian Norris <computersforpeace@gmail.com>
 
6
+Date: Tue, 26 Aug 2014 01:21:19 -0800
 
7
+
 
8
+Subject: [PATCH] Add support for Linux 3.17
 
9
+
 
10
+---
 
11
+ src/wl/sys/wl_linux.c | 19 +++++++++++++++++++
 
12
+ 1 file changed, 19 insertions(+)
 
13
+
 
14
+diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
 
15
+index 3a5e46b..6384e58 100644
 
16
+--- a/src/wl/sys/wl_linux.c
 
17
++++ b/src/wl/sys/wl_linux.c
 
18
+@@ -1351,7 +1351,12 @@
 
19
+       dev->priv = priv_link;
 
20
+ #else
 
21
 
22
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0))
 
23
+       dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
 
24
++#else
 
25
++      dev = alloc_netdev(sizeof(priv_link_t), intf_name, NET_NAME_UNKNOWN,
 
26
++                         ether_setup);
 
27
++#endif
 
28
+       if (!dev) {
 
29
+               WL_ERROR(("wl%d: %s: alloc_netdev failed\n",
 
30
+                       (wl->pub)?wl->pub->unit:wlif->subunit, __FUNCTION__));
 
31
+-- 
 
32
+1.9.1
 
33
+