|
@@ -475,8 +475,9 @@ int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked)
|
|
ndev->needed_headroom += drvr->hdrlen;
|
|
ndev->needed_headroom += drvr->hdrlen;
|
|
ndev->ethtool_ops = &brcmf_ethtool_ops;
|
|
ndev->ethtool_ops = &brcmf_ethtool_ops;
|
|
|
|
|
|
- /* set the mac address */
|
|
|
|
|
|
+ /* set the mac address & netns */
|
|
memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN);
|
|
memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN);
|
|
|
|
+ dev_net_set(ndev, wiphy_net(cfg_to_wiphy(drvr->config)));
|
|
|
|
|
|
INIT_WORK(&ifp->multicast_work, _brcmf_set_multicast_list);
|
|
INIT_WORK(&ifp->multicast_work, _brcmf_set_multicast_list);
|
|
INIT_WORK(&ifp->ndoffload_work, _brcmf_update_ndtable);
|
|
INIT_WORK(&ifp->ndoffload_work, _brcmf_update_ndtable);
|