mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
mac802154: set phy net namespace for new ifaces
This patch sets the net namespace when creating SoftMAC interfaces. This is important if the namespace at phy layer was switched before. Currently we losing interfaces in some namespace and it's not possible to recover that. Signed-off-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
e64c97b53b
commit
abbcc341ad
1 changed files with 1 additions and 0 deletions
|
@ -663,6 +663,7 @@ ieee802154_if_add(struct ieee802154_local *local, const char *name,
|
|||
|
||||
/* TODO check this */
|
||||
SET_NETDEV_DEV(ndev, &local->phy->dev);
|
||||
dev_net_set(ndev, wpan_phy_net(local->hw.phy));
|
||||
sdata = netdev_priv(ndev);
|
||||
ndev->ieee802154_ptr = &sdata->wpan_dev;
|
||||
memcpy(sdata->name, ndev->name, IFNAMSIZ);
|
||||
|
|
Loading…
Reference in a new issue