staging: vt6655: refactor camelcase uCurrRSSI to current_rssi

Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
Indicator) into linux kernel coding style equivalent
variable "current_rssi".

Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
Link: https://lore.kernel.org/r/20211127100807.3113388-1-alb3rt0.m3rciai@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alberto Merciai 2021-11-27 11:08:02 +01:00 committed by Greg Kroah-Hartman
parent d9367afb1b
commit 7988cf07e7
3 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ struct vnt_private {
unsigned char abyCurrentNetAddr[ETH_ALEN]; __aligned(2)
bool bLinkPass; /* link status: OK or fail */
unsigned int uCurrRSSI;
unsigned int current_rssi;
unsigned char byCurrSQ;
unsigned long dwTxAntennaSel;

View File

@ -980,10 +980,10 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
if (priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)
return;
if (!(priv->vif->bss_conf.assoc && priv->uCurrRSSI))
if (!(priv->vif->bss_conf.assoc && priv->current_rssi))
return;
RFvRSSITodBm(priv, (u8)priv->uCurrRSSI, &dbm);
RFvRSSITodBm(priv, (u8)priv->current_rssi, &dbm);
for (i = 0; i < BB_VGA_LEVEL; i++) {
if (dbm < priv->dbm_threshold[i]) {

View File

@ -80,7 +80,7 @@ static bool vnt_rx_data(struct vnt_private *priv, struct sk_buff *skb,
RFvRSSITodBm(priv, *rssi, &rx_dbm);
priv->byBBPreEDRSSI = (u8)rx_dbm + 1;
priv->uCurrRSSI = *rssi;
priv->current_rssi = *rssi;
skb_pull(skb, 4);
skb_trim(skb, frame_size);