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

staging: vt6656: struct vnt_private remove camel case antenna variables

Camel case changes
bTxRxAntInv -> tx_rx_ant_inv
dwRxAntennaSel -> rx_antenna_sel
byRxAntennaMode -> rx_antenna_mode
byTxAntennaMode -> tx_antenna_mode
byRadioCtl -> radio_ctl
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ad35460
...@@ -317,11 +317,11 @@ struct vnt_private { ...@@ -317,11 +317,11 @@ struct vnt_private {
u32 current_rssi; u32 current_rssi;
/* Antenna Diversity */ /* Antenna Diversity */
int bTxRxAntInv; int tx_rx_ant_inv;
u32 dwRxAntennaSel; u32 rx_antenna_sel;
u8 byRxAntennaMode; u8 rx_antenna_mode;
u8 byTxAntennaMode; u8 tx_antenna_mode;
u8 byRadioCtl; u8 radio_ctl;
/* IFS & Cw */ /* IFS & Cw */
u32 uSIFS; /* Current SIFS */ u32 uSIFS; /* Current SIFS */
......
...@@ -239,9 +239,9 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -239,9 +239,9 @@ static int device_init_registers(struct vnt_private *priv)
antenna = priv->abyEEPROM[EEP_OFS_ANTENNA]; antenna = priv->abyEEPROM[EEP_OFS_ANTENNA];
if (antenna & EEP_ANTINV) if (antenna & EEP_ANTINV)
priv->bTxRxAntInv = true; priv->tx_rx_ant_inv = true;
else else
priv->bTxRxAntInv = false; priv->tx_rx_ant_inv = false;
antenna &= (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); antenna &= (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN);
...@@ -249,35 +249,35 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -249,35 +249,35 @@ static int device_init_registers(struct vnt_private *priv)
antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN);
if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) { if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) {
priv->byTxAntennaMode = ANT_B; priv->tx_antenna_mode = ANT_B;
priv->dwRxAntennaSel = 1; priv->rx_antenna_sel = 1;
if (priv->bTxRxAntInv == true) if (priv->tx_rx_ant_inv == true)
priv->byRxAntennaMode = ANT_A; priv->rx_antenna_mode = ANT_A;
else else
priv->byRxAntennaMode = ANT_B; priv->rx_antenna_mode = ANT_B;
} else { } else {
priv->dwRxAntennaSel = 0; priv->rx_antenna_sel = 0;
if (antenna & EEP_ANTENNA_AUX) { if (antenna & EEP_ANTENNA_AUX) {
priv->byTxAntennaMode = ANT_A; priv->tx_antenna_mode = ANT_A;
if (priv->bTxRxAntInv == true) if (priv->tx_rx_ant_inv == true)
priv->byRxAntennaMode = ANT_B; priv->rx_antenna_mode = ANT_B;
else else
priv->byRxAntennaMode = ANT_A; priv->rx_antenna_mode = ANT_A;
} else { } else {
priv->byTxAntennaMode = ANT_B; priv->tx_antenna_mode = ANT_B;
if (priv->bTxRxAntInv == true) if (priv->tx_rx_ant_inv == true)
priv->byRxAntennaMode = ANT_A; priv->rx_antenna_mode = ANT_A;
else else
priv->byRxAntennaMode = ANT_B; priv->rx_antenna_mode = ANT_B;
} }
} }
/* Set initial antenna mode */ /* Set initial antenna mode */
vnt_set_antenna_mode(priv, priv->byRxAntennaMode); vnt_set_antenna_mode(priv, priv->rx_antenna_mode);
/* get Auto Fall Back type */ /* get Auto Fall Back type */
priv->byAutoFBCtrl = AUTO_FB_0; priv->byAutoFBCtrl = AUTO_FB_0;
...@@ -348,9 +348,9 @@ static int device_init_registers(struct vnt_private *priv) ...@@ -348,9 +348,9 @@ static int device_init_registers(struct vnt_private *priv)
vnt_set_short_slot_time(priv); vnt_set_short_slot_time(priv);
priv->byRadioCtl = priv->abyEEPROM[EEP_OFS_RADIOCTL]; priv->radio_ctl = priv->abyEEPROM[EEP_OFS_RADIOCTL];
if ((priv->byRadioCtl & EEP_RADIOCTL_ENABLE) != 0) { if ((priv->radio_ctl & EEP_RADIOCTL_ENABLE) != 0) {
status = vnt_control_in(priv, MESSAGE_TYPE_READ, status = vnt_control_in(priv, MESSAGE_TYPE_READ,
MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &tmp); MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &tmp);
......
...@@ -146,17 +146,17 @@ void vnt_run_command(struct work_struct *work) ...@@ -146,17 +146,17 @@ void vnt_run_command(struct work_struct *work)
case WLAN_CMD_CHANGE_ANTENNA_START: case WLAN_CMD_CHANGE_ANTENNA_START:
dev_dbg(&priv->usb->dev, "Change from Antenna%d to", dev_dbg(&priv->usb->dev, "Change from Antenna%d to",
priv->dwRxAntennaSel); priv->rx_antenna_sel);
if (priv->dwRxAntennaSel == 0) { if (priv->rx_antenna_sel == 0) {
priv->dwRxAntennaSel = 1; priv->rx_antenna_sel = 1;
if (priv->bTxRxAntInv == true) if (priv->tx_rx_ant_inv == true)
vnt_set_antenna_mode(priv, ANT_RXA); vnt_set_antenna_mode(priv, ANT_RXA);
else else
vnt_set_antenna_mode(priv, ANT_RXB); vnt_set_antenna_mode(priv, ANT_RXB);
} else { } else {
priv->dwRxAntennaSel = 0; priv->rx_antenna_sel = 0;
if (priv->bTxRxAntInv == true) if (priv->tx_rx_ant_inv == true)
vnt_set_antenna_mode(priv, ANT_RXB); vnt_set_antenna_mode(priv, ANT_RXB);
else else
vnt_set_antenna_mode(priv, ANT_RXA); vnt_set_antenna_mode(priv, ANT_RXA);
......
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