From patchwork Sun May 31 00:52:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 6514701 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 300249F38D for ; Sun, 31 May 2015 00:53:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38C512055A for ; Sun, 31 May 2015 00:53:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62EB0205ED for ; Sun, 31 May 2015 00:53:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756819AbbEaAwi (ORCPT ); Sat, 30 May 2015 20:52:38 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:36119 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754529AbbEaAwh (ORCPT ); Sat, 30 May 2015 20:52:37 -0400 Received: by wgbgq6 with SMTP id gq6so88567157wgb.3 for ; Sat, 30 May 2015 17:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=MxcwzGU6ElOr4BAB5ztalpRv/uzzUYZeQWxKhDRRYuI=; b=RFfuDP8PvswY2sV6HgbbWzkeRAvAAj1HqY3zkvjfVsWwDLo+wKjxFhkZR23/mU2afz ikaGqL+UV0kN88Uf4y0TZjrjr4St9cOX9XQKneAxHNxPHlcJBs9grOhyTdg6lsvxwtfO 21Ria5anUld1/36HHDSjqXlF3yDMDWGDelGnxs7tdGiQQPi5TQEQXj8xR4Ndrmkhq038 7iYkogdfUu3Jg5F2UrrlCsyQEw/VpxFooCbcCcZ1dLpn5Zn3tDt/W+aGQKfX/HfHUULE SnCzU7hwu1TcazaDibBdb9Wz3G/Xt5VjXOfv4YggCkI1u6rFAuEtCsNIVU5pXDZAC6u3 80vQ== X-Received: by 10.180.96.232 with SMTP id dv8mr8274437wib.22.1433033556443; Sat, 30 May 2015 17:52:36 -0700 (PDT) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id xy5sm14917931wjc.35.2015.05.30.17.52.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 May 2015 17:52:35 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Brett Rudley , Arend van Spriel , "Franky (Zhenhui) Lin" , Hante Meuleman , brcm80211-dev-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] brcmfmac: set wiphy perm_addr to hardware MAC address Date: Sun, 31 May 2015 02:52:26 +0200 Message-Id: <1433033546-19214-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows e.g. user space to use /sys/class/ieee80211/*/macaddress Signed-off-by: Rafa? Mi?ecki Acked-by: Arend van Spriel --- 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);