Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: fix camelcase in bShortSlotTime

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

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
Link: https://lore.kernel.org/r/20211005205702.14029-2-tomm.merciai@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tommaso Merciai and committed by
Greg Kroah-Hartman
e4a9e1d8 e538e864

+6 -6
+2 -2
drivers/staging/vt6655/baseband.c
··· 2200 2200 2201 2201 bb_read_embedded(priv, 0x0A, &by_bb_rx_conf); /* CR10 */ 2202 2202 2203 - if (priv->bShortSlotTime) 2203 + if (priv->short_slot_time) 2204 2204 by_bb_rx_conf &= 0xDF; /* 1101 1111 */ 2205 2205 else 2206 2206 by_bb_rx_conf |= 0x20; /* 0010 0000 */ ··· 2223 2223 /* patch for 3253B0 Baseband with Cardbus module */ 2224 2224 if (by_data == priv->abyBBVGA[0]) 2225 2225 by_bb_rx_conf |= 0x20; /* 0010 0000 */ 2226 - else if (priv->bShortSlotTime) 2226 + else if (priv->short_slot_time) 2227 2227 by_bb_rx_conf &= 0xDF; /* 1101 1111 */ 2228 2228 else 2229 2229 by_bb_rx_conf |= 0x20; /* 0010 0000 */
+1 -1
drivers/staging/vt6655/card.c
··· 258 258 bb_write_embedded(priv, 0x88, 0x08); 259 259 bySIFS = C_SIFS_BG; 260 260 261 - if (priv->bShortSlotTime) { 261 + if (priv->short_slot_time) { 262 262 bySlot = C_SLOT_SHORT; 263 263 byDIFS = C_SIFS_BG + 2 * C_SLOT_SHORT; 264 264 } else {
+1 -1
drivers/staging/vt6655/device.h
··· 215 215 216 216 bool bEncryptionEnable; 217 217 bool bLongHeader; 218 - bool bShortSlotTime; 218 + bool short_slot_time; 219 219 bool bProtectMode; 220 220 bool bNonERPPresent; 221 221 bool bBarkerPreambleMd;
+2 -2
drivers/staging/vt6655/device_main.c
··· 1440 1440 1441 1441 if (changed & BSS_CHANGED_ERP_SLOT) { 1442 1442 if (conf->use_short_slot) 1443 - priv->bShortSlotTime = true; 1443 + priv->short_slot_time = true; 1444 1444 else 1445 - priv->bShortSlotTime = false; 1445 + priv->short_slot_time = false; 1446 1446 1447 1447 CARDbSetPhyParameter(priv, priv->byBBType); 1448 1448 bb_set_vga_gain_offset(priv, priv->abyBBVGA[0]);