801-libertas-configure-sysfs-links.patch 597 B

123456789101112131415161718192021
  1. --- a/drivers/net/wireless/marvell/libertas/cfg.c
  2. +++ b/drivers/net/wireless/marvell/libertas/cfg.c
  3. @@ -2127,6 +2127,8 @@ struct wireless_dev *lbs_cfg_alloc(struc
  4. goto err_wiphy_new;
  5. }
  6. + set_wiphy_dev(wdev->wiphy, dev);
  7. +
  8. lbs_deb_leave(LBS_DEB_CFG80211);
  9. return wdev;
  10. --- a/drivers/net/wireless/marvell/libertas/main.c
  11. +++ b/drivers/net/wireless/marvell/libertas/main.c
  12. @@ -986,6 +986,7 @@ struct lbs_private *lbs_add_card(void *c
  13. goto err_adapter;
  14. }
  15. + dev_net_set(dev, wiphy_net(wdev->wiphy));
  16. dev->ieee80211_ptr = wdev;
  17. dev->ml_priv = priv;
  18. SET_NETDEV_DEV(dev, dmdev);