Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1038807lqa; Sun, 28 Apr 2024 16:01:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+LqBNuVT3pge6igzOk21yIc2/PZUiJvy/j7ZkGPlpoa5445qIeJGwPnM/LTTRN1J2gFCCmlMM1awyasengN2XApUv6v2XRpydraQEow== X-Google-Smtp-Source: AGHT+IHlvLnqqxCLlh8FINhgBtR5unEMzX+rwLgND8n3raDcJO2i+zt53mOyTmF0ZhdpQDJrpK/3 X-Received: by 2002:a05:622a:4e08:b0:439:d0c9:1677 with SMTP id dh8-20020a05622a4e0800b00439d0c91677mr10860207qtb.47.1714345290307; Sun, 28 Apr 2024 16:01:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714345290; cv=pass; d=google.com; s=arc-20160816; b=G5smF6c4RWEXafAi64CrMSiK2MJE5FmKNv8+1c1I5DAeDuhAQ9kW7YCbLpvGpE7nn1 j4S7IscyN42ttLUkSgmYpEtFFAvanRB6OcuDgDo45T2HpK+aDrznTjoxnkr0Mt6J9Hsi JdbHVQ9eQTVcm/V++cmWKsa+nF0YlwGTLEb6Teo6mGzdoZ2RV0sUJUM7bn9RWW4qKqqO eykgBdxy7rv0fzvzhUqk/AcdOekOfNUCmvlupi7FMV4kB9h3IhsOlUcrStI6IGODDx0m DX1vV41O30Z2bd3bnAVhEknyZ60faHgi5r2TEA2h6/7HxWAAR7g3qDHCCP1Ow06xNQ55 P9LA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=6KENCVx6uegL7ew41ijCYKGsXuud/xPQNe/tRNshJuk=; fh=kJ3NcnCg6QcWuPr0R749ocKk4jnGHH3KRX8wtgaBCXo=; b=Cms3w3gS0SR9+dvrQ+w6FS930SM+RlujXbEeWpgphlaazCpc3bb1/d6ZJCDBIQxeJy wIwtVaHUokEfggRVd9ZU3tLCQZ3uzCLv6D4yaQM226BwBc0sluLdAPk/aOSSdQPzOpHK YkVN5Y9q/NxQZEXhbcb4hbktJG+WWEtI4zjKGuC68eGDwDUThDaZJTKtnCMLUJpV+PEq RoGcoV9Ti/Zpg6DlYqmlclnOi1biBA3opAIik0nFtULlLEMXy+8v5hA6Xz/HkKMUARNc /cgGgaB7NgU3GIx3FnyDWQnHJgka0/61vz1TYyh51bgdfQuT7l611TwTLc+7+PV/tiVK zcog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=WLUFGZ8P; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-161608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161608-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dr7-20020a05622a528700b004347d76f444si22837869qtb.597.2024.04.28.16.01.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 16:01:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=WLUFGZ8P; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-161608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161608-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B83F1C20853 for ; Sun, 28 Apr 2024 23:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F2FB2260A; Sun, 28 Apr 2024 23:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="WLUFGZ8P" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC82D1118E for ; Sun, 28 Apr 2024 23:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714345273; cv=none; b=ndrWdnp6Wv9e8Pf0D6N1/841S0hBokdJR2QYQ7YiZZTOoio8Sybl19XJUwPzFGSeKAjDws5GkeliwARV8cAhNi10LuLeDEwzGpohvoZ9RJ64C/tusrnSQba4GzpWM4VxQR7qOG2fdL5BPp+i+/+zq4rZ2GU98ZvTob1gOdxsLQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714345273; c=relaxed/simple; bh=l1N7ppwQAFsdyrxlamyLKMlCpeI3ctv4JREfJWzeHj0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=V2fglepnKMmLF3mWkOGnSTaKEprAeedmrhoNW3D40x8dSgWZYNLXvb7PhFVHTRezh/glDyldpzE1xj4jCEov1JZ3NPyLEaF7Uvoh0CPD0rjg3Tgmjoi/2AEozwN2d2mDVtsp6Q74jKB7Wta5xOhEg7DfEIQMR84vp2PxIhmHcsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net; spf=pass smtp.mailfrom=darkphysics.net; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b=WLUFGZ8P; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=darkphysics.net Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1e3ca546d40so32207175ad.3 for ; Sun, 28 Apr 2024 16:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1714345271; x=1714950071; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6KENCVx6uegL7ew41ijCYKGsXuud/xPQNe/tRNshJuk=; b=WLUFGZ8PtRNmlgjPPh6i5y1IyJ7JbHLG3WBXOJ+teFzU2d4NAr+H6wSI9ST1fEcsov 8xMhCyRPHPz5b7W/LhzRlUNdP0xc3od3oulDUQUHe/5Tlbx3Zsn6eL/cw5avb+cGL36R fa55xR0DpC6ywFDA5qJ5JbBT3LWquFgdGoNd0GG/w0OIJm+4YH0dddmp/qPYDF+dEEcA EdDToAI64tYniUtIGtn6XP/Nclpn/CyBxwttf1eDXfr2cEJDHsiBwiF+1ebELMPc6oQi ECqZZ8IIWhEL7DIw3ma/eDRtUHaFFm1ODFAvr4gseGPsWofD2ivlpkg+1uJ52QGjk+yU xrvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714345271; x=1714950071; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6KENCVx6uegL7ew41ijCYKGsXuud/xPQNe/tRNshJuk=; b=eyIlkfbo3+KI3Kb4GeE5DZ3omiYwqaR8O4Op36CqSHX8fOe/7mXbcQxfKG6PQv4T2z 6POaKL9Adc2WaTR6iediN2M8o6UQrMf7aEJ8RAypqJ+GM0gxhtS8zXz5Qn8683m1004p JKm1kdn6LYr1tGRDrFKhDesg4Hu5NlvoHwuZU6j2/hrjnWYdK5b3nGSkF7m92XYlZnw0 ID+DbJm6f2wv9Tfhbrx/PLv5zoneq7dbMqfao/olaLhc157jH5m3X+A81Vc99oYDrVkL HM2PKwMyiWBc7Oojzs1cPXOsnNl0wJTS+UFrq5UvJAnRCEZb5affr6dT+yN/D0Cc3qp/ 5YEA== X-Forwarded-Encrypted: i=1; AJvYcCVSsTTCnQQe3W7gHJ37UTiuTtop5xlcIaKDp0JyK3l64OvKiIkpPDzWcEiyLEfLSzBaCLht3RxAvnZo31EK4vG5u5gh5ThUlQszeLEI X-Gm-Message-State: AOJu0YzWuDm4UY0B34nZXk29k3oxfiVGv83xEPIrlR7HXcxuhfZFX0ww 8uTnDDgcmK96M88c6r4qNDVJxcMYg3KxI9zBi3V4IVfXfvOUU/ZBXCxjK2YtLZc= X-Received: by 2002:a17:90a:1548:b0:2a4:b9db:acf5 with SMTP id y8-20020a17090a154800b002a4b9dbacf5mr7428162pja.24.1714345270986; Sun, 28 Apr 2024 16:01:10 -0700 (PDT) Received: from lunchbox.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id o16-20020a17090aac1000b002a27132ac02sm17860864pjq.2.2024.04.28.16.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 16:01:10 -0700 (PDT) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH 02/18] Staging: rtl8192e: Rename variable CurrentAMPDUFactor Date: Sun, 28 Apr 2024 16:00:50 -0700 Message-Id: <20240428230106.6548-3-tdavies@darkphysics.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240428230106.6548-1-tdavies@darkphysics.net> References: <20240428230106.6548-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename variable CurrentAMPDUFactor to current_ampdu_factor to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index eeb5a5eb94be..b789d0f17156 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -104,7 +104,7 @@ struct rt_hi_throughput { u8 ampdu_enable; u8 current_ampdu_enable; u8 ampdu_factor; - u8 CurrentAMPDUFactor; + u8 current_ampdu_factor; u8 current_mpdu_density; u8 forced_ampdu_factor; u8 forced_mpdu_density; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index e82e8c50c090..3982c37f208c 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -470,12 +470,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee) if (ieee->current_network.bssht.bd_rt2rt_aggregation) { if (ieee->pairwise_key_type != KEY_TYPE_NA) - ht_info->CurrentAMPDUFactor = + ht_info->current_ampdu_factor = pPeerHTCap->MaxRxAMPDUFactor; else - ht_info->CurrentAMPDUFactor = HT_AGG_SIZE_64K; + ht_info->current_ampdu_factor = HT_AGG_SIZE_64K; } else { - ht_info->CurrentAMPDUFactor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor, + ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor, HT_AGG_SIZE_32K); } @@ -514,7 +514,7 @@ void ht_initialize_ht_info(struct rtllib_device *ieee) ht_info->cur_short_gi_40mhz = false; ht_info->current_mpdu_density = 0; - ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor; + ht_info->current_ampdu_factor = ht_info->ampdu_factor; memset((void *)(&ht_info->self_ht_cap), 0, sizeof(ht_info->self_ht_cap)); diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c index 54100dd81505..1aeb207a3fee 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -313,7 +313,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, } if (ieee->iw_mode == IW_MODE_INFRA) { tcb_desc->ampdu_enable = true; - tcb_desc->ampdu_factor = ht_info->CurrentAMPDUFactor; + tcb_desc->ampdu_factor = ht_info->current_ampdu_factor; tcb_desc->ampdu_density = ht_info->current_mpdu_density; } } -- 2.30.2