Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2467371rdb; Mon, 25 Dec 2023 12:23:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHifzP/RfESuK13w+xbPVljjdx+kD4MhUficlo33gYCtA6Xg9j6MdnUILf0oH1UQR9U3i6y X-Received: by 2002:a50:d4d8:0:b0:553:98b5:6549 with SMTP id e24-20020a50d4d8000000b0055398b56549mr3033545edj.97.1703535830255; Mon, 25 Dec 2023 12:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703535830; cv=none; d=google.com; s=arc-20160816; b=U/gVykw1vziO9Nie7bD5FV5NO2y9jCZrqjbBj/faLFeIjMKmRSx3ArWZxizm9aBdKE k3vyN3qCcKoJ2ArsaavnlRK4+VMN6XY6G2RXm3yo6ab15/N0Eh3kRoQhN25S3t85hEWK zfwbhJ6O/xfi+jtM2TEPS9HA8/Wy7yjaeCK1IxT6fv4qRm2qUmG8wn/RBHwiuOX4YQ9i W8pLWGXTNOx1Dy44t5+XndklDSavV8QC3ocfQkHAE4mDb5v2qKx9rn3juVgOyqWP1As5 lSDQgBQEdlwm7RVqZQikMoBH6o4qdHN5kqqzQGpsoMM4n2tR+3o+yanZ/s8m6vteJA1M zU2w== ARC-Message-Signature: i=1; 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=x0BQwgGlchI9j4vF66gvl0jTFAruxLJpJhtJa5sgnO0=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=vO27x9Ui9XQgGNyd6CFcgI64d8mJPdO/FNO2qn4CEerWaf3UQl0NGEqJzhNUJyTeg/ mziGM0L84Q+bg8v9/Kr2zHglOCLklG6trRNEceQmxOgDzJmY9LzifZO/8T1WJw5txma7 RfnZXSwBLYq23bVfpfLbNW1KL0ELdkyBPYnYqzdH2GkixroJPzrRI8eQpGfOmIyaf/4i pjk5Dxux5mqBeKhtIvY6yiIjrpEvRokQxV5/Jyzp1tzfO1Dj1/O3cPRgiOXIZXrPKGdg 7xIYHWnFpCm4DBBNf2B8bdtBuDtcuyiDsyzFp67G/cLc6oec5PFpFBKOyj95UTe8tQCY Av7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=FPBI4vvD; spf=pass (google.com: domain of linux-kernel+bounces-11161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11161-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 m26-20020a50931a000000b005545a072d31si3496422eda.277.2023.12.25.12.23.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 12:23:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11161-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=FPBI4vvD; spf=pass (google.com: domain of linux-kernel+bounces-11161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11161-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 A45A71F2195A for ; Mon, 25 Dec 2023 20:23:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DB5753E29; Mon, 25 Dec 2023 20:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="FPBI4vvD" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 0CC845380B for ; Mon, 25 Dec 2023 20:23:20 +0000 (UTC) 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-f51.google.com with SMTP id 98e67ed59e1d1-28bc870c540so2995138a91.2 for ; Mon, 25 Dec 2023 12:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1703535800; x=1704140600; 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=x0BQwgGlchI9j4vF66gvl0jTFAruxLJpJhtJa5sgnO0=; b=FPBI4vvDVib46QIuUEjoZhl25+FCjr09RSWiFtgIKIpQm3NkGxZOY4aYdX0eMn4Udx BueWADSU9r3PVh8YUKr23za2De8eZLO8/3YMJMh8eXK96EH1b0AnYZfdIrzFkLjmYO30 ZLPZw1UaEPM9woOQt/oCzZS0bz7rvJgpOI0T/iFs2ADeQiWwn2/jWEFCtruSRSqrzZHu Wk0WsHsRKn5zspF444GJeHinBk0cKIkLcrW7dRjLtgwq2BXCxyDXUlsjs1pSqv44D79h 1pPF9YmhxhOjEbT3b0XD9FBBXDbnauLtPcHnolRIsCS7bh/0bfJcIcqaXtya8arabRUp 2JOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703535800; x=1704140600; 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=x0BQwgGlchI9j4vF66gvl0jTFAruxLJpJhtJa5sgnO0=; b=GFVK16VfJZVk/554ZhF6RNzdNQsBEjYw6hBGjRL5VFtfAe5eOfe9xM1hVf70KDAXNR gm86MPATVrADihvi/hiFNUsjMrZPTc3lgr+VHgCsvpQokdEzeRMVn2NAa1gd57s0PlD8 yPMUUZ5oQ0JXNIqL9F8i/Scu4RUhd09EE02spP+0QG0CcvRvLmkw8/Gn/ontQgQrRZLy c/3n2XaxCFm37RyYx5QsEJMfBw72V5ZLSrSxbahMirzw4jIhuhx3y794jlhATaKde99s KnX7+izp+FVB/fnj9DiHnf1GpxoQk91vGXI3OKuJzAybsWTCzwNP3z88ci2/J5NibfBU 8VrQ== X-Gm-Message-State: AOJu0YwdFCtlKanH9SfwfuQUYolXs9uIrwB6x4YNnuumnaOLAvlYuYFD /RpkvHSAALJyFxi/xCEk/ohsaKDxNPlsmg== X-Received: by 2002:a17:90a:7ac7:b0:286:d6fb:3d4f with SMTP id b7-20020a17090a7ac700b00286d6fb3d4fmr3054422pjl.24.1703535800508; Mon, 25 Dec 2023 12:23:20 -0800 (PST) Received: from oatmeal.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id l17-20020a17090aaa9100b0028be5732f01sm8741246pjq.0.2023.12.25.12.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 12:23:20 -0800 (PST) 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 3/6] Staging: rtl8192e: Rename variable NumRxOkInPeriod Date: Mon, 25 Dec 2023 12:23:11 -0800 Message-Id: <20231225202314.31869-4-tdavies@darkphysics.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231225202314.31869-1-tdavies@darkphysics.net> References: <20231225202314.31869-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 NumRxOkInPeriod to num_rx_ok_in_period to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 8 ++++---- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index b2c56e2099ce..6815d18a7919 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -971,14 +971,14 @@ static void _rtl92e_watchdog_wq_cb(void *data) } } if ((ieee->link_state == MAC80211_LINKED) && (ieee->iw_mode == IW_MODE_INFRA)) { - if (ieee->link_detect_info.NumRxOkInPeriod > 100 || + if (ieee->link_detect_info.num_rx_ok_in_period > 100 || ieee->link_detect_info.num_tx_ok_in_period > 100) bBusyTraffic = true; - if (ieee->link_detect_info.NumRxOkInPeriod > 4000 || + if (ieee->link_detect_info.num_rx_ok_in_period > 4000 || ieee->link_detect_info.num_tx_ok_in_period > 4000) { bHigherBusyTraffic = true; - if (ieee->link_detect_info.NumRxOkInPeriod > 5000) + if (ieee->link_detect_info.num_rx_ok_in_period > 5000) bHigherBusyRxTraffic = true; else bHigherBusyRxTraffic = false; @@ -1003,7 +1003,7 @@ static void _rtl92e_watchdog_wq_cb(void *data) rtl92e_leisure_ps_leave(dev); } - ieee->link_detect_info.NumRxOkInPeriod = 0; + ieee->link_detect_info.num_rx_ok_in_period = 0; ieee->link_detect_info.num_tx_ok_in_period = 0; ieee->link_detect_info.NumRxUnicastOkInPeriod = 0; ieee->link_detect_info.bBusyTraffic = bBusyTraffic; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index b56a8e1ce474..42690b3d03bd 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1119,7 +1119,7 @@ struct rt_link_detect { u16 SlotIndex; u32 num_tx_ok_in_period; - u32 NumRxOkInPeriod; + u32 num_rx_ok_in_period; u32 NumRxUnicastOkInPeriod; bool bBusyTraffic; bool bHigherBusyTraffic; diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 80e4e5b8de89..d346380fd1d1 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -1285,7 +1285,7 @@ static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb, /* Update statstics for AP roaming */ ieee->link_detect_info.NumRecvDataInPeriod++; - ieee->link_detect_info.NumRxOkInPeriod++; + ieee->link_detect_info.num_rx_ok_in_period++; /* Data frame - extract src/dst addresses */ rtllib_rx_extract_addr(ieee, hdr, dst, src, bssid); diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index b30533f92b53..9b00fb68f1a4 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -2077,7 +2077,7 @@ int rtllib_softmac_init(struct rtllib_device *ieee) ieee->link_detect_info.NumRecvBcnInPeriod = 0; ieee->link_detect_info.NumRecvDataInPeriod = 0; ieee->link_detect_info.num_tx_ok_in_period = 0; - ieee->link_detect_info.NumRxOkInPeriod = 0; + ieee->link_detect_info.num_rx_ok_in_period = 0; ieee->link_detect_info.NumRxUnicastOkInPeriod = 0; ieee->bIsAggregateFrame = false; ieee->assoc_id = 0; -- 2.39.2