Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2462690rda; Wed, 25 Oct 2023 03:36:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUGIi8bJfmf/2tHCmj1J4dnYLFiIY29rjwaQLSHJjUIklqrkbubjFgK04cZGOP6+FGMhFr X-Received: by 2002:a0d:d5ca:0:b0:5a7:d986:a9bb with SMTP id x193-20020a0dd5ca000000b005a7d986a9bbmr17104250ywd.3.1698230195040; Wed, 25 Oct 2023 03:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698230195; cv=none; d=google.com; s=arc-20160816; b=RVuwK+wcJGli3dneClzd3nw5ukF7Fbqjyl7HkZ5rR+cB4uogYVjODM58o2I3RV1lCz rd0++fB4dAYESKkXfcgtPAqQIIfyv+WcJVMSEbdBgqfRjaWvYompJ7Q9ouXfC74P4PJw d9W3I1SKEC1xsNa0JiIDhIda00nMKYVxoY+slDeB8YthatH+UEcRsih5FLRZWcpFk9xr VAcwy7uPsAYHPMyD7ieE/fPa1sPS33XSOk9+qSxB1/RFX3qiXHpzg6lOF65vfSPXCAsH j/T4xd+paU0BRIcyO9hrY65hmbtf1Fk8DNGW69v6cHTrR888bmvW0MDFBGh3AZwWANJB sfHA== 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=BGkAfU+Mta5rYpbVptqc3ScdH6dJiGg3rVOr/iH+des=; fh=hOlNCe6JnxyqDAD+Mh2Kgp9q2Z/M5zK1xhKt3xVRAwU=; b=ARbb0c5dozB55J7IHfsuiWokC6OLUcSOZCeqB5Xdt5Q6bmZZF7b3BhJPC5DqQT8PYb 3TkIefCbpDSYzqOzF2XQhZ/CTxwYyaeFMAbVHrqx4ZqiL/F/djLAS5Uo86JEkboJoPmI EeuN1ok4Qxb/be10b+fWA9sTMSsZ75i0YgzMTETkkV1uaQLZwvh0PZKLDl6SYnisk/xK N+pT76THS0UnwImEdmEfZbadiAIvkgxzoO7G1gZTHqNhfeX13vcyzPIrVccst6E2T3JC iJVidKwqkGmmvIw0bQ9M2UAAAivIlyk5LnCpYspCzYleId43tvU8jAkoS8h6urmRhh8b Dl5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="I/jJU600"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i20-20020a81d514000000b005a81924b7ddsi11448004ywj.447.2023.10.25.03.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:36:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="I/jJU600"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 5364A80615D0; Wed, 25 Oct 2023 03:36:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343784AbjJYKfq (ORCPT + 52 others); Wed, 25 Oct 2023 06:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343703AbjJYKfN (ORCPT ); Wed, 25 Oct 2023 06:35:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF1B10C6; Wed, 25 Oct 2023 03:35:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44581C433C8; Wed, 25 Oct 2023 10:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698230102; bh=58+Mou08nY22qSI2kcR2X7ao1pMoXvcAK23BpqCVe88=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=I/jJU600/ucSi3pl2JckyZP+QNnU8dUO4msq+9w2vatOjNPDIsEJWD933yb9yGyYj IPdm5HNN5cL6GTuN+1KRN24kah4UKuWRcK+IRbWJZJw10o7kHIAsco6nNiscrO0VVY /yNTFNH5Vd82k+klWbVmoOvXXHfgsik7SEOv6dj80tlFITQc+5leWRdK/mqrGlFo6p clKq2eMG+YzKsz6+ZnsewS8LtRT0Eg1QMIgRr7aAJxVJD1UYDK17NtsVWkhYNB9onP oUoSTeAtrw5ZpzuqZCuUWUkjwGcFMoXWEcfG4UYJRq67OA9yWk+m8BJxE5Mhuk+Ei6 faVRMQwnyx2wQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: Introduce and use ath12k_sta_to_arsta() From: Kalle Valo In-Reply-To: <20231019-upstream-ath12k_sta_to_arsta-v1-1-06f06f693338@quicinc.com> References: <20231019-upstream-ath12k_sta_to_arsta-v1-1-06f06f693338@quicinc.com> To: Jeff Johnson Cc: , , , Jeff Johnson User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169823009956.891844.2307289880340272431.kvalo@kernel.org> Date: Wed, 25 Oct 2023 10:35:01 +0000 (UTC) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:36:01 -0700 (PDT) Jeff Johnson wrote: > Currently, the logic to return an ath12k_sta pointer, given a > ieee80211_sta pointer, uses typecasting throughout the driver. In > general, conversion functions are preferable to typecasting since > using a conversion function allows the compiler to validate the types > of both the input and output parameters. > > ath12k already defines a conversion function ath12k_vif_to_arvif() for > a similar conversion. So introduce ath12k_sta_to_arsta() for this use > case, and convert all of the existing typecasting to use this > function. > > Signed-off-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 9ef118152ee0 wifi: ath12k: Introduce and use ath12k_sta_to_arsta() -- https://patchwork.kernel.org/project/linux-wireless/patch/20231019-upstream-ath12k_sta_to_arsta-v1-1-06f06f693338@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches