Skip to content

Commit 22d67a0

Browse files
evdenisgregkh
authored andcommitted
staging: rtl8188eu: fix HighestRate check in odm_ARFBRefresh_8188E()
It's incorrect to compare HighestRate with 0x0b twice in the following manner "if (HighestRate > 0x0b) ... else if (HighestRate > 0x0b) ...". The "else if" branch is constantly false. The second comparision should be with 0x03 according to the max_rate_idx in ODM_RAInfo_Init(). Cc: Michael Straube <[email protected]> Cc: [email protected] Signed-off-by: Denis Efremov <[email protected]> Acked-by: Larry Finger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 955c153 commit 22d67a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int odm_ARFBRefresh_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_inf
409409
pRaInfo->PTModeSS = 3;
410410
else if (pRaInfo->HighestRate > 0x0b)
411411
pRaInfo->PTModeSS = 2;
412-
else if (pRaInfo->HighestRate > 0x0b)
412+
else if (pRaInfo->HighestRate > 0x03)
413413
pRaInfo->PTModeSS = 1;
414414
else
415415
pRaInfo->PTModeSS = 0;

0 commit comments

Comments
 (0)