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

staging: vt6656: wcmd Remove command WLAN_CMD_RADIO

Part of it has already been removed.  checking isr1 & ISR_GPIO3
serves no purpose.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e30546d6
...@@ -197,12 +197,6 @@ void INTnsProcessData(struct vnt_private *priv) ...@@ -197,12 +197,6 @@ void INTnsProcessData(struct vnt_private *priv)
low_stats->dot11FCSErrorCount += int_data->fcs_err; low_stats->dot11FCSErrorCount += int_data->fcs_err;
} }
if (int_data->isr1 != 0)
if (int_data->isr1 & ISR_GPIO3)
bScheduleCommand((void *) priv,
WLAN_CMD_RADIO,
NULL);
priv->int_buf.in_use = false; priv->int_buf.in_use = false;
stats->tx_errors = priv->wstats.discard.retries; stats->tx_errors = priv->wstats.discard.retries;
......
...@@ -185,10 +185,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -185,10 +185,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
pDevice->eCommandState = WLAN_CMD_INIT_MAC80211_START; pDevice->eCommandState = WLAN_CMD_INIT_MAC80211_START;
break; break;
case WLAN_CMD_RADIO:
pDevice->eCommandState = WLAN_CMD_RADIO_START;
pDevice->bRadioCmd = bRadioCmd;
break;
case WLAN_CMD_CHANGE_BBSENSITIVITY: case WLAN_CMD_CHANGE_BBSENSITIVITY:
pDevice->eCommandState = WLAN_CMD_CHANGE_BBSENSITIVITY_START; pDevice->eCommandState = WLAN_CMD_CHANGE_BBSENSITIVITY_START;
break; break;
...@@ -234,16 +230,6 @@ int bScheduleCommand(struct vnt_private *pDevice, ...@@ -234,16 +230,6 @@ int bScheduleCommand(struct vnt_private *pDevice,
return false; return false;
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand; pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand;
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true; pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = true;
if (pbyItem0 != NULL) {
switch (eCommand) {
case WLAN_CMD_RADIO:
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bRadioCmd = *((int *)pbyItem0);
break;
default:
break;
}
}
ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE); ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE);
pDevice->cbFreeCmdQueue--; pDevice->cbFreeCmdQueue--;
......
...@@ -42,7 +42,6 @@ typedef enum tagCMD_CODE { ...@@ -42,7 +42,6 @@ typedef enum tagCMD_CODE {
WLAN_CMD_DISASSOCIATE, WLAN_CMD_DISASSOCIATE,
WLAN_CMD_DEAUTH, WLAN_CMD_DEAUTH,
WLAN_CMD_RX_PSPOLL, WLAN_CMD_RX_PSPOLL,
WLAN_CMD_RADIO,
WLAN_CMD_CHANGE_BBSENSITIVITY, WLAN_CMD_CHANGE_BBSENSITIVITY,
WLAN_CMD_SETPOWER, WLAN_CMD_SETPOWER,
WLAN_CMD_TBTT_WAKEUP, WLAN_CMD_TBTT_WAKEUP,
...@@ -87,7 +86,6 @@ typedef enum tagCMD_STATE { ...@@ -87,7 +86,6 @@ typedef enum tagCMD_STATE {
WLAN_ASSOCIATE_WAIT, WLAN_ASSOCIATE_WAIT,
WLAN_DISASSOCIATE_WAIT, WLAN_DISASSOCIATE_WAIT,
WLAN_CMD_TX_PSPACKET_START, WLAN_CMD_TX_PSPACKET_START,
WLAN_CMD_RADIO_START,
WLAN_CMD_CHANGE_BBSENSITIVITY_START, WLAN_CMD_CHANGE_BBSENSITIVITY_START,
WLAN_CMD_SETPOWER_START, WLAN_CMD_SETPOWER_START,
WLAN_CMD_AP_MODE_START, WLAN_CMD_AP_MODE_START,
......
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