Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6896f4fb authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Kalle Valo
Browse files

brcmfmac: set wiphy perm_addr to hardware MAC address



This allows e.g. user space to use /sys/class/ieee80211/*/macaddress

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent f33d5915
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6071,6 +6071,7 @@ struct brcmf_cfg80211_info *brcmf_cfg80211_attach(struct brcmf_pub *drvr,
		brcmf_err("Could not allocate wiphy device\n");
		return NULL;
	}
	memcpy(wiphy->perm_addr, drvr->mac, ETH_ALEN);
	set_wiphy_dev(wiphy, busdev);

	cfg = wiphy_priv(wiphy);