All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address
@ 2015-05-31  0:52 Rafał Miłecki
  2015-06-01 11:47 ` Arend van Spriel
  2015-06-08 11:27 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2015-05-31  0:52 UTC (permalink / raw)
  To: Kalle Valo, linux-wireless
  Cc: Brett Rudley, Arend van Spriel, Franky (Zhenhui) Lin,
	Hante Meuleman, brcm80211-dev-list, Rafał Miłecki

This allows e.g. user space to use /sys/class/ieee80211/*/macaddress

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
 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);
-- 
1.8.4.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address
  2015-05-31  0:52 [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address Rafał Miłecki
@ 2015-06-01 11:47 ` Arend van Spriel
  2015-06-08 11:27 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Arend van Spriel @ 2015-06-01 11:47 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Kalle Valo, linux-wireless, Brett Rudley, Franky (Zhenhui) Lin,
	Hante Meuleman, brcm80211-dev-list

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@broadcom.com>
> Signed-off-by: Rafał Miłecki<zajec5@gmail.com>
> ---
>   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);


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address
  2015-05-31  0:52 [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address Rafał Miłecki
  2015-06-01 11:47 ` Arend van Spriel
@ 2015-06-08 11:27 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-06-08 11:27 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: linux-wireless, Brett Rudley, Arend van Spriel,
	Franky (Zhenhui) Lin, Hante Meuleman, brcm80211-dev-list

Rafał Miłecki <zajec5@gmail.com> writes:

> This allows e.g. user space to use /sys/class/ieee80211/*/macaddress
>
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Thanks, applied manually.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-08 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-31  0:52 [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address Rafał Miłecki
2015-06-01 11:47 ` Arend van Spriel
2015-06-08 11:27 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.