On Tue, 2017-03-14 at 21:51 +0000, Arend van Spriel wrote:
> To support network namespace the driver must assure all created
> network interfaces are in the same namespace as the wiphy instance.

FWIW, looks fine to me.

>       memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN);
> +     wiphy = cfg_to_wiphy(drvr->config);
> +     dev_net_set(ndev, wiphy_net(wiphy));

You (almost?) don't need the wiphy variable :)

johannes

Reply via email to