[PATCH 4/9] patches: do not access name_assign_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



struct net_device now has a new member name_assign_type which contains
the type of the mac address. It is currently only used to be shown in
sysfs. It should be save to just ignore it on older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 .../network/0055-name_assign_type/brcmfmac.patch             | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/collateral-evolutions/network/0055-name_assign_type/brcmfmac.patch

diff --git a/patches/collateral-evolutions/network/0055-name_assign_type/brcmfmac.patch b/patches/collateral-evolutions/network/0055-name_assign_type/brcmfmac.patch
new file mode 100644
index 0000000..e9b1f05
--- /dev/null
+++ b/patches/collateral-evolutions/network/0055-name_assign_type/brcmfmac.patch
@@ -0,0 +1,12 @@
+--- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
++++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
+@@ -2312,7 +2312,9 @@ struct wireless_dev *brcmf_p2p_add_vif(s
+ 	}
+ 
+ 	strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
+ 	ifp->ndev->name_assign_type = name_assign_type;
++#endif /* >= 3.17.0 */
+ 	err = brcmf_net_attach(ifp, true);
+ 	if (err) {
+ 		brcmf_err("Registering netdevice failed\n");
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux