mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: camel case clean up CARDvUpdateBasicTopRate
Camel case changes pDevice -> priv byTopOFDM -> top_ofdm byTopCCK -> top_cck Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5ebc46d64c
commit
dcce9e0b08
|
@ -473,29 +473,31 @@ void vUpdateIFS(struct vnt_private *priv)
|
||||||
MESSAGE_REQUEST_MACREG, 1, &max_min);
|
MESSAGE_REQUEST_MACREG, 1, &max_min);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CARDvUpdateBasicTopRate(struct vnt_private *pDevice)
|
void CARDvUpdateBasicTopRate(struct vnt_private *priv)
|
||||||
{
|
{
|
||||||
u8 byTopOFDM = RATE_24M, byTopCCK = RATE_1M;
|
u8 top_ofdm = RATE_24M, top_cck = RATE_1M;
|
||||||
u8 ii;
|
u8 i;
|
||||||
|
|
||||||
//Determines the highest basic rate.
|
/*Determines the highest basic rate.*/
|
||||||
for (ii = RATE_54M; ii >= RATE_6M; ii --) {
|
for (i = RATE_54M; i >= RATE_6M; i--) {
|
||||||
if ( (pDevice->wBasicRate) & ((u16)(1<<ii)) ) {
|
if (priv->wBasicRate & (u16)(1 << i)) {
|
||||||
byTopOFDM = ii;
|
top_ofdm = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pDevice->byTopOFDMBasicRate = byTopOFDM;
|
|
||||||
|
|
||||||
for (ii = RATE_11M;; ii --) {
|
priv->byTopOFDMBasicRate = top_ofdm;
|
||||||
if ( (pDevice->wBasicRate) & ((u16)(1<<ii)) ) {
|
|
||||||
byTopCCK = ii;
|
for (i = RATE_11M;; i--) {
|
||||||
break;
|
if (priv->wBasicRate & (u16)(1 << i)) {
|
||||||
}
|
top_cck = i;
|
||||||
if (ii == RATE_1M)
|
break;
|
||||||
break;
|
}
|
||||||
}
|
if (i == RATE_1M)
|
||||||
pDevice->byTopCCKBasicRate = byTopCCK;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
priv->byTopCCKBasicRate = top_cck;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -48,7 +48,7 @@ struct vnt_private;
|
||||||
void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel);
|
void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel);
|
||||||
void CARDvSetRSPINF(struct vnt_private *, u8);
|
void CARDvSetRSPINF(struct vnt_private *, u8);
|
||||||
void vUpdateIFS(struct vnt_private *);
|
void vUpdateIFS(struct vnt_private *);
|
||||||
void CARDvUpdateBasicTopRate(struct vnt_private *pDevice);
|
void CARDvUpdateBasicTopRate(struct vnt_private *);
|
||||||
void CARDbAddBasicRate(struct vnt_private *pDevice, u16 wRateIdx);
|
void CARDbAddBasicRate(struct vnt_private *pDevice, u16 wRateIdx);
|
||||||
int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice);
|
int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice);
|
||||||
void CARDvAdjustTSF(struct vnt_private *pDevice, u8 byRxRate,
|
void CARDvAdjustTSF(struct vnt_private *pDevice, u8 byRxRate,
|
||||||
|
|
Loading…
Reference in New Issue