From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 D15DD3FFB for ; Mon, 4 Oct 2021 22:32:17 +0000 (UTC) Received: by mail-ed1-f47.google.com with SMTP id z20so19243103edc.13 for ; Mon, 04 Oct 2021 15:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iUXJIDZOCYYDZ09JggG4RaA50jyl4SQ1xeulUvGhLlE=; b=QjwWMJ1C1S7POJcdkcebWU9eX6CruDch3yDyoDmjv2y9O/qwtjtp+rKnVqq0/gKyh/ sQ8ntA16OqGhisMPmgwdSU8jUm/J+E3LyBGUi6CRG4rh3B8D/8QewzJWx8CPs9T+2tFt DN/+zNdsbJfp4BuwdqnKujmAZn/uwPSNtNLVqTDULXelZsRD1ywzs0nr4XBW3Oz5Fg+t X5v8JcwTcY25ajayCVwktcK8IB2QgM0W6E8g2gLWNVkqRsn3uQrdh/9sAZrpPv1r4YUd CwN1cRG96ZouNgtcxutai8dXONuPhgNmLNtC6sYhQnlzn+Y/Xke5pj9F/eNdcoX3PoGN 27bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iUXJIDZOCYYDZ09JggG4RaA50jyl4SQ1xeulUvGhLlE=; b=t3jSMbWKJiokvIiNoeLpT9r1MnMh0xk8EZeJYA7i4k59zLWvc4oREQ/7qAexxs8mEQ Ps7jJc39IVOFRZMKt0erTLVBdsTAaXQP2NIohxruY94x4nLfwos3RoZQ2BL9ol3+KP9E wI3wjxSweNNy7+uS/BqgXxz38xYpFedUEB3gZHx+0bf/Cg9GYWnZwZpgDNYpCMgaOKpB 9flFrkJms1Q/v3a/ZZpqRH2rPjzR9li2QLqJcdSePZ5HjUgdSAaq1f2Tinsn5fFWWaoP wtEXJZ7MKe2susuBc1d4fP/Ob1UiXi+Xi2XEzZNWR6yXVDTayc6KPcXxUi843BgolsdH vgLA== X-Gm-Message-State: AOAM530Qk1YbQ8kSBELTIbkeiR8nCBxJemDsDq2Ri+a4SqglTGeqoXG6 EwK/G8qV/qhH6+xQSZhCW6o= X-Google-Smtp-Source: ABdhPJzEJKE3OTJxnvumu4446U+Hm8D/IuIqaPExZqbhcJPTCAoumsHdxa0pTGQmkLc3WB+Rj0tgGA== X-Received: by 2002:a50:ec08:: with SMTP id g8mr17984875edr.303.1633386736253; Mon, 04 Oct 2021 15:32:16 -0700 (PDT) Received: from tom-desktop.station (net-2-42-54-217.cust.vodafonedsl.it. [2.42.54.217]) by smtp.gmail.com with ESMTPSA id dc8sm7780919edb.28.2021.10.04.15.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 15:32:15 -0700 (PDT) From: Tommaso Merciai To: Cc: tomm.merciai@gmail.com, Forest Bond , Greg Kroah-Hartman , Lucas Henneman , Madhumitha Prabakaran , Yujia Qiao , Marcos Antonio de Jesus Filho , =?UTF-8?q?Aldas=20Tara=C5=A1kevi=C4=8Dius?= , Deepak R Varma , "Gustavo A. R. Silva" , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/3] staging: vt6655: fix camelcase in bShortSlotTime Date: Tue, 5 Oct 2021 00:31:56 +0200 Message-Id: <20211004223200.70524-2-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211004223200.70524-1-tomm.merciai@gmail.com> References: <20211004223200.70524-1-tomm.merciai@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace camel case variable bShortSlotTime with snake case variable short_slot_time. bShortSlotTime is a boolean variable, if true short slot time is enabled, false not. Short Slot Time reduces the slot time from 20 microseconds to 9 microseconds, where the slot time is the maximum theoretical time for a frame to travel a network. References: - http://cciew.blogspot.com/2011/02/short-slot-time.html - https://www.cse.wustl.edu/~jain/cse574-16/ftp/j_05lan4.pdf - https://www.networkdatapedia.com/post/2013/09/16/ \ configuring-short-slot-time-to-improve-wifi-performance - https://en.wikipedia.org/wiki/Slot_time Signed-off-by: Tommaso Merciai --- Changes since v5: - Fix variable name short_slot_time instead of b_short_slot_time - Add more details in commit message Changes since v4: - Make the commit body message more clearer Changes since v3: - Fix patch changelog Changes since v2: - Add patch changelog Changes since v1: - Make the commit message more clearer drivers/staging/vt6655/baseband.c | 4 ++-- drivers/staging/vt6655/card.c | 2 +- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/device_main.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index f73f3fad3e05..491cf4d8bc6c 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2200,7 +2200,7 @@ bb_set_short_slot_time(struct vnt_private *priv) bb_read_embedded(priv, 0x0A, &by_bb_rx_conf); /* CR10 */ - if (priv->bShortSlotTime) + if (priv->short_slot_time) by_bb_rx_conf &= 0xDF; /* 1101 1111 */ else by_bb_rx_conf |= 0x20; /* 0010 0000 */ @@ -2223,7 +2223,7 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data) /* patch for 3253B0 Baseband with Cardbus module */ if (by_data == priv->abyBBVGA[0]) by_bb_rx_conf |= 0x20; /* 0010 0000 */ - else if (priv->bShortSlotTime) + else if (priv->short_slot_time) by_bb_rx_conf &= 0xDF; /* 1101 1111 */ else by_bb_rx_conf |= 0x20; /* 0010 0000 */ diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index 3ef3a6e0e6e1..7fb8a74e2a78 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -258,7 +258,7 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) bb_write_embedded(priv, 0x88, 0x08); bySIFS = C_SIFS_BG; - if (priv->bShortSlotTime) { + if (priv->short_slot_time) { bySlot = C_SLOT_SHORT; byDIFS = C_SIFS_BG + 2 * C_SLOT_SHORT; } else { diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 2af769174e33..49e3d09480f2 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -215,7 +215,7 @@ struct vnt_private { bool bEncryptionEnable; bool bLongHeader; - bool bShortSlotTime; + bool short_slot_time; bool bProtectMode; bool bNonERPPresent; bool bBarkerPreambleMd; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index d40c2ac14928..52c2a6651bc9 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1440,9 +1440,9 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_ERP_SLOT) { if (conf->use_short_slot) - priv->bShortSlotTime = true; + priv->short_slot_time = true; else - priv->bShortSlotTime = false; + priv->short_slot_time = false; CARDbSetPhyParameter(priv, priv->byBBType); bb_set_vga_gain_offset(priv, priv->abyBBVGA[0]); -- 2.25.1