mac80211: backport today's brcmfmac changes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
2 Date: Sun, 31 May 2015 02:52:26 +0200
3 Subject: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 This allows e.g. user space to use /sys/class/ieee80211/*/macaddress
9
10 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
11 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
12 ---
13
14 --- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
15 +++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
16 @@ -6070,6 +6070,7 @@ struct brcmf_cfg80211_info *brcmf_cfg802
17 brcmf_err("Could not allocate wiphy device\n");
18 return NULL;
19 }
20 + memcpy(wiphy->perm_addr, drvr->mac, ETH_ALEN);
21 set_wiphy_dev(wiphy, busdev);
22
23 cfg = wiphy_priv(wiphy);