[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 4/9] patches: do not access name_assign_type
From:       Hauke Mehrtens <hauke () hauke-m ! de>
Date:       2015-04-25 13:50:59
Message-ID: 1429969864-16831-5-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]

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@hauke-m.de>
---
 .../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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic