mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
staging: vt6655: CARDvUpdateBasicTopRate use basic_rates to find top rate
basic_rates should now be used to find it. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4d089bb4e7
commit
3008dd9d9b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user