Skip to content

Commit

Permalink
brcmfmac: set wiphy perm_addr to hardware MAC address
Browse files Browse the repository at this point in the history
This allows e.g. user space to use /sys/class/ieee80211/*/macaddress

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
rmilecki authored and meijjaa committed May 12, 2016
1 parent aba603c commit 3c273f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c273f9

Please sign in to comment.