Commit 1efb8fac authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: camel case and clean up CARDvSetBSSMode

camel case changes
pDevice -> priv
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3203144
...@@ -838,46 +838,44 @@ int CARDbRadioPowerOn(struct vnt_private *priv) ...@@ -838,46 +838,44 @@ int CARDbRadioPowerOn(struct vnt_private *priv)
return ret; return ret;
} }
void CARDvSetBSSMode(struct vnt_private *pDevice) void CARDvSetBSSMode(struct vnt_private *priv)
{ {
// Set BB and packet type at the same time.//{{RobertYu:20050222, AL7230 have two TX PA output, only connet to b/g now if (priv->byRFType == RF_AIROHA7230 && priv->byBBType == BB_TYPE_11A)
// so in 11a mode need to set the MAC Reg0x4C to 11b/g mode to turn on PA MACvSetBBType(priv, BB_TYPE_11G);
if( (pDevice->byRFType == RF_AIROHA7230 ) && (pDevice->byBBType == BB_TYPE_11A) )
{
MACvSetBBType(pDevice, BB_TYPE_11G);
}
else else
{ MACvSetBBType(priv, priv->byBBType);
MACvSetBBType(pDevice, pDevice->byBBType);
}
pDevice->byPacketType = CARDbyGetPktType(pDevice);
if (pDevice->byBBType == BB_TYPE_11A) { priv->byPacketType = CARDbyGetPktType(priv);
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0x88, 0x03);
} else if (pDevice->byBBType == BB_TYPE_11B) {
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0x88, 0x02);
} else if (pDevice->byBBType == BB_TYPE_11G) {
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0x88, 0x08);
}
vUpdateIFS(pDevice); if (priv->byBBType == BB_TYPE_11A)
CARDvSetRSPINF(pDevice, (u8)pDevice->byBBType); ControlvWriteByte(priv, MESSAGE_REQUEST_BBREG, 0x88, 0x03);
else if (priv->byBBType == BB_TYPE_11B)
ControlvWriteByte(priv, MESSAGE_REQUEST_BBREG, 0x88, 0x02);
else if (priv->byBBType == BB_TYPE_11G)
ControlvWriteByte(priv, MESSAGE_REQUEST_BBREG, 0x88, 0x08);
if ( pDevice->byBBType == BB_TYPE_11A ) { vUpdateIFS(priv);
//request by Jack 2005-04-26 CARDvSetRSPINF(priv, (u8)priv->byBBType);
if (pDevice->byRFType == RF_AIROHA7230) {
pDevice->abyBBVGA[0] = 0x20; if (priv->byBBType == BB_TYPE_11A) {
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xE7, pDevice->abyBBVGA[0]); if (priv->byRFType == RF_AIROHA7230) {
priv->abyBBVGA[0] = 0x20;
ControlvWriteByte(priv, MESSAGE_REQUEST_BBREG,
0xe7, priv->abyBBVGA[0]);
} }
pDevice->abyBBVGA[2] = 0x10;
pDevice->abyBBVGA[3] = 0x10; priv->abyBBVGA[2] = 0x10;
priv->abyBBVGA[3] = 0x10;
} else { } else {
//request by Jack 2005-04-26 if (priv->byRFType == RF_AIROHA7230) {
if (pDevice->byRFType == RF_AIROHA7230) { priv->abyBBVGA[0] = 0x1c;
pDevice->abyBBVGA[0] = 0x1C;
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xE7, pDevice->abyBBVGA[0]); ControlvWriteByte(priv, MESSAGE_REQUEST_BBREG,
0xe7, priv->abyBBVGA[0]);
} }
pDevice->abyBBVGA[2] = 0x0;
pDevice->abyBBVGA[3] = 0x0; priv->abyBBVGA[2] = 0x0;
priv->abyBBVGA[3] = 0x0;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment