diff options
author | Tree Davies <tdavies@darkphysics.net> | 2024-04-29 02:00:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-04 19:41:00 +0300 |
commit | f72a077852bf7121e10059c762d52253f8a7a126 (patch) | |
tree | e613bfa80a69a896561860f824f1daf212bb25ce /drivers/staging | |
parent | 01742a4052f71f601be8d1e27c0b43bc3df6a1f1 (diff) | |
download | linux-f72a077852bf7121e10059c762d52253f8a7a126.tar.xz |
Staging: rtl8192e: Rename variable CurrentAMPDUFactor
Rename variable CurrentAMPDUFactor to current_ampdu_factor
to fix checkpatch warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240428230106.6548-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8192e/rtl819x_HT.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_tx.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index eeb5a5eb94be..b789d0f17156 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -104,7 +104,7 @@ struct rt_hi_throughput { u8 ampdu_enable; u8 current_ampdu_enable; u8 ampdu_factor; - u8 CurrentAMPDUFactor; + u8 current_ampdu_factor; u8 current_mpdu_density; u8 forced_ampdu_factor; u8 forced_mpdu_density; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index e82e8c50c090..3982c37f208c 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -470,12 +470,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee) if (ieee->current_network.bssht.bd_rt2rt_aggregation) { if (ieee->pairwise_key_type != KEY_TYPE_NA) - ht_info->CurrentAMPDUFactor = + ht_info->current_ampdu_factor = pPeerHTCap->MaxRxAMPDUFactor; else - ht_info->CurrentAMPDUFactor = HT_AGG_SIZE_64K; + ht_info->current_ampdu_factor = HT_AGG_SIZE_64K; } else { - ht_info->CurrentAMPDUFactor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor, + ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor, HT_AGG_SIZE_32K); } @@ -514,7 +514,7 @@ void ht_initialize_ht_info(struct rtllib_device *ieee) ht_info->cur_short_gi_40mhz = false; ht_info->current_mpdu_density = 0; - ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor; + ht_info->current_ampdu_factor = ht_info->ampdu_factor; memset((void *)(&ht_info->self_ht_cap), 0, sizeof(ht_info->self_ht_cap)); diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c index 54100dd81505..1aeb207a3fee 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -313,7 +313,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, } if (ieee->iw_mode == IW_MODE_INFRA) { tcb_desc->ampdu_enable = true; - tcb_desc->ampdu_factor = ht_info->CurrentAMPDUFactor; + tcb_desc->ampdu_factor = ht_info->current_ampdu_factor; tcb_desc->ampdu_density = ht_info->current_mpdu_density; } } |