802-libertas-set-wireless-macaddr.patch 435 B

1234567891011
  1. --- a/drivers/net/wireless/marvell/libertas/cfg.c
  2. +++ b/drivers/net/wireless/marvell/libertas/cfg.c
  3. @@ -2174,6 +2174,8 @@ int lbs_cfg_register(struct lbs_private
  4. wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
  5. wdev->wiphy->reg_notifier = lbs_reg_notifier;
  6. + memcpy(wdev->wiphy->perm_addr, priv->current_addr, ETH_ALEN);
  7. +
  8. ret = wiphy_register(wdev->wiphy);
  9. if (ret < 0)
  10. pr_err("cannot register wiphy device\n");