brcmfmac: set wiphy perm_addr to hardware MAC address
PATCH 1/1 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 <[email protected]>
--- drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +1 -0
@@ -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);
Signature · 1 line
1.8.4.5
Quoted 1 line · Rafał Miłecki
This allows e.g. user space to use
/sys/class/ieee80211/*/macaddress
Acked-by Arend van Spriel <[email protected]>
Quoted 17 lines
Signed-off-by Rafał Miłecki<[email protected]>--- drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 1 + 1 file changed, 1 insertion(+)drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +1
-0@@ -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);
Kalle Valo
AppliedQuoted 3 lines · Rafał Miłecki
This allows e.g. user space to use
/sys/class/ieee80211/*/macaddressSigned-off-by Rafał Miłecki <[email protected]>
Thanks, applied manually.
Signature · 1 line
Kalle Valo