mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
staging: vt6655: Rename by_preamble_type
parameter
Drop Hungarian notation prefix in the first parameter of `bb_get_frame_time` function. Update the comment to reflect that change. Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Link: https://lore.kernel.org/r/20211020132326.417059-1-karolinadrobnik@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cf8f6446bb
commit
1263c10cdc
2 changed files with 4 additions and 4 deletions
|
@ -1691,7 +1691,7 @@ static const unsigned short awc_frame_time[MAX_RATE] = {
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* In:
|
* In:
|
||||||
* by_preamble_type - Preamble Type
|
* preamble_type - Preamble Type
|
||||||
* by_pkt_type - PK_TYPE_11A, PK_TYPE_11B, PK_TYPE_11GB, PK_TYPE_11GA
|
* by_pkt_type - PK_TYPE_11A, PK_TYPE_11B, PK_TYPE_11GB, PK_TYPE_11GA
|
||||||
* cb_frame_length - Baseband Type
|
* cb_frame_length - Baseband Type
|
||||||
* tx_rate - Tx Rate
|
* tx_rate - Tx Rate
|
||||||
|
@ -1700,7 +1700,7 @@ static const unsigned short awc_frame_time[MAX_RATE] = {
|
||||||
* Return Value: FrameTime
|
* Return Value: FrameTime
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
unsigned int bb_get_frame_time(unsigned char by_preamble_type,
|
unsigned int bb_get_frame_time(unsigned char preamble_type,
|
||||||
unsigned char by_pkt_type,
|
unsigned char by_pkt_type,
|
||||||
unsigned int cb_frame_length,
|
unsigned int cb_frame_length,
|
||||||
unsigned short tx_rate)
|
unsigned short tx_rate)
|
||||||
|
@ -1717,7 +1717,7 @@ unsigned int bb_get_frame_time(unsigned char by_preamble_type,
|
||||||
rate = (unsigned int)awc_frame_time[rate_idx];
|
rate = (unsigned int)awc_frame_time[rate_idx];
|
||||||
|
|
||||||
if (rate_idx <= 3) { /* CCK mode */
|
if (rate_idx <= 3) { /* CCK mode */
|
||||||
if (by_preamble_type == 1) /* Short */
|
if (preamble_type == 1) /* Short */
|
||||||
preamble = 96;
|
preamble = 96;
|
||||||
else
|
else
|
||||||
preamble = 192;
|
preamble = 192;
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#define TOP_RATE_2M 0x00200000
|
#define TOP_RATE_2M 0x00200000
|
||||||
#define TOP_RATE_1M 0x00100000
|
#define TOP_RATE_1M 0x00100000
|
||||||
|
|
||||||
unsigned int bb_get_frame_time(unsigned char by_preamble_type,
|
unsigned int bb_get_frame_time(unsigned char preamble_type,
|
||||||
unsigned char by_pkt_type,
|
unsigned char by_pkt_type,
|
||||||
unsigned int cb_frame_length,
|
unsigned int cb_frame_length,
|
||||||
unsigned short w_rate);
|
unsigned short w_rate);
|
||||||
|
|
Loading…
Reference in a new issue