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

staging: vt6656: clean up BBvSetAntennaMode.

white space clean up.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1ff5435
......@@ -869,25 +869,21 @@ void BBvCalculateParameter(struct vnt_private *priv, u32 frame_length,
*/
void BBvSetAntennaMode(struct vnt_private *pDevice, u8 byAntennaMode)
{
switch (byAntennaMode) {
case ANT_TXA:
case ANT_TXB:
break;
case ANT_RXA:
pDevice->byBBRxConf &= 0xFC;
break;
case ANT_RXB:
pDevice->byBBRxConf &= 0xFE;
pDevice->byBBRxConf |= 0x02;
break;
}
switch (byAntennaMode) {
case ANT_TXA:
case ANT_TXB:
break;
case ANT_RXA:
pDevice->byBBRxConf &= 0xFC;
break;
case ANT_RXB:
pDevice->byBBRxConf &= 0xFE;
pDevice->byBBRxConf |= 0x02;
break;
}
CONTROLnsRequestOut(pDevice,
MESSAGE_TYPE_SET_ANTMD,
(u16) byAntennaMode,
0,
0,
NULL);
CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_SET_ANTMD,
(u16)byAntennaMode, 0, 0, NULL);
}
/*
......
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