From 3008dd9d9bcca3196659667648994793acea7cb9 Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Fri, 7 Nov 2014 19:06:00 +0000 Subject: [PATCH] staging: vt6655: CARDvUpdateBasicTopRate use basic_rates to find top rate basic_rates should now be used to find it. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index aaa72891fc51..d7b023b57b12 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -843,7 +843,7 @@ void CARDvUpdateBasicTopRate(struct vnt_private *pDevice) /* Determines the highest basic rate. */ for (ii = RATE_54M; ii >= RATE_6M; ii--) { - if ((pDevice->wBasicRate) & ((unsigned short)(1<basic_rates) & ((u32)(1 << ii))) { byTopOFDM = ii; break; } @@ -851,7 +851,7 @@ void CARDvUpdateBasicTopRate(struct vnt_private *pDevice) pDevice->byTopOFDMBasicRate = byTopOFDM; for (ii = RATE_11M;; ii--) { - if ((pDevice->wBasicRate) & ((unsigned short)(1<basic_rates) & ((u32)(1 << ii))) { byTopCCK = ii; break; }