Search Linux Wireless

Re: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/31/15 02:52, Rafał Miłecki wrote:
This allows e.g. user space to use /sys/class/ieee80211/*/macaddress

Acked-by: Arend van Spriel <arend@xxxxxxxxxxxx>
Signed-off-by: Rafał Miłecki<zajec5@xxxxxxxxx>
---
  drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
index 6fe2b75..955dd0a 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);

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux