OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33d591
)
brcmfmac: set wiphy perm_addr to hardware MAC address
author
Rafał Miłecki
<zajec5@gmail.com>
Sun, 31 May 2015 00:52:26 +0000
(
02:52
+0200)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 8 Jun 2015 11:26:43 +0000
(14:26 +0300)
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>
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
index
e10fa67
..
5cecd67
100644
(file)
--- 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);