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

staging: vt6656: camel case clean up CARDbRadioPowerOn

camel case changes
pDevice -> priv
bResult -> ret
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07deb710
...@@ -803,42 +803,39 @@ int CARDbRadioPowerOff(struct vnt_private *priv) ...@@ -803,42 +803,39 @@ int CARDbRadioPowerOff(struct vnt_private *priv)
* *
* Parameters: * Parameters:
* In: * In:
* pDevice - The adapter to be turned on * priv - The adapter to be turned on
* Out: * Out:
* none * none
* *
* Return Value: true if success; otherwise false * Return Value: true if success; otherwise false
* *
*/ */
int CARDbRadioPowerOn(struct vnt_private *pDevice) int CARDbRadioPowerOn(struct vnt_private *priv)
{ {
int bResult = true; int ret = true;
if ((pDevice->bHWRadioOff == true) || (pDevice->bRadioControlOff == true)) {
return false;
}
//if (pDevice->bRadioOff == false) if (priv->bHWRadioOff == true || priv->bRadioControlOff == true)
// return true; return false;
pDevice->bRadioOff = false; priv->bRadioOff = false;
BBvExitDeepSleep(pDevice); BBvExitDeepSleep(priv);
MACvRegBitsOn(pDevice, MAC_REG_HOSTCR, HOSTCR_RXON); MACvRegBitsOn(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
switch (pDevice->byRFType) { switch (priv->byRFType) {
case RF_AL2230: case RF_AL2230:
case RF_AL2230S: case RF_AL2230S:
case RF_AIROHA7230: case RF_AIROHA7230:
case RF_VT3226: //RobertYu:20051111 case RF_VT3226:
case RF_VT3226D0: case RF_VT3226D0:
case RF_VT3342A0: //RobertYu:20060609 case RF_VT3342A0:
MACvRegBitsOn(pDevice, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3)); MACvRegBitsOn(priv, MAC_REG_SOFTPWRCTL,
break; (SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3));
} break;
}
return bResult; return ret;
} }
void CARDvSetBSSMode(struct vnt_private *pDevice) void CARDvSetBSSMode(struct vnt_private *pDevice)
......
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