basic_rates should now be used to find it.

Signed-off-by: Malcolm Priestley <tvbox...@gmail.com>
---
 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 aaa7289..d7b023b 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<<ii))) {
+               if ((pDevice->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<<ii))) {
+               if ((pDevice->basic_rates) & ((u32)(1 << ii))) {
                        byTopCCK = ii;
                        break;
                }
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to