Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1012374lqb; Sat, 25 May 2024 01:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUui/NPFSxZMbyzHbXHhLNj3B0DC99ujmKry8H6BmcwLbsKtzqdz46Kebex7RCU+uXnuMQ4kkpDOfR3J1DphJkrRpBPmnbcZ0ArixwUDQ== X-Google-Smtp-Source: AGHT+IFBm0OmDUSTszB3UFid6tteSLBGKeHa1eJKXRTNy0S06cPoIPeXqJQk2uJcWyjvYd8Daomf X-Received: by 2002:a17:906:d8da:b0:a59:d133:87db with SMTP id a640c23a62f3a-a62642e0799mr334557466b.42.1716627347906; Sat, 25 May 2024 01:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716627347; cv=pass; d=google.com; s=arc-20160816; b=tCdtMBJsu0hqJCMHq8OTjC3uaLcrQqkHcMPIbjX1gxjOvE/MCiTez/NHYaw6+rOJ5/ dKyjc8OdtFemphNjF0a/bRxsjJmirZu1F6DLFexHvU/7O86J7e6YH488OL/VIx/G7/IE soYnkwNJDSjrZeLTzzSK1lGKV51Tt0II5w4GyF9s2mCqcu7bMFjuT2KxGj2hDqeUsFHn AvpNjuPca2jOemXP8/UR6WiBgXEGVvTccI3IDglbdNvWGBfNfbrFl0WJbTwwR0U4AhgV iywKjY71WWXe3ZvWRXSJQHv2K2rCsFZ4oCMXt0p5S3KRq/bDd6mI+A/85Kn9Q3smEvxc 31Fw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=uWyC0Geef04sy0uSDU+KKMFfTiCtbAGuMAdBBuMK81M=; fh=tPHBA95q4A2JsKJMw3mMqQ5Xsp/Qmg3wcY5CiIlDe3k=; b=A9TOQnP73UQSLIM3uvkiHE+lGSYH5rt2vNNYyGOSKVNgS3vOXaLmYfOE93ywijMVKx eo4gptAyqWUNUyzEZqWjB/SO8hqkFvui6GniZeEg7BS/uGO6XbjEwUmGH8/8K1yRvRoa hHSSGkhBeGLYMK4Jjm3Yqaate4ubzaYVep6O+38JleFMhm4DLd+YhhxKI13n/su/H8eg rL3ZfKBexmCgG+8ryZaRJwgi/dtqKSoYhhoOIikewblc05XeBVXmZkWKBocRQ6lvxsdT Nh8jbP36gqul1XhCRhTNzaUeeFsw/pH3zZAALTbxhnoawiswtwBPUOcqwK8ZeTdwdxst jpVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OmXL8+v1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cdd3ee4si163707466b.1032.2024.05.25.01.55.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 01:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OmXL8+v1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 94FF81F21532 for ; Sat, 25 May 2024 08:55:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F12617996; Sat, 25 May 2024 08:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OmXL8+v1" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEF4314AB4 for ; Sat, 25 May 2024 08:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716627344; cv=none; b=PyVcyOq7gSD0DyPgySAOh9Mlt1qThmJGxsuLu9ILo9tIxZvWUCkU/8xOZgm30bMOjXJovaRBbe/dP7eBk6rphQw/K66DxtHUQFl9N3dyn7RbEX6KzPqoxKK0zvkzJbFe9TTlrR1ibHXxI/sDcXlqt4pcY1HJdfwD20FMFExR4BI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716627344; c=relaxed/simple; bh=vRlLiGVQLYkGHgihrU5LRwI/0w5cQxdSPkQgFhFx2y8=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=iAhKldUGXCRfyv75bfUyb3Vl8AJxkzvQRKFMS/sJirIYTTscwYcf4E1nHrOQvTMH89hjvc6rcV7l8TxzMHFwGPbOZZCCxu0dw+KWjQZ0eAUpNlYMqwGOxepGBZ/Qy8uzC2CpnC9JtLokpSmM0oMA7wHbatQq+lsJAxmgSzx1dVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OmXL8+v1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 981F7C3277B; Sat, 25 May 2024 08:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716627343; bh=vRlLiGVQLYkGHgihrU5LRwI/0w5cQxdSPkQgFhFx2y8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=OmXL8+v1UpLuh1mxY5YBCvz0TAJuxjscoKET04bhyxnrQArPQ88Q42NlnppXgxcv0 P/Se8l/5ozWx32BQnh2qXcCQ+Pqm9c9JRIDNFFZ/RSANQwRJ+vbSO35GFzIJdQZy5o 7QGLZJ7dirfQTu9WQQ4AlaoLCX5/vgU3YeroxXpwdexyEztQWNyGY9vUFYz2H2yYh9 l9ErEsgkhscXrFnjCaS3fTjIIGqNIX/0DkJP58ck8gQhoWh+TaYdeAeXhuWcqmFWjk JnB7K8ExttfyvBqR1nTqUwqEM0C6M6SGuwX1jOAnMGu5laE+NkC1S7LM3ZfRkARwy8 SWxyEwaK1MIrw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/2] wifi: ath11k: refactor setting country code logic From: Kalle Valo In-Reply-To: <20240520024148.5472-2-quic_bqiang@quicinc.com> References: <20240520024148.5472-2-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171662734104.564311.15000751988973105599.kvalo@kernel.org> Date: Sat, 25 May 2024 08:55:42 +0000 (UTC) Baochen Qiang wrote: > ath11k_wmi_send_set_current_country_cmd() is called in several places > and all of them are just simply repeating the same logic. > > Refactor to make code clean. > > Compile tested only. > > Signed-off-by: Baochen Qiang > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. b363614c0c80 wifi: ath11k: refactor setting country code logic 7f0343b7b871 wifi: ath11k: restore country code during resume -- https://patchwork.kernel.org/project/linux-wireless/patch/20240520024148.5472-2-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches