Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 E0F693E462 for ; Wed, 12 Jun 2024 03:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718162562; cv=none; b=qWSr0TNUcaTJlgfCqx4pHU+jiqazhQLFhIvXCrwVAcK8Z3iB7FeCMmPc/7rkCdvqYDej5qDvG0ARIMMvpcS2zje6Co+MJWGvDGMldKW1G84yYZBplqs31djjoOO+ZPVxMtP2yXc/ExMl+NVp01gFUvnUabKcdLsQuNU1TWbnEnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718162562; c=relaxed/simple; bh=g04zKuym8MOAIEks5WqlwbJO0ymKVXZ1rE4I4gyez2k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NykiCtEfa5FIeJW3hPEZ1pMjhYEVCyghDqkfXixyTumnAG+xiIMsd6nowEYmpVzmxuV3AJF2S56E8wEgrMBeMz4Q724y28yCb1tZm9w6rj2HDOxk4m/Ch7DRUgiS4eyg7TuGheJOO8Tdtnqe6K6SM9K2ceAVeLbHdt8lQREpbPM= 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=gD27uCAU; arc=none smtp.client-ip=209.85.210.179 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="gD27uCAU" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-70417a6c328so3912840b3a.1 for ; Tue, 11 Jun 2024 20:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1718162560; x=1718767360; darn=lists.linux.dev; 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=0WkFr6xEvivvd+B09wKWKgC46Hg539bA2/mgjCH1xUA=; b=gD27uCAUuySQtBeVbU9BrjpCLMuT3114w5tW6jr5ws5gLnOlERAD+xFrdxY019w4rm GqZLOxD3u7KvXHIoSERnNBMK3zA0fToTB5xHl3rLlDM6fke5PAo1p560CpP/CJFznrGn pEUhMqV0z9FF77y3Dt1MFnoaKKvKCCE35Soy2o1YfkOVxLVOsTAqsTzOEAiQ/TsM+wMv 9boh2kKIYhFNTdIObMG2ZLt5rMi3PgDzIOnqKhQSB2KXV6nCjV41bmugjUSIP6aUl6Em 0Fge/btzu02H9Yyj66wVRoEbH6E1Ykv2aBlqd6Dvp628SrU5BCaP5c07QdK7Tk1zf2p0 8H8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718162560; x=1718767360; 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=0WkFr6xEvivvd+B09wKWKgC46Hg539bA2/mgjCH1xUA=; b=KKy1/1TqluTzz/eJ0OwFgW1kRugUSrcHkyZlhAzlgykw4y6PXZFUZ75/2D0HdRB6SS AMuNzZ4kLvZrRcS6Cme0aHg8FOUUVJjuvYw5dsJey7wbJbOQcBLZRwtRqHUYGhkErxsZ EyRkmhu/UIE0jY+D+DSabdY0CXangmQQ9Xn8/EeOW4ebkm5D0RW5JEhD25NsexqEcCd9 c6cXOGafiiVODwsX8XypZTXJIjWpY+Xl+vX96Z693P1ouhnOPGqrvFIV3SPp+CGFJp5o /jh7NbcHJrQVZokSaDJou8etYz9Aa3fh9pN1Qorni9YRXVjEJEO2JIlY95nREAR+YMJ4 rHRg== X-Gm-Message-State: AOJu0Yzm6FGiHts7aiLnl82TnGUVICct2xOvBTOQXyASdJRZnzEwWd7i fC816LSwLIG1C/O6z6Oyf79sC65RzepBonvoKuHUm4GE8349qBMsRNjbqwii9kI= X-Google-Smtp-Source: AGHT+IGolqUbZjcHpSurAz5mByQrnFKrL1mfB+aDiqNFOrZ9uOqP7glwG77mTIjrxe0GUiqlkn1weg== X-Received: by 2002:a05:6a20:a11b:b0:1af:cc75:3f79 with SMTP id adf61e73a8af0-1b8ab6ab340mr823758637.55.1718162560248; Tue, 11 Jun 2024 20:22:40 -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 41be03b00d2f7-6e8e8a84949sm5635411a12.32.2024.06.11.20.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 20:22:39 -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 v2 09/24] Staging: rtl8192e: Rename variable bforced_tx20Mhz Date: Tue, 11 Jun 2024 20:22:15 -0700 Message-Id: <20240612032230.9738-10-tdavies@darkphysics.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240612032230.9738-1-tdavies@darkphysics.net> References: <20240612032230.9738-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename variable bforced_tx20Mhz to forced_tx_20MHz to remove hungarian notation and make it snake_case. Signed-off-by: Tree Davies --- v2: Change bforced_tx20Mhz to forced_tx_20MHz, and update commit message drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 8 ++++---- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 5392d2daf870..f546e6d368b4 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -377,7 +377,7 @@ static void _rtl92e_dm_init_bandwidth_autoswitch(struct net_device *dev) priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH; priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW; - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false; + priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false; priv->rtllib->bandwidth_auto_switch.bautoswitch_enable = false; } @@ -388,14 +388,14 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev) if (priv->current_chnl_bw == HT_CHANNEL_WIDTH_20 || !priv->rtllib->bandwidth_auto_switch.bautoswitch_enable) return; - if (!priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz) { + if (!priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz) { if (priv->undecorated_smoothed_pwdb <= priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz) - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = true; + priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = true; } else { if (priv->undecorated_smoothed_pwdb >= priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz) - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false; + priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false; } } diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index bd18d866ce22..ab52fd66c705 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1018,7 +1018,7 @@ struct tx_pending { struct bandwidth_autoswitch { long threshold_20Mhzto40Mhz; long threshold_40Mhzto20Mhz; - bool bforced_tx20Mhz; + bool forced_tx_20MHz; bool bautoswitch_enable; }; diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c index d376c35a5ad7..ba76d2fcc750 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -362,7 +362,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee, if ((tcb_desc->data_rate & 0x80) == 0) return; if (ht_info->cur_bw_40mhz && ht_info->cur_tx_bw40mhz && - !ieee->bandwidth_auto_switch.bforced_tx20Mhz) + !ieee->bandwidth_auto_switch.forced_tx_20MHz) tcb_desc->bPacketBW = true; } -- 2.30.2