Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1042649lqa; Sun, 28 Apr 2024 16:12:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv0WJ0ct/hRYJ7j/C5lwnB3bgCsOUnBYYAQXo8VBWkOdzXCuWPxT1T+BRgs2z7v32GoGUDFAHPIfo27pgpaKjmwT0Fo0T8H0PyTLe+1A== X-Google-Smtp-Source: AGHT+IElbxNRTwx2t7G0/GttBqXZTvLLFB0f2FB+PiUqj0alLD1T1s2WzbQ1bT1idoeo3ZVah6xP X-Received: by 2002:a50:9fc1:0:b0:572:2efe:4d14 with SMTP id c59-20020a509fc1000000b005722efe4d14mr7320485edf.10.1714345938747; Sun, 28 Apr 2024 16:12:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714345938; cv=pass; d=google.com; s=arc-20160816; b=OLRPQVhiba1dRnPzV+/F+IntIQBhcHisdsNu1pZ1d3R89lDa7JRi5zlvx8LhhP8Ze0 rNbjRDKfDnRcDyTa9ERW8Jd9HU8Envgf+0lAOXjiZnengOg4dfrCWwb7K7JRhnsswPkh y3CZRScf6XKHoOKfSSWuqEFwolRJM6Mk1OeCdanresMKRXnl5Xrvg5cbR7/rvjevDO9b CAmUr5n/sSczMo1xj1DLXVQ6IwM/FcW2NZRkcDQIbdm2yGEClx8Nc584ROAguASa0zsh psoxv0fJs83N5nHohir2ZIGhWm/wZYzUoCnDi7Pg1A2GzivqnAXxG36oL5DgK1x+TAjy OXJA== 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=UaX0yMsXS4twHiF6maUrciZQmjJPvFyuY1/pgw0/zBU=; fh=HpIWZW6GJgK2sUdenUXq/M3Y4n8Nfl/BufId/EomnG0=; b=RB6JmT/Xhdra5tv+TrhTTxiB0NVEB05URLX0OZtwBgEYMgE1Yo8WmaaAFVM5wL2jeJ kuSQPpeVEs5aeJpfdiQskoB3Y1HN7kakDsqGDI4Q1BF6dAhqjeuAkul16GSJSy7tF7B6 jozf0I6LzVtEmEei7Ib8uXstZHi7JEC0ncKB0Meph1uyoJK0Pzz+4wZxTjhe+42oTAuX ncorum90Np5pxfH5IFG6e5Ob8s1Kknok1+IW+hLGnTa5PQG6QsZ00EhoC0GtCkVluFO7 ULrKAVq1WOBXFpNToXeF/CXJulr6CgYjjDKARxCaRXh2iU87j3TgPLwrEYCLj3ML0qil DaEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="Vmer1/2j"; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-161623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161623-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u6-20020a50d506000000b0056ffad32169si13870062edi.361.2024.04.28.16.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 16:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b="Vmer1/2j"; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-161623-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161623-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B1BD51F23580 for ; Sun, 28 Apr 2024 23:04:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6674854672; Sun, 28 Apr 2024 23:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="Vmer1/2j" Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 DFD584AEDE for ; Sun, 28 Apr 2024 23:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714345282; cv=none; b=cKX9FygQp1n/ruEOir7m+C3gMIdd4/2Wg6bWs8fFL8/1OR9dzprCT2VMffAvT3UoJycKAoNRQfYIcscMdBfzhmR6FxH4+WJwpz6Pwsl+1B1FUpfdS7RQnJr+eUIAVM0A+/I7V/gtEo5Wj6mTNu/EJjAv7V1zYZshDezX3DSln2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714345282; c=relaxed/simple; bh=5Y3rMOfmPj9I5oo9SIOrDTqUJHDHqOhOLjPzdtcs9vQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nXMpuSU5xcyUOHEmSMSlFeyFPllJHHKmKXvb1XpGGVgz64fBbHDgun7rGtnsmTZe0sUUAGYH720wlsURJdDOUDH7u6YhPM35lAtVakTTQIvBPbac+qVkMWPhtOB1zznUOZvGVb2ZOWpzr/psWo4us3BtWk5NABnczxDjyVmlhLM= 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=Vmer1/2j; arc=none smtp.client-ip=209.85.216.45 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-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2a7e19c440dso2860199a91.3 for ; Sun, 28 Apr 2024 16:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1714345279; x=1714950079; 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=UaX0yMsXS4twHiF6maUrciZQmjJPvFyuY1/pgw0/zBU=; b=Vmer1/2jB4khbXSeexFsPcMbbPIvSMXnEg+xLr/xqYgSbRsUuzoonzLDqybstpuF6Q 6MOZlantA6TFw1DqzrMvCHlbJy23AV+/nZc4vssQ5fENoGvFnJKvqVuidXTb7WHkbI58 yBb0p8ZN0M/soYDAQIOKRK4LEQ7MMOwnONjTSzLzpXiJWWiLqOfqmm05JscBl/KmDfeA OjVhb1YIcQjaJZqFNT1J/VkLtXsbkuBeXRqFlqQcRgrlFy2lW9WP7A6cN+QuR5kmA8up d1YryrYWUomtDj2PY1jYxb9I3LbqeYJEySYjkPMKQ/+Jjdf8CVuFIXaANbd0+FsENCvO kS/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714345279; x=1714950079; 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=UaX0yMsXS4twHiF6maUrciZQmjJPvFyuY1/pgw0/zBU=; b=EXDBR76zc1wVULtKACVryybTk0bg3e4XtNZcdXgIpmiGdDFgaZnL+poo8P/xwT73DT jcS8wES5mJ0ptseWp9JqaY6wMUHGycI7W8V6W1tyyb/zOE1ROFmygHwSA0XeErk91l1g IBeW8Y0XxzepdoCtfuO/ctgZPNJdKMqgORrMZ3DCS6NuDFoL5jXirbwKHwVyvfwRzlfv J4+23+U9AljDIdxA5v0+vXeu643WXkvwEGR19LTgFw/cKGaZdPPypyp+kLFxE+DD5ksT DFidDei8/7STAMsdBplOliC9//fSQzrmanmmWLSl85cdnw8w03nWJIRQHKqmd2eHGZbW AyZA== X-Forwarded-Encrypted: i=1; AJvYcCVWHMQWLG2yXWWegtiOCkcgd6dy7Jn5yqerv/erm7BNzgdio51OcnjCHu2wgB7jwvKFJEMKStgmWrun7ib27NsejwCIXg7T+zuMs+y2 X-Gm-Message-State: AOJu0Yyg/YqqoVzONCrtDmDsI8SjvWEZPXkg9Xam3ejUg7JncMaUl+pL 7MtkZWo37rdjpMNwqvPxPCMe5xv90/A82ML4WL1ERu1bSx9ToDk9tYBVoQuswBc= X-Received: by 2002:a17:90a:fe10:b0:2ae:6e16:da91 with SMTP id ck16-20020a17090afe1000b002ae6e16da91mr7779149pjb.29.1714345279309; Sun, 28 Apr 2024 16:01:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 16:01:19 -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 15/18] Staging: rtl8192e: Rename variable MaxRxAMPDUFactor Date: Sun, 28 Apr 2024 16:01:03 -0700 Message-Id: <20240428230106.6548-16-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 MaxRxAMPDUFactor to max_rx_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 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index e0906e4588c2..425df93486b3 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -39,7 +39,7 @@ struct ht_capab_ele { u8 Rsvd1:1; u8 lsig_txop_protect:1; - u8 MaxRxAMPDUFactor:2; + u8 max_rx_ampdu_factor:2; u8 MPDUDensity:3; u8 Rsvd2:3; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 7b08e549726b..516e48073dc7 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -276,9 +276,9 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap, if (is_encrypt) { cap_ele->MPDUDensity = 7; - cap_ele->MaxRxAMPDUFactor = 2; + cap_ele->max_rx_ampdu_factor = 2; } else { - cap_ele->MaxRxAMPDUFactor = 3; + cap_ele->max_rx_ampdu_factor = 3; cap_ele->MPDUDensity = 0; } @@ -471,12 +471,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->current_ampdu_factor = - pPeerHTCap->MaxRxAMPDUFactor; + pPeerHTCap->max_rx_ampdu_factor; else ht_info->current_ampdu_factor = HT_AGG_SIZE_64K; } else { - ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor, - HT_AGG_SIZE_32K); + ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->max_rx_ampdu_factor, + HT_AGG_SIZE_32K); } ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity; -- 2.30.2