Sisyphus repository
Last update: 19 august 2019 | SRPMs: 17340 | Visits: 14658285
en ru br
ALT Linux repos
S:6.30.223.248-alt16.328201.1

Group :: System/Kernel and hardware
RPM: kernel-modules-bcmwl-un-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: bcmwl-build-kernel3.17.patch
Download


diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
index ac87754..a5f1919 100644
--- a/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
@@ -1306,8 +1306,11 @@
 	}
 	dev->priv = priv_link;
 #else
-
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0))
 	dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
+#else
+       dev = alloc_netdev(sizeof(priv_link_t), intf_name, NET_NAME_UNKNOWN, ether_setup);
+#endif
 	if (!dev) {
 		WL_ERROR(("wl%d: %s: alloc_netdev failed\n",
 			(wl->pub)?wl->pub->unit:wlif->subunit, __FUNCTION__));
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin