From nobody Mon Apr 13 14:27:52 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F48FC4332F for ; Sun, 13 Nov 2022 04:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235227AbiKMEhI (ORCPT ); Sat, 12 Nov 2022 23:37:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235173AbiKMEg2 (ORCPT ); Sat, 12 Nov 2022 23:36:28 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2133213FB7 for ; Sat, 12 Nov 2022 20:36:06 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id y16so11599523wrt.12 for ; Sat, 12 Nov 2022 20:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0CokBU8cM6zI23zkNc1rZIn7Gnc44VkzGzRrbVO49/Q=; b=U3y1e8ofpG+p/2Fof4nkCA84Kmk8Txxo7ss37NzUscGzy4tDhsZyTkITx17JbkDMp1 rQyupLV99RKeSq/2ZE3PkQExgHDp9/qpAe9C7sdAbzT3ANamC0HSC/GQZ4VdRvCYS/PT uerTCxNlq7yDCs8pNjqQufxP4r/igz6lPACweEJGkfcXgcF3Rhly9pCWUIgyocRAO4ih wNzIyzY5YTeCJ136iEbXYVXBzYaXV3jWJaD6bAmNYBiWfu2o4VzUQzfNElxHnol7hYF+ YMwxidL/tdZu9+PhciPz9WO4btuWvHxlF7VQ2WV/526AhivUwLNTfGAWEy5DmqeYOxzX jAIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0CokBU8cM6zI23zkNc1rZIn7Gnc44VkzGzRrbVO49/Q=; b=6EWbaALRZexX+OHJOkKlCgzVgCBbM7hyp+foF14X7063in3POWI5DtSP+e3UpqOnHC t12WIgy83SU11MmcpyQIIW9y+fslAvd2J/zdF+xOBOZm0p8FAiWQhNy8t+IV0pL2Z/n4 3U3hafzu54qntaQYkTktkRbNnA0o/R5g2vdxFPckA0K+B9hRJ5muXA1siWeUA4OjC2PF L/17mCYgDZF2jRA4b122UjcQuWrQXnvXMnYJqIiH6+AhNjHyrRa2BE+nnLApgXw8IG5C 7WapVQZSsz/titUlEUV/BHa/I+bbU/l1cuVw24DZZOywuj//2L8NbdwT+QDPnyj2yt+G UAhQ== X-Gm-Message-State: ANoB5pm8qS5Jzy5t17IiPvFPLQzi69WK/yfDtjm2hGGXvwBPoOY02Yef PJTf0vOXeCJ+wBtUVc2ImFzC/l4E4yo= X-Google-Smtp-Source: AA0mqf7Wb6/YTEZwuift2xUZSLB3DsxioGINWXNBzLhaF8M5t4rnJEimZSpREiOz3EwHfOXuu+LXng== X-Received: by 2002:adf:efc3:0:b0:23a:2311:b35 with SMTP id i3-20020adfefc3000000b0023a23110b35mr4395814wrp.183.1668314164584; Sat, 12 Nov 2022 20:36:04 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07888.dip0.t-ipconnect.de. [84.160.120.136]) by smtp.gmail.com with ESMTPSA id o15-20020a05600c510f00b003c6d21a19a0sm9121807wms.29.2022.11.12.20.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 20:36:04 -0800 (PST) Date: Sun, 13 Nov 2022 05:36:02 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] staging: rtl8192e: Rename bFilterSour.., CCKPresentAt.. and ResetProg.. Message-ID: <25ab52350a4a3249a1f76b28eea10c44e2f9552d.1668313325.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rename variable bFilterSourceStationFrame to fltr_src_sta_frame, CCKPresentAttentuation to cck_present_attn and ResetProgress to rst_progress to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Philipp Hortmann --- .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 12 +++++------ .../staging/rtl8192e/rtl8192e/r8192E_phy.c | 20 +++++++++---------- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 14 ++++++------- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 20 +++++++++---------- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 12 +++++------ drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- 8 files changed, 43 insertions(+), 43 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/stagi= ng/rtl8192e/rtl8192e/r8192E_dev.c index 2ccd1e0542c2..0eeb9b2daefc 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -617,7 +617,7 @@ bool rtl92e_start_adapter(struct net_device *dev) start: rtl92e_reset_desc_ring(dev); priv->Rf_Mode =3D RF_OP_By_SW_3wire; - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) { + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) { rtl92e_writeb(dev, ANAPAR, 0x37); mdelay(500); } @@ -650,7 +650,7 @@ bool rtl92e_start_adapter(struct net_device *dev) } =20 priv->LoopbackMode =3D RTL819X_NO_LOOPBACK; - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) { + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) { ulRegRead =3D rtl92e_readl(dev, CPU_GEN); if (priv->LoopbackMode =3D=3D RTL819X_NO_LOOPBACK) ulRegRead =3D (ulRegRead & CPU_GEN_NO_LOOPBACK_MSK) | @@ -699,7 +699,7 @@ bool rtl92e_start_adapter(struct net_device *dev) =20 rtl92e_writeb(dev, ACK_TIMEOUT, 0x30); =20 - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) rtl92e_set_wireless_mode(dev, priv->rtllib->mode); rtl92e_cam_reset(dev); { @@ -739,7 +739,7 @@ bool rtl92e_start_adapter(struct net_device *dev) } } =20 - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) { + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) { rtStatus =3D rtl92e_config_phy(dev); if (!rtStatus) { netdev_info(dev, "RF Config failed\n"); @@ -766,7 +766,7 @@ bool rtl92e_start_adapter(struct net_device *dev) else priv->Rf_Mode =3D RF_OP_By_SW_3wire; =20 - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) { + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) { rtl92e_dm_init_txpower_tracking(dev); =20 if (priv->IC_Cut >=3D IC_VersionCut_D) { @@ -795,7 +795,7 @@ bool rtl92e_start_adapter(struct net_device *dev) } priv->CCKPresentAttentuation_40Mdefault =3D 0; priv->CCKPresentAttentuation_difference =3D 0; - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D priv->CCKPresentAttentuation_20Mdefault; priv->btxpower_tracking =3D false; } diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/stagi= ng/rtl8192e/rtl8192e/r8192E_phy.c index c357adf95a3d..ac3c7f047ca2 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -1008,16 +1008,16 @@ static void _rtl92e_cck_tx_power_track_bw_switch_ts= si(struct net_device *dev) =20 switch (priv->CurrentChannelBW) { case HT_CHANNEL_WIDTH_20: - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D priv->CCKPresentAttentuation_20Mdefault + priv->CCKPresentAttentuation_difference; =20 - if (priv->CCKPresentAttentuation > + if (priv->cck_present_attn > (CCKTxBBGainTableLength-1)) - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D CCKTxBBGainTableLength-1; - if (priv->CCKPresentAttentuation < 0) - priv->CCKPresentAttentuation =3D 0; + if (priv->cck_present_attn < 0) + priv->cck_present_attn =3D 0; =20 if (priv->rtllib->current_network.channel =3D=3D 14 && !priv->bcck_in_ch14) { @@ -1033,16 +1033,16 @@ static void _rtl92e_cck_tx_power_track_bw_switch_ts= si(struct net_device *dev) break; =20 case HT_CHANNEL_WIDTH_20_40: - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D priv->CCKPresentAttentuation_40Mdefault + priv->CCKPresentAttentuation_difference; =20 - if (priv->CCKPresentAttentuation > + if (priv->cck_present_attn > (CCKTxBBGainTableLength - 1)) - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D CCKTxBBGainTableLength-1; - if (priv->CCKPresentAttentuation < 0) - priv->CCKPresentAttentuation =3D 0; + if (priv->cck_present_attn < 0) + priv->cck_present_attn =3D 0; =20 if (priv->rtllib->current_network.channel =3D=3D 14 && !priv->bcck_in_ch14) { diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging= /rtl8192e/rtl8192e/rtl_core.c index 94b8ed2e3489..1c4985dcc5eb 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -850,7 +850,7 @@ static void _rtl92e_init_priv_variable(struct net_devic= e *dev) priv->rtllib->iw_mode =3D IW_MODE_INFRA; priv->rtllib->net_promiscuous_md =3D false; priv->rtllib->intel_promiscuous_md_info.promiscuous_on =3D false; - priv->rtllib->intel_promiscuous_md_info.bFilterSourceStationFrame =3D + priv->rtllib->intel_promiscuous_md_info.fltr_src_sta_frame =3D false; priv->rtllib->ieee_up =3D 0; priv->retry_rts =3D DEFAULT_RETRY_RTS; @@ -861,11 +861,11 @@ static void _rtl92e_init_priv_variable(struct net_dev= ice *dev) priv->promisc =3D (dev->flags & IFF_PROMISC) ? 1 : 0; priv->bcck_in_ch14 =3D false; priv->bfsync_processing =3D false; - priv->CCKPresentAttentuation =3D 0; + priv->cck_present_attn =3D 0; priv->rfa_txpowertrackingindex =3D 0; priv->rfc_txpowertrackingindex =3D 0; priv->CckPwEnl =3D 6; - priv->ResetProgress =3D RESET_TYPE_NORESET; + priv->rst_progress =3D RESET_TYPE_NORESET; priv->force_reset =3D false; memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32); =20 @@ -1135,8 +1135,8 @@ static void _rtl92e_if_silent_reset(struct net_device= *dev) struct rtllib_device *ieee =3D priv->rtllib; unsigned long flag; =20 - if (priv->ResetProgress =3D=3D RESET_TYPE_NORESET) { - priv->ResetProgress =3D RESET_TYPE_SILENT; + if (priv->rst_progress =3D=3D RESET_TYPE_NORESET) { + priv->rst_progress =3D RESET_TYPE_SILENT; =20 spin_lock_irqsave(&priv->rf_ps_lock, flag); if (priv->rf_change_in_progress) { @@ -1233,7 +1233,7 @@ static void _rtl92e_if_silent_reset(struct net_device= *dev) rtl92e_cam_restore(dev); rtl92e_dm_restore_state(dev); END: - priv->ResetProgress =3D RESET_TYPE_NORESET; + priv->rst_progress =3D RESET_TYPE_NORESET; priv->reset_count++; priv->bResetInProgress =3D false; =20 @@ -1396,7 +1396,7 @@ static void _rtl92e_watchdog_wq_cb(void *data) spin_unlock_irqrestore(&priv->tx_lock, flags); =20 if (ResetType =3D=3D RESET_TYPE_NORMAL) { - priv->ResetProgress =3D RESET_TYPE_NORMAL; + priv->rst_progress =3D RESET_TYPE_NORMAL; return; } =20 diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging= /rtl8192e/rtl8192e/rtl_core.h index 98c750730f87..dfbc9fbcc129 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -483,7 +483,7 @@ struct r8192_priv { u8 CCKPresentAttentuation_20Mdefault; u8 CCKPresentAttentuation_40Mdefault; s8 CCKPresentAttentuation_difference; - s8 CCKPresentAttentuation; + s8 cck_present_attn; long undecorated_smoothed_pwdb; =20 u32 MCSTxPowerLevelOriginalOffset[6]; @@ -536,7 +536,7 @@ struct r8192_priv { =20 u32 reset_count; =20 - enum reset_type ResetProgress; + enum reset_type rst_progress; u16 TxCounter; u16 RxCounter; bool bResetInProgress; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_dm.c index 767c746fc73d..234e85a25d45 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -267,7 +267,7 @@ static void _rtl92e_dm_check_ac_dc_power(struct net_dev= ice *dev) "PATH=3D/usr/bin:/bin", NULL}; =20 - if (priv->ResetProgress =3D=3D RESET_TYPE_SILENT) + if (priv->rst_progress =3D=3D RESET_TYPE_SILENT) return; if (priv->rtllib->state !=3D RTLLIB_LINKED) return; @@ -716,21 +716,21 @@ static void _rtl92e_dm_tx_power_tracking_callback_tss= i(struct net_device *dev) } =20 if (priv->CurrentChannelBW =3D=3D HT_CHANNEL_WIDTH_20) - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D priv->CCKPresentAttentuation_20Mdefault + priv->CCKPresentAttentuation_difference; else - priv->CCKPresentAttentuation =3D + priv->cck_present_attn =3D priv->CCKPresentAttentuation_40Mdefault + priv->CCKPresentAttentuation_difference; =20 - if (priv->CCKPresentAttentuation > (CCKTxBBGainTableLength-1)) - priv->CCKPresentAttentuation =3D CCKTxBBGainTableLength-1; - if (priv->CCKPresentAttentuation < 0) - priv->CCKPresentAttentuation =3D 0; + if (priv->cck_present_attn > (CCKTxBBGainTableLength-1)) + priv->cck_present_attn =3D CCKTxBBGainTableLength-1; + if (priv->cck_present_attn < 0) + priv->cck_present_attn =3D 0; =20 - if (priv->CCKPresentAttentuation > -1 && - priv->CCKPresentAttentuation < CCKTxBBGainTableLength) { + if (priv->cck_present_attn > -1 && + priv->cck_present_attn < CCKTxBBGainTableLength) { if (priv->rtllib->current_network.channel =3D=3D 14 && !priv->bcck_in_ch14) { priv->bcck_in_ch14 =3D true; @@ -963,7 +963,7 @@ static void _rtl92e_dm_cck_tx_power_adjust_tssi(struct = net_device *dev, { u32 TempVal; struct r8192_priv *priv =3D rtllib_priv(dev); - u8 attenuation =3D priv->CCKPresentAttentuation; + u8 attenuation =3D priv->cck_present_attn; =20 TempVal =3D 0; if (!bInCH14) { diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_wx.c index c31e5b572e9e..7ff14aa9f476 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -1015,20 +1015,20 @@ static int _rtl92e_wx_set_promisc_mode(struct net_d= evice *dev, =20 u32 oid; u32 promiscuous_on; - u32 bFilterSourceStationFrame; + u32 fltr_src_sta_frame; =20 if (copy_from_user(info_buf, wrqu->data.pointer, sizeof(info_buf))) return -EFAULT; =20 oid =3D info_buf[0]; promiscuous_on =3D info_buf[1]; - bFilterSourceStationFrame =3D info_buf[2]; + fltr_src_sta_frame =3D info_buf[2]; =20 if (oid =3D=3D OID_RT_INTEL_PROMISCUOUS_MODE) { ieee->intel_promiscuous_md_info.promiscuous_on =3D (promiscuous_on) ? (true) : (false); - ieee->intel_promiscuous_md_info.bFilterSourceStationFrame =3D - (bFilterSourceStationFrame) ? (true) : (false); + ieee->intel_promiscuous_md_info.fltr_src_sta_frame =3D + (fltr_src_sta_frame) ? (true) : (false); (promiscuous_on) ? (rtllib_EnableIntelPromiscuousMode(dev, false)) : (rtllib_DisableIntelPromiscuousMode(dev, false)); @@ -1036,7 +1036,7 @@ static int _rtl92e_wx_set_promisc_mode(struct net_dev= ice *dev, netdev_info(dev, "=3D=3D=3D=3D=3D=3D=3D>%s(), on =3D %d, filter src sta =3D %d\n", __func__, promiscuous_on, - bFilterSourceStationFrame); + fltr_src_sta_frame); } else { return -1; } @@ -1055,7 +1055,7 @@ static int _rtl92e_wx_get_promisc_mode(struct net_dev= ice *dev, =20 snprintf(extra, 45, "PromiscuousMode:%d, FilterSrcSTAFrame:%d", ieee->intel_promiscuous_md_info.promiscuous_on, - ieee->intel_promiscuous_md_info.bFilterSourceStationFrame); + ieee->intel_promiscuous_md_info.fltr_src_sta_frame); wrqu->data.length =3D strlen(extra) + 1; =20 mutex_unlock(&priv->wx_mutex); diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/r= tllib.h index 493759cc6ccf..9c81ca38f4b1 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1385,7 +1385,7 @@ struct rt_pmkid_list { =20 struct rt_intel_promisc_mode { bool promiscuous_on; - bool bFilterSourceStationFrame; + bool fltr_src_sta_frame; }; =20 =20 diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192= e/rtllib_rx.c index ccb61d8decd3..75190c389ccf 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -1000,7 +1000,7 @@ static int rtllib_rx_data_filter(struct rtllib_device= *ieee, u16 fc, =20 /* Filter packets sent by an STA that will be forwarded by AP */ if (ieee->intel_promiscuous_md_info.promiscuous_on && - ieee->intel_promiscuous_md_info.bFilterSourceStationFrame) { + ieee->intel_promiscuous_md_info.fltr_src_sta_frame) { if ((fc & RTLLIB_FCTL_TODS) && !(fc & RTLLIB_FCTL_FROMDS) && !ether_addr_equal(dst, ieee->current_network.bssid) && ether_addr_equal(bssid, ieee->current_network.bssid)) { --=20 2.37.3