Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2014984rdb; Tue, 3 Oct 2023 07:56:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmcQOUsQ50z4aU4+shz1J9tSdP6lAryiTQ1e6vjOK8z3Np3lTEB8Ro7vxu78gtAyTeK7rd X-Received: by 2002:a05:6a00:15c5:b0:690:9a5a:e34e with SMTP id o5-20020a056a0015c500b006909a5ae34emr5279347pfu.12.1696345009444; Tue, 03 Oct 2023 07:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345009; cv=none; d=google.com; s=arc-20160816; b=mWzOtTxneVfFTuG4e7AxRZrq6E1gkWesDkInKuaNaUvPxTM2UOYDHUqJIHegAFv95Y fGe8F+QDaDvAkxjhSwjOg+XyLn3qXOZHVusNasxWDK52uCStLu/CXfE3Uo/MWn91yATq W375hZt4QYME/sXTPSOl9HFsKtIL+nirzK8/ExWjUhlBAEaTeGMwVRYk0YXqq03mRXBZ 90n+4O+1T3kTVD4DFETZ00Aazi5N8KCFls1tKRxvta7nYLhPT7MSTJttrDCveSTr/rQk Kv1RjS2YHuwLZRANw9bGljHAsr2RDkkLOh2RDxUwkoqZSAza2Q5wVKJn3WUm+ahleqLQ W21Q== 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=VcJ+MjsHgXQgL5BjiXHpO6TTv+zJ24fcyEwPWOGUDUQ=; fh=5Sz5que8D2CJAzUzaptsHKBQ6LECXuqhufEWkzFF23M=; b=KMFmp4pgfhlszHpH7l2kr0LdhGZ5ASEdzZm5W05U5Ziqj/Mh5fmf8d9JrkBP0f69Lb B6UcdrHHznkKM+uxkK45KvwFKvkRjWdWOlGwldk3SfxxCEKtp2YFLqKcVZEGf+5Axb3a B2/7wJwakybnF5pPEMawgjtlqPUY32S9WvpUIdnc6Aj2wKxIvGWrK5VwxaVcdXoN5Qnq X0iQc7VOi8Gp+EP6Eadl/R++RiCmMwmG4uQr8PXPmyjaBDrNh9yAkhCLy7Aa0AU5WbV7 gauSQL79gRIY4eA8lpc3QynJ0X8Ap2RKuKFPRpV359FmLJYlGBuREtrfEhAmDyTidHb4 eQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JteOu6sm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b4-20020a056a00114400b00690f9ca0f99si1662448pfm.12.2023.10.03.07.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JteOu6sm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F1DDE80465D1; Tue, 3 Oct 2023 07:56:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240398AbjJCO4c (ORCPT + 53 others); Tue, 3 Oct 2023 10:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240717AbjJCO41 (ORCPT ); Tue, 3 Oct 2023 10:56:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F3FB173F for ; Tue, 3 Oct 2023 07:56:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 691DCC433C7; Tue, 3 Oct 2023 14:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696344973; bh=p0AgQWyC7sV+5Z0KZ2RWo84QUqVPvvrxy7P5WybgfBA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=JteOu6smdI73xmfL2Gj/5UxP+Jfrh/iElevnZvhn2tThq0DhhZqMiBSpcPjz0gmu1 e2je7eOU/WH7Qr+h92BTDaavu6fzHKwlYWaRbURygw27uTdX6CrJKt5xFtsWO6Q4fz Y8/PpPWt96bGpqDOiVR9hbT4eDMrggw6ADT6NbI37OnNqJvn4Gw67DLQP+tgiMWYJz vd92qWv5n7iU5z3CjNR2pNIvsynPcdAUPZA0st2MZCfnLyzI21kvKBbOz5ISTV3mB6 qeX0TMZRFRkx+KZ+00P+/h22UH6s2vjdRpmLaC/kP2se8wzk3Lakd50OPWnbuu0cuH SsEYRovi07AEA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: Encoding regdb.bin in board-2.bin From: Kalle Valo In-Reply-To: <20230131123422.24985-1-quic_karm@quicinc.com> References: <20230131123422.24985-1-quic_karm@quicinc.com> To: Karthik M Cc: , , Karthik M User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169634497029.182212.8117239239886289035.kvalo@kernel.org> Date: Tue, 3 Oct 2023 14:56:12 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:56:46 -0700 (PDT) Karthik M wrote: > Currently regulatory database information are in regdb.bin outside > the board-2.bin. > > In this implementation, Add support to encode the secured regdb.bin > in board-2.bin along with the bdf files. > > New api(ath12k_core_fetch_regdb) fetches the board specific regdb > from board-2.bin. If it fails, it downloads the default regdb. > > Firmware receives the binary over QMI and verifies the signing. > If it is authentic, the binary will be used. > > Renumbered the enum ATH12K_BD_IE_BOARD_EXT to '2' since it is > not used in the code. ATH12K_BD_IE_REGDB enum will take the value '1' > as per the ath11k upstream design. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Karthik M It's a long time since I tested this and this doesn't apply anymore so I cannot give you any detailed report. But IIRC I noticed in my test that having just board.bin didn't work anymore. Please double check that, rebase and submit v2. Patch set to Changes Requested. -- https://patchwork.kernel.org/project/linux-wireless/patch/20230131123422.24985-1-quic_karm@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches