DHDAXCW-Rockchip-OpenWrt/package/kernel/mac80211/patches/mwl/801-libertas-configure-sysfs-links.patch
LEAN-ESX 756611ade4 Revert "mac80211: bump to 5.3-rc4-1"
This reverts commit e170f6fbc02aff80bd475e70b931e213959b9168.
2019-10-19 03:01:12 -07:00

22 lines
579 B
Diff

--- a/drivers/net/wireless/marvell/libertas/cfg.c
+++ b/drivers/net/wireless/marvell/libertas/cfg.c
@@ -2041,6 +2041,8 @@ struct wireless_dev *lbs_cfg_alloc(struc
goto err_wiphy_new;
}
+ set_wiphy_dev(wdev->wiphy, dev);
+
return wdev;
err_wiphy_new:
--- a/drivers/net/wireless/marvell/libertas/main.c
+++ b/drivers/net/wireless/marvell/libertas/main.c
@@ -930,6 +930,7 @@ struct lbs_private *lbs_add_card(void *c
goto err_adapter;
}
+ dev_net_set(dev, wiphy_net(wdev->wiphy));
dev->ieee80211_ptr = wdev;
dev->ml_priv = priv;
SET_NETDEV_DEV(dev, dmdev);