Commit 3d1f39e9 authored by Briana Oursler's avatar Briana Oursler Committed by Greg Kroah-Hartman

Staging: vt6655: Remove CARDbRadioPowerOn definition.

Remove function CARDbRadioPowerOn that is never called, along with
comments related to it.
Signed-off-by: default avatarBriana Oursler <briana.oursler@gmail.com>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/e64c02aadd0b846604c755989b39f374161a87e0.1585802818.git.briana.oursler@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ec64e91
......@@ -17,7 +17,6 @@
* CARDvSetFirstNextTBTT - Set NIC Beacon time
* CARDvUpdateNextTBTT - Sync. NIC Beacon time
* CARDbRadioPowerOff - Turn Off NIC Radio Power
* CARDbRadioPowerOn - Turn On NIC Radio Power
*
* Revision History:
* 06-10-2003 Bryan YC Fan: Re-write codes to support VT3253 spec.
......@@ -437,60 +436,6 @@ void CARDbRadioPowerOff(struct vnt_private *priv)
LED_ACTSET); /* LED issue */
}
/*
* Description: Turn on Radio power
*
* Parameters:
* In:
* priv - The adapter to be turned on
* Out:
* none
*
* Return Value: true if success; otherwise false
*/
bool CARDbRadioPowerOn(struct vnt_private *priv)
{
bool bResult = true;
pr_debug("chester power on\n");
if (priv->bRadioControlOff) {
if (priv->bHWRadioOff)
pr_debug("chester bHWRadioOff\n");
if (priv->bRadioControlOff)
pr_debug("chester bRadioControlOff\n");
return false; }
if (!priv->bRadioOff) {
pr_debug("chester pbRadioOff\n");
return true; }
BBvExitDeepSleep(priv, priv->byLocalID);
MACvRegBitsOn(priv->PortOffset, MAC_REG_HOSTCR, HOSTCR_RXON);
switch (priv->byRFType) {
case RF_RFMD2959:
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL,
SOFTPWRCTL_TXPEINV);
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL,
SOFTPWRCTL_SWPE1);
break;
case RF_AIROHA:
case RF_AL2230S:
case RF_AIROHA7230:
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL,
(SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3));
break;
}
priv->bRadioOff = false;
pr_debug("chester power on\n");
MACvRegBitsOff(priv->PortOffset, MAC_REG_GPIOCTL0,
LED_ACTSET); /* LED issue */
return bResult;
}
void CARDvSafeResetTx(struct vnt_private *priv)
{
unsigned int uu;
......
......@@ -55,7 +55,6 @@ unsigned char CARDbyGetPktType(struct vnt_private *priv);
void CARDvSafeResetTx(struct vnt_private *priv);
void CARDvSafeResetRx(struct vnt_private *priv);
void CARDbRadioPowerOff(struct vnt_private *priv);
bool CARDbRadioPowerOn(struct vnt_private *priv);
bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type);
bool CARDbUpdateTSF(struct vnt_private *priv, unsigned char byRxRate,
u64 qwBSSTimestamp);
......
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