Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3493205pxb; Mon, 18 Oct 2021 16:51:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEmGIxpR7o0lxiPx0ikub3JC/Rs5qk0u+hHLyXe+PSrWmgFdLrfl3hU4HkzF3DUix/xz03 X-Received: by 2002:a05:6402:3489:: with SMTP id v9mr49233355edc.130.1634601069546; Mon, 18 Oct 2021 16:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601069; cv=none; d=google.com; s=arc-20160816; b=TZ/6w2WahkOUIDKVR1ArTQH9Y4z3f35Vo6zCpHfxJUe0VYI6ckGPnpV5QaJv5c8TpW I83DxV+yypWPGivCAd6Gpdi4vggf/lXG6K6KSp/kcrtABqpYEy6jPElx66uddukAyqED sXkQdl9Wn3p5nGC3XUCNJ9eLlMMQL3MOuXlZfjLv5kFhXiY+I+wDNjDUHmT6UBG0QZVv YFE3flbbGsw7a3P84W5+9cskT3FhNxnKcRDmM6DLKMnE5DymCIBWRS6W5zSNRGJJicxH mQLdTpARps4z+6NiWTtU0gEwkncu3qAob6VwvEzFDqpLfmlA5bR5myqt229y+Et7qwmL aDTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oRNkddSLsC49SAFPYL+uW9Q1dCXqpj14GOHEZZyHpA0=; b=uxUAMVdOYBnoAVPrScRzHT9rjDyHrHa144Jqx44f8lwt6BDsVqU8uG2ChpwujP8GlQ g1FsNQtPe0YrnOe26Zr9pksKiz4138tT06vh8itXeeyV5Q4BUhbUBXJ2+uhVeqP2h2BJ ttCjeqTqV3FTA2DLmAxOiXieEkEEOQTTgxKEsaBaMFqBxKQZ6wiq6ZeiCuU5IzDMaOb0 oJcDaBfcgEdPWpWAIlr6oVt2dV7UyYFOFVvS1JNuzg730JXOFExNZwlyuV/m3+YxAfCv Hj4cNsnTRypk0UFeUNvZYuiRgoby2EJnNgp222fBKSAA/WzuPp77b/hyu6UQS/UbyWAS 9HxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+uJmcIe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si32745915eda.615.2021.10.18.16.50.54; Mon, 18 Oct 2021 16:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+uJmcIe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233660AbhJRXwp (ORCPT + 64 others); Mon, 18 Oct 2021 19:52:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233343AbhJRXwm (ORCPT ); Mon, 18 Oct 2021 19:52:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 526B561212; Mon, 18 Oct 2021 23:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634601030; bh=N+zy+U2tgRh/l27HwBJ04BEcTXccUWflGL4ZqT3xikA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g+uJmcIeHW4XUXuDoS0WoUMbD04z/51oZbeVVf6ut0ZI6SiQmMW1370W632MB2HiW 3bi5WTSva9D+S8+ez1p4bWvJA89AqxwZ0Y4dJiDLsvYYa73VniTNYGdM/eVmDkTFXI gaxTf+1hg2ZlIOMnUF1QV8zls6TGPhY5ElNkW3ERXG2MVdJ/XOHv7E5COpSTS/3KTo zAxyueCO8wosK0gSwHb/CL3acmxilIw6BRtJXBkoaMRlYYjrLmuEF8oJj9CEv8jHA6 BtPP4ytw9A9+f/ldJ8vj06BbliJW/KMSKJlVD0VJDHEXY/bcv7JgQZ4k0DBN9mKcDn EkipNAw6+kXZA== From: Jakub Kicinski To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Jakub Kicinski , j@w1.fi, arnd@arndb.de Subject: [PATCH 10/15] wireless: intersil: use eth_hw_addr_set() Date: Mon, 18 Oct 2021 16:50:16 -0700 Message-Id: <20211018235021.1279697-11-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018235021.1279697-1-kuba@kernel.org> References: <20211018235021.1279697-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Commit 406f42fa0d3c ("net-next: When a bond have a massive amount of VLANs...") introduced a rbtree for faster Ethernet address look up. To maintain netdev->dev_addr in this tree we need to make all the writes to it got through appropriate helpers. Signed-off-by: Jakub Kicinski --- CC: j@w1.fi CC: kvalo@codeaurora.org CC: arnd@arndb.de CC: linux-wireless@vger.kernel.org --- drivers/net/wireless/intersil/hostap/hostap_hw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intersil/hostap/hostap_hw.c b/drivers/net/wireless/intersil/hostap/hostap_hw.c index 9a19046217df..e459e7192ae9 100644 --- a/drivers/net/wireless/intersil/hostap/hostap_hw.c +++ b/drivers/net/wireless/intersil/hostap/hostap_hw.c @@ -1403,14 +1403,17 @@ static int prism2_hw_init2(struct net_device *dev, int initial) hfa384x_events_only_cmd(dev); if (initial) { + u8 addr[ETH_ALEN] = {}; struct list_head *ptr; + prism2_check_sta_fw_version(local); if (hfa384x_get_rid(dev, HFA384X_RID_CNFOWNMACADDR, - dev->dev_addr, 6, 1) < 0) { + addr, ETH_ALEN, 1) < 0) { printk("%s: could not get own MAC address\n", dev->name); } + eth_hw_addr_set(dev, addr); list_for_each(ptr, &local->hostap_interfaces) { iface = list_entry(ptr, struct hostap_interface, list); eth_hw_addr_inherit(iface->dev, dev); -- 2.31.1