Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1902528rwn; Fri, 16 Sep 2022 02:36:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bqSJahVBwq+K7yMHebmngziT+0n8H5wwXJE29/skX0GF/VFkFitFNuuxNsko69Fg7uhFs X-Received: by 2002:a17:90b:1d0f:b0:202:be3e:a14a with SMTP id on15-20020a17090b1d0f00b00202be3ea14amr15291513pjb.102.1663320985572; Fri, 16 Sep 2022 02:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663320985; cv=none; d=google.com; s=arc-20160816; b=PeX1HcoOpXXo2l4ptsVNZMxnMCb/YtfzG8JiePGiO0V120OTlOqofAhPbX2LBNpbIE ByeGtKSZT1MCiabTCSbefTqZdalysLACFq3iFgs/NzN7MXVR2C06GANZesXyOdsDkXr7 4rzHPhoXS4h7QWSCUeTcd9Dj8K20je+KkrQkoe51b1q4D3uE3whXL3DoiyYRYaEfjw6U gXTdJ8WBi4pgYHSY2gHwIu1hhZBtGNGDWeJvHUEvWTM43TNFPprLYo7VqoZrLNf/OYad xJkPrdYnCr95Gr5D10qufzjv7Sr/+4tcZHtcp3Amk5+OtY//b6z94SjcR4E/u6Ziwqv8 fzhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=OKLksVrDeI9wvtGHSidJ9ISQgvKqai4bir4uKXC1U20=; b=r3dbqGV2aI/sVKX4hr2do4pLOMa9ecQ4weHBNZHYPcA8JswiqEFxEnKS6ykJbwb02B rPpJZEugjZNT1IiK9yhHjugm14/eNr75465i03FQ+LVz2LuL/74pyvckqQNXoqumgtD5 oqE9mxIzeAS8Y6nACCpCbKVX0POV8uDqAz3EhNg8//nqN2FpStDTZmop8EpKlpBniXAv myHfpCR8C7P5heWpO1omKViuR3ft7hpEke5ScIF+n+aPvA/JvuxUOCfKBqAfeZUzj90y anooI6qdrc9Q3VE9Imo+9ma3WV0ZjBOTattF7hypoDsepML5/sUzfPYRwWWsDXTST/bu hEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SaERNwbm; 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 k2-20020a056a00134200b0050d80e4935fsi20350693pfu.256.2022.09.16.02.36.15; Fri, 16 Sep 2022 02:36:25 -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=SaERNwbm; 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 S229861AbiIPJbJ (ORCPT + 64 others); Fri, 16 Sep 2022 05:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiIPJbI (ORCPT ); Fri, 16 Sep 2022 05:31:08 -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 6A51CA6C46 for ; Fri, 16 Sep 2022 02:31:07 -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 E509F62902 for ; Fri, 16 Sep 2022 09:31:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BCEDC433D6; Fri, 16 Sep 2022 09:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663320666; bh=IzOoUg24TN9m11Bj4A89EKxSOI/fHreYBOqcQ26+NpI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=SaERNwbmWTRBAJENT2/4FYvsIH6lYJ0YfbyAu/n6kIwzPcFomO+GOnVEudGS4b5nQ 7lpnuSxsqLRGacdL+OuVRgwP9ZzY3Zrt20VzWLxmG7ho68DkVjZDGG8PhI8/Y64Zom afvh5eCpJEVI5386J3Ob2o/V9GFv3ip5co2LDPV7WJR4UobuzkRKsIU04RTgkZ+XTy i4nZ4Rv99dyj1au6S+idnNqcB0dhRQiGTVadNMIaow7dCosA/XZMY9lQh/kqKQriL0 TsVJOY9qI60s9xbUuWoP8Fyb5pbK9e+VGBHhEQf0OEuypVA3cbC37nlce039HriAdv iWw7n5A4bVkpg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath11k: retrieve MAC address from system firmware if provided From: Kalle Valo In-Reply-To: <20220914215408.372520-1-junyuu@chromium.org> References: <20220914215408.372520-1-junyuu@chromium.org> To: Jun Yu Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Jun Yu User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <166332065994.16673.5878780244374823378.kvalo@kernel.org> Date: Fri, 16 Sep 2022 09:31:05 +0000 (UTC) X-Spam-Status: No, score=-7.1 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 Jun Yu wrote: > Devices may provide their own MAC address via system firmware (e.g., > device tree), especially in the case where the device doesn't have a > useful EEPROM on which to store its MAC address (e.g., for integrated > ahb WCN6750). > > Use the generic device helper to retrieve the MAC address, and (if > present) honor it above the MAC address advertised by the card. > > Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 > > Signed-off-by: Jun Yu Fails to build: drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_mac_register': drivers/net/wireless/ath/ath11k/mac.c:8999:9: error: too many arguments to function 'device_get_mac_address' 8999 | device_get_mac_address(ab->dev, mac_addr, sizeof(ab->mac_addr)); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/ieee80211.h:20, from ./include/net/mac80211.h:20, from drivers/net/wireless/ath/ath11k/mac.c:7: ./include/linux/etherdevice.h:35:5: note: declared here 35 | int device_get_mac_address(struct device *dev, char *addr); | ^~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [scripts/Makefile.build:249: drivers/net/wireless/ath/ath11k/mac.o] Error 1 make[4]: *** [scripts/Makefile.build:465: drivers/net/wireless/ath/ath11k] Error 2 make[3]: *** [scripts/Makefile.build:465: drivers/net/wireless/ath] Error 2 make[2]: *** [scripts/Makefile.build:465: drivers/net/wireless] Error 2 make[1]: *** [scripts/Makefile.build:465: drivers/net] Error 2 make: *** [Makefile:1853: drivers] Error 2 Patch set to Changes Requested. -- https://patchwork.kernel.org/project/linux-wireless/patch/20220914215408.372520-1-junyuu@chromium.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches