lkml.org 
[lkml]   [2018]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] staging: rtl8188eu: core: coding style check
Date
follow the linux coding style, rename the variable
shortGIrate to short_gi_rate.

Signed-off-by: Kevin Dou <dkj0101@163.com>
---
drivers/staging/rtl8188eu/core/rtw_ap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c
index 1c319c2..c3ea65b 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ap.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ap.c
@@ -334,7 +334,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
{
int i;
u32 init_rate = 0;
- unsigned char sta_band = 0, raid, shortGIrate = false;
+ unsigned char sta_band = 0, raid, short_gi_rate = false;
unsigned int tx_ra_bitmap = 0;
struct ht_priv *psta_ht = NULL;

@@ -358,7 +358,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
tx_ra_bitmap |= BIT(i + 12);

/* max short GI rate */
- shortGIrate = psta_ht->sgi;
+ short_gi_rate = psta_ht->sgi;
}

if (tx_ra_bitmap & 0xffff000)
@@ -381,7 +381,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)

arg |= BIT(7);/* support entry 2~31 */

- if (shortGIrate)
+ if (short_gi_rate)
arg |= BIT(5);

tx_ra_bitmap |= ((raid << 28) & 0xf0000000);
@@ -395,7 +395,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
/* arg[5] = Short GI */
rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg, rssi_level);

- if (shortGIrate)
+ if (short_gi_rate)
init_rate |= BIT(6);

/* set ra_id, init_rate */
--
1.9.1

\
 
 \ /
  Last update: 2018-11-13 15:08    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog