diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-05-31 02:52:26 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-06-08 14:26:43 +0300 |
commit | 6896f4fb5a34583b712e5c86777687772c5eeb5d (patch) | |
tree | fd87196fc9bd3599eb0cd17ae4a5cb5bef7e1f2e /drivers/net/wireless | |
parent | f33d591539bd07ec9cdb8c44b0075fb0423d0329 (diff) | |
download | op-kernel-dev-6896f4fb5a34583b712e5c86777687772c5eeb5d.zip op-kernel-dev-6896f4fb5a34583b712e5c86777687772c5eeb5d.tar.gz |
brcmfmac: set wiphy perm_addr to hardware MAC address
This allows e.g. user space to use /sys/class/ieee80211/*/macaddress
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c index e10fa67..5cecd67 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c @@ -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); |