diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-06-08 12:50:38 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-06-08 12:50:38 +0000 |
commit | fde35cdc51e56c45c765c9d7c5edc73af62e9915 (patch) | |
tree | 4bb499accd074535ea5a5d4f74546e051704267f /package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch | |
parent | fffad27014a043339241fce3c5f45c7d4a795936 (diff) | |
download | master-187ad058-fde35cdc51e56c45c765c9d7c5edc73af62e9915.tar.gz master-187ad058-fde35cdc51e56c45c765c9d7c5edc73af62e9915.tar.bz2 master-187ad058-fde35cdc51e56c45c765c9d7c5edc73af62e9915.zip |
mac80211: backport today's brcmfmac changes
This adds support for SR400ac NVRAM and fixes
/sys/class/ieee80211/*/macaddress
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45928 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch')
-rw-r--r-- | package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch b/package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch new file mode 100644 index 0000000000..1eff6ed83a --- /dev/null +++ b/package/kernel/mac80211/patches/381-brcmfmac-set-wiphy-perm_addr-to-hardware-MAC-address.patch @@ -0,0 +1,23 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> +Date: Sun, 31 May 2015 02:52:26 +0200 +Subject: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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> +--- + +--- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c ++++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +@@ -6070,6 +6070,7 @@ struct brcmf_cfg80211_info *brcmf_cfg802 + 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); |