Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2476649rdb; Mon, 5 Feb 2024 07:44:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPqoa8J8jtEmTWTmsZ+CvD6YP8tyBgaGu0lYGUHvkcFHnhcTf/DzCAzUhjGLcQGqjKCThj X-Received: by 2002:a17:903:5c8:b0:1d9:713f:6224 with SMTP id kf8-20020a17090305c800b001d9713f6224mr7672756plb.11.1707147899363; Mon, 05 Feb 2024 07:44:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707147899; cv=pass; d=google.com; s=arc-20160816; b=wAbm5Qod1pXd/1pjf4AKNh0tWQJZRSi9/NmpA5UNS7rDyxHVIG377yweTs3CsSoASN QQkTyazS1tN6SsA3TlrhBJ5uKQ/FTSDK0SRoYthuHyf9p1WF9UyG07lCXiKZLOKycHqi oe6Dx2C75GeHIVrGj+AjAGrNPgrW5LXnxZrbDLmBa85wZ1kTJ9RrK5k2pwrLYcrIPwaq gZ7e69V4WJgglAhXOvhGsQXn83K5QkO3SjSUUqrjAU+oSpp1vhpFxjJ5tpGk16xhvjmO QO/zhfBENAsyWHbXZlyote1a8fID/bDB3M7Ys9QNsxQAXV6FxqU3hBpihUL2z9oz/5vT UMmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=3NBvNB3ukRCgMCQkFC8ukY1dajvBGzdDfaCB28xna0M=; fh=xSCtcnBZYzmPb4o69QN6WCk20PWpffr1lXD97ExIqoU=; b=LhUsu+5ibH9/jFhMBFML5juuxbQl/OUXF25qySkO9vB0Mkg+3++pOXWt8xjMo7XRzu OS14vn/MU2z+mVbBMWimiqeHAojFIqFZ94geM7OjQUcx0kzV3fTuvJRNtbbPQxSH6qwF dFOjNhpRNEZPTHm4h2u97TdaQ/OUKcmNFLQ9YZbnx5UrNKWMp1o2x2oEF7qUN22FNRGb TWjfrUWfRKzjprgXFK2BDULp1UeQp0R5yuQvRvHUnJSS1CcVICUAShqn+lzkNCmvl5sz kOSBUBrlPFm2Z49cYmZ73fkA7YsLUtBU0XbvjwXnEvEmvBKmceKuZ8uSDY/dGnSvn1pz 8VzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YJ6H9gv5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWmbAuIaTaC6rR80VuJHlxUMHP6ukHCn9xSbiBTlR5ifCo/POCxuwA6vqiDu5RW6dVWIIaWKIMF12Qs3TglaTho8nsHCjvBK3aCAOEF5w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk7-20020a17090308c700b001d9481c14bcsi7817plb.414.2024.02.05.07.44.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 07:44:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YJ6H9gv5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3127-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A85C28A99C for ; Mon, 5 Feb 2024 15:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A9EF2D042; Mon, 5 Feb 2024 15:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YJ6H9gv5" 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 06BBE2D050 for ; Mon, 5 Feb 2024 15:33:27 +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=1707147208; cv=none; b=VLbHi1R/tsHJpkvtz+Mzt4lc602swe5PJs8oQ+Ex1obmv8agvou2/oKWEjG9hyCaiB4XPJ09lr+HJQydVLuT18BgR6/6cgQeiqn/sz0I0DOdHCCZ7AD+GRWMw7OLvU0qdovVmen2288UXIJ9nBtjEyo7oB0jqp3FNWKVTeAAe+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707147208; c=relaxed/simple; bh=6iTFrvJAlXrTQK6rSTcfoffNSGiD1ihYuYHfELRZ3H0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=WmB1UhnbjP/TKNWtvPiZKMDmmptUP48ROK8Zbu6D+3WjrnwErmUB9BkYerw22y7BpXylhG4mZYWsSr4QvPmeZSgrjCCrLvg6S7o6WBYMWFfBbFA0CW5HUwgqmKtYnRvdF3v1zAIDzlRUKBzIENQQa/yzzivaHiV2meGfpP0BfkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YJ6H9gv5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80476C433F1; Mon, 5 Feb 2024 15:33:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707147207; bh=6iTFrvJAlXrTQK6rSTcfoffNSGiD1ihYuYHfELRZ3H0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YJ6H9gv5XVWGRXRfH/CwMgxmQCGECuj8tXdLp2Sg82MBAL9uKTuWVKbHoxTiXQQA9 TU3ZYkoyzjudyl+t/Loo0/Sv9gHFhQzFD+TwfsFHBU15mVUWeXbNnpn0/BqG3KTkiD RkzKAoKiqbBDld6uj9q9ujZQeYIos2BkOuBD/hZEr+8eezElLBhCgro58+/01MOSbM wpIkNhKdYufJFxo26mkd3CbQNZKzA2wsEgSaeI+dTzXiFE+CFoFcFey0IJnBgG3kAh H3F2iHZnyVUNUeak72J/uuiXASJaehW4BMdhSIjf7T1p7z9jbaO4zE89RMmzc+08H3 lAXb5kakT5Gng== From: Kalle Valo To: Jeff Johnson Cc: Kang Yang , , Subject: Re: [PATCH v6 02/11] wifi: ath12k: fix incorrect logic of calculating vdev_stats_id References: <20240130040303.370590-1-quic_kangyang@quicinc.com> <20240130040303.370590-3-quic_kangyang@quicinc.com> Date: Mon, 05 Feb 2024 17:33:24 +0200 In-Reply-To: (Jeff Johnson's message of "Tue, 30 Jan 2024 08:51:06 -0800") Message-ID: <87sf27rkmz.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff Johnson writes: > On 1/29/2024 8:02 PM, Kang Yang wrote: >> During calculate vdev_stats_id, will compare vdev_stats_id with >> ATH12K_INVAL_VDEV_STATS_ID by '<='. If vdev_stats_id is relatively >> small, then assign ATH12K_INVAL_VDEV_STATS_ID to vdev_stats_id. >> >> This logic is incorrect. Firstly, should use '>=' instead of '<=' to >> check if this u8 variable exceeds the max valid range. >> >> Secondly, should use the maximum value as comparison value. >> >> Correct comparison symbols and use the maximum value >> ATH12K_MAX_VDEV_STATS_ID for comparison. >> >> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > should be blank line between unofficial Tested-on tag and official Fixes tag > >> Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") >> > And no blank line here since all the official tags should be together > >> Signed-off-by: Kang Yang > > Kalle can fix the above when he moves into the pending branch Yes, fixed those now. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches