Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp357912imn; Thu, 28 Jul 2022 02:57:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSYEx9c+/iNu6HsVwEtNr47oxFzsKEC0bPy5zdPPYYuvuBCztX0H6fNAqXRae+BHRmeGrc X-Received: by 2002:a05:6a00:a29:b0:52a:c0c3:4379 with SMTP id p41-20020a056a000a2900b0052ac0c34379mr26424460pfh.15.1659002262325; Thu, 28 Jul 2022 02:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659002262; cv=none; d=google.com; s=arc-20160816; b=uLaAfUKIlwTS2rO4gtDyrAS+/7DwTzXO7t4uF5p+wY48oVH5b4Dg9loJxsyB0Q1CRC Qbcwk8cKNGZlz6fzkVN67sa2u+8XunukE3R2/n6614U3MPjB1JQcIFeolxv8FJ/FEYDw 6s6y/+1apThQ/Jkw2K1zbC80xwzrQOQWcWL0mrhO+CoiXgehFpazSsidp5coCiMHVYf3 pclFFRV18Acm82Qrm3IiXaorlIqRKo2O1uspJCo0bj5fMo5yS0s/pvemEvVjUh1d+46z WIeW/Iyd7Bc2NHi4ewR5jHwXkSR77JBmUffV2D0WrIIvXOcA9/STP1CA1qcaMxVlBznb 1mMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=L7N5Ze4aEriLZkN0cZ0lND8Q9xAsUG7K8wkZ9ieoQF8=; b=NnufRskRB0MSoLKFl3fGz2o5PgTbKBMlfRT5slhl5F92aqkL8Yy+jEMLn718BMvj33 gYELuxVaCwwWrupByAEx/8CGUTgrnzLToW6GzUZOjrQhxOb+GQvR7reT2PxuKlbmjQpc 09BYtAeN5H0lfbmMKOGqOIlX/mrwAInycsui7gj8hj2rqSem526k4eIdFGZpMG5KwXEB rb9gDqJm7RWYneSywzOD3h29mVtJlmJJTO2rU6yUtnPM1ZYKJq1DQiYEiVF9lFbGkZCQ WbJfEihWq6VPDmcbwp6hi3D6SNPO03150C7UCaeJkji9PKF/WsD1ZMp/n/QNNJi4SwM8 tU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eG+7L13G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020aa79d12000000b005183434ec7csi179564pfp.363.2022.07.28.02.57.32; Thu, 28 Jul 2022 02:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eG+7L13G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235396AbiG1Jxp (ORCPT + 65 others); Thu, 28 Jul 2022 05:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiG1Jxo (ORCPT ); Thu, 28 Jul 2022 05:53:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10A5E15A2E for ; Thu, 28 Jul 2022 02:53:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A0CE061070 for ; Thu, 28 Jul 2022 09:53:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80226C433D7; Thu, 28 Jul 2022 09:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659002023; bh=ptUJBrqHeccfmhviMwnCZdNFtmr4681k56sIlY+1o0k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eG+7L13GtvsHlZS9YA4WiKVKni6CF31En4vWhQ4CBc5qy/kyV27CTHl94jmpJ8ujX CzULc1mI9DUhmaME7v73S72rHcUVXygxlYbB2VGagtyaaKGhQJ+iYiEAnTPQluR9et W8TcuD+NYHZVwPxTesU+xy4VrVMbRru4QGm4aJl3xFsbLiWwTLDEAKpj1X6yj5u55T CpndVaP3LoQY4cIWTSaLrVIm3CI479PLSb21RDJKmGWKg6VAU1h89+wj5TEexwnFbz XemVfVkaYbMFTrfPaAmVYU9xd1O54/6QQLwLOjs9UySI6itteb55A3fP20SYPsH2hL H9O+daNysdKhA== From: Kalle Valo To: Arend Van Spriel Cc: Hans de Goede , Franky Lin , Hante Meuleman , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: Re: [PATCH 2/2] brcmfmac: Replace default (not configured) MAC with a random MAC References: <20220708133712.102179-1-hdegoede@redhat.com> <20220708133712.102179-2-hdegoede@redhat.com> <9bf3dc09-73df-8914-aa13-68ed9d48f350@gmail.com> Date: Thu, 28 Jul 2022 12:53:38 +0300 In-Reply-To: <9bf3dc09-73df-8914-aa13-68ed9d48f350@gmail.com> (Arend Van Spriel's message of "Fri, 8 Jul 2022 20:27:57 +0200") Message-ID: <87bkt9o95p.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Arend Van Spriel writes: > On 7/8/2022 3:37 PM, Hans de Goede wrote: > >> On some boards there is no eeprom to hold the nvram, in this case instead >> a board specific nvram is loaded from /lib/firmware. On most boards the >> macaddr=... setting in the /lib/firmware nvram file is ignored because >> the wifi/bt chip has a unique MAC programmed into the chip itself. >> >> But in some cases the actual MAC from the /lib/firmware nvram file gets >> used, leading to MAC conflicts. >> >> The MAC addresses in the troublesome nvram files seem to all come from >> the same nvram file template, so we can detect this by checking for >> the template nvram file MAC. >> >> Detect that the default MAC address is being used and replace it >> with a random MAC address to avoid MAC address conflicts. >> >> Note that udev will detect this is a random MAC based on >> /sys/class/net/wlan0/addr_assign_type and then replace this with >> a MAC based on hashing the netdev-name + the machine-id. So that >> the MAC address is both guaranteed to be unique per machine while >> it is still the same/persistent at each boot (assuming the >> default Link.MACAddressPolicy=persistent udev setting). > > Reviewed-by: Arend van Spriel This is nitpicking but as you are the maintainer could you use Acked-by instead? That way I can immediately see in my patchwork script that a maintainer has acked these and I can take them. Just trying to optimise my workflow :) -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches