forked from Minki/linux
staging: vt6655: Fix issue of byPacketType is not set at all.
set by calling CARDbyGetPktType. change CARDbIsOFDMinBasicRate to check basic_rates. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8e8a9f5133
commit
61b90995d3
@ -342,6 +342,8 @@ bool CARDbSetPhyParameter(struct vnt_private *pDevice, CARD_PHY_TYPE ePHYType,
|
||||
VNSvOutPortB(pDevice->PortOffset + MAC_REG_CWMAXMIN0, pDevice->byCWMaxMin);
|
||||
}
|
||||
|
||||
pDevice->byPacketType = CARDbyGetPktType(pDevice);
|
||||
|
||||
CARDvSetRSPINF(pDevice, ePHYType);
|
||||
|
||||
return true;
|
||||
@ -876,7 +878,7 @@ bool CARDbIsOFDMinBasicRate(struct vnt_private *pDevice)
|
||||
int ii;
|
||||
|
||||
for (ii = RATE_54M; ii >= RATE_6M; ii--) {
|
||||
if ((pDevice->wBasicRate) & ((unsigned short)(1 << ii)))
|
||||
if ((pDevice->basic_rates) & ((u32)(1 << ii)))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user