Skip to content

Commit f72a077

Browse files
treedaviesgregkh
authored andcommitted
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>
1 parent 01742a4 commit f72a077

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/staging/rtl8192e/rtl819x_HT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct rt_hi_throughput {
104104
u8 ampdu_enable;
105105
u8 current_ampdu_enable;
106106
u8 ampdu_factor;
107-
u8 CurrentAMPDUFactor;
107+
u8 current_ampdu_factor;
108108
u8 current_mpdu_density;
109109
u8 forced_ampdu_factor;
110110
u8 forced_mpdu_density;

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
470470

471471
if (ieee->current_network.bssht.bd_rt2rt_aggregation) {
472472
if (ieee->pairwise_key_type != KEY_TYPE_NA)
473-
ht_info->CurrentAMPDUFactor =
473+
ht_info->current_ampdu_factor =
474474
pPeerHTCap->MaxRxAMPDUFactor;
475475
else
476-
ht_info->CurrentAMPDUFactor = HT_AGG_SIZE_64K;
476+
ht_info->current_ampdu_factor = HT_AGG_SIZE_64K;
477477
} else {
478-
ht_info->CurrentAMPDUFactor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
478+
ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
479479
HT_AGG_SIZE_32K);
480480
}
481481

@@ -514,7 +514,7 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
514514
ht_info->cur_short_gi_40mhz = false;
515515

516516
ht_info->current_mpdu_density = 0;
517-
ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor;
517+
ht_info->current_ampdu_factor = ht_info->ampdu_factor;
518518

519519
memset((void *)(&ht_info->self_ht_cap), 0,
520520
sizeof(ht_info->self_ht_cap));

drivers/staging/rtl8192e/rtllib_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
313313
}
314314
if (ieee->iw_mode == IW_MODE_INFRA) {
315315
tcb_desc->ampdu_enable = true;
316-
tcb_desc->ampdu_factor = ht_info->CurrentAMPDUFactor;
316+
tcb_desc->ampdu_factor = ht_info->current_ampdu_factor;
317317
tcb_desc->ampdu_density = ht_info->current_mpdu_density;
318318
}
319319
}

0 commit comments

Comments
 (0)