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

staging: vt6656: wcmd remove unused commands

WLAN_CMD_CHANGE_BBSENSITIVITY and WLAN_CMD_MAC_DISPOWERSAVING
are already implemented and don't need the command timer.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c06b1ad0
...@@ -63,7 +63,6 @@ void vRunCommand(struct work_struct *work) ...@@ -63,7 +63,6 @@ void vRunCommand(struct work_struct *work)
{ {
struct vnt_private *pDevice = struct vnt_private *pDevice =
container_of(work, struct vnt_private, run_command_work.work); container_of(work, struct vnt_private, run_command_work.work);
u8 byData;
if (pDevice->Flags & fMP_DISCONNECTED) if (pDevice->Flags & fMP_DISCONNECTED)
return; return;
...@@ -87,15 +86,6 @@ void vRunCommand(struct work_struct *work) ...@@ -87,15 +86,6 @@ void vRunCommand(struct work_struct *work)
break; break;
case WLAN_CMD_CHANGE_BBSENSITIVITY_START:
pDevice->bStopDataPkt = true;
pDevice->byBBVGACurrent = pDevice->byBBVGANew;
BBvSetVGAGainOffset(pDevice, pDevice->byBBVGACurrent);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Change sensitivity pDevice->byBBVGACurrent = %x\n", pDevice->byBBVGACurrent);
pDevice->bStopDataPkt = false;
break;
case WLAN_CMD_TBTT_WAKEUP_START: case WLAN_CMD_TBTT_WAKEUP_START:
vnt_next_tbtt_wakeup(pDevice); vnt_next_tbtt_wakeup(pDevice);
break; break;
...@@ -134,26 +124,10 @@ void vRunCommand(struct work_struct *work) ...@@ -134,26 +124,10 @@ void vRunCommand(struct work_struct *work)
} }
break; break;
case WLAN_CMD_MAC_DISPOWERSAVING_START:
vnt_control_in_u8(pDevice, MESSAGE_REQUEST_MACREG, MAC_REG_PSCTL, &byData);
if ((byData & PSCTL_PS) != 0) {
// disable power saving hw function
vnt_control_out(pDevice,
MESSAGE_TYPE_DISABLE_PS,
0,
0,
0,
NULL
);
}
break;
case WLAN_CMD_11H_CHSW_START: case WLAN_CMD_11H_CHSW_START:
vnt_set_channel(pDevice, pDevice->hw->conf.chandef.chan->hw_value); vnt_set_channel(pDevice, pDevice->hw->conf.chandef.chan->hw_value);
break; break;
case WLAN_CMD_CONFIGURE_FILTER_START:
break;
default: default:
break; break;
} //switch } //switch
...@@ -185,10 +159,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -185,10 +159,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_CHANGE_BBSENSITIVITY:
pDevice->eCommandState = WLAN_CMD_CHANGE_BBSENSITIVITY_START;
break;
case WLAN_CMD_TBTT_WAKEUP: case WLAN_CMD_TBTT_WAKEUP:
pDevice->eCommandState = WLAN_CMD_TBTT_WAKEUP_START; pDevice->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
break; break;
...@@ -205,10 +175,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -205,10 +175,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START; pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
break; break;
case WLAN_CMD_MAC_DISPOWERSAVING:
pDevice->eCommandState = WLAN_CMD_MAC_DISPOWERSAVING_START;
break;
case WLAN_CMD_11H_CHSW: case WLAN_CMD_11H_CHSW:
pDevice->eCommandState = WLAN_CMD_11H_CHSW_START; pDevice->eCommandState = WLAN_CMD_11H_CHSW_START;
break; break;
......
...@@ -37,21 +37,11 @@ ...@@ -37,21 +37,11 @@
// Command code // Command code
typedef enum tagCMD_CODE { typedef enum tagCMD_CODE {
WLAN_CMD_INIT_MAC80211, WLAN_CMD_INIT_MAC80211,
WLAN_CMD_BSSID_SCAN,
WLAN_CMD_SSID,
WLAN_CMD_DISASSOCIATE,
WLAN_CMD_DEAUTH,
WLAN_CMD_RX_PSPOLL,
WLAN_CMD_CHANGE_BBSENSITIVITY,
WLAN_CMD_SETPOWER, WLAN_CMD_SETPOWER,
WLAN_CMD_TBTT_WAKEUP, WLAN_CMD_TBTT_WAKEUP,
WLAN_CMD_BECON_SEND, WLAN_CMD_BECON_SEND,
WLAN_CMD_CHANGE_ANTENNA, WLAN_CMD_CHANGE_ANTENNA,
WLAN_CMD_REMOVE_ALLKEY,
WLAN_CMD_MAC_DISPOWERSAVING,
WLAN_CMD_11H_CHSW, WLAN_CMD_11H_CHSW,
WLAN_CMD_RUN_AP,
WLAN_CMD_CONFIGURE_FILTER
} CMD_CODE, *PCMD_CODE; } CMD_CODE, *PCMD_CODE;
#define CMD_Q_SIZE 32 #define CMD_Q_SIZE 32
...@@ -77,25 +67,11 @@ typedef struct tagCMD_ITEM { ...@@ -77,25 +67,11 @@ typedef struct tagCMD_ITEM {
// Command state // Command state
typedef enum tagCMD_STATE { typedef enum tagCMD_STATE {
WLAN_CMD_INIT_MAC80211_START, WLAN_CMD_INIT_MAC80211_START,
WLAN_CMD_SCAN_START,
WLAN_CMD_SCAN_END,
WLAN_CMD_DISASSOCIATE_START,
WLAN_CMD_DEAUTHEN_START,
WLAN_CMD_SSID_START,
WLAN_AUTHENTICATE_WAIT,
WLAN_ASSOCIATE_WAIT,
WLAN_DISASSOCIATE_WAIT,
WLAN_CMD_TX_PSPACKET_START,
WLAN_CMD_CHANGE_BBSENSITIVITY_START,
WLAN_CMD_SETPOWER_START, WLAN_CMD_SETPOWER_START,
WLAN_CMD_AP_MODE_START,
WLAN_CMD_TBTT_WAKEUP_START, WLAN_CMD_TBTT_WAKEUP_START,
WLAN_CMD_BECON_SEND_START, WLAN_CMD_BECON_SEND_START,
WLAN_CMD_CHANGE_ANTENNA_START, WLAN_CMD_CHANGE_ANTENNA_START,
WLAN_CMD_REMOVE_ALLKEY_START,
WLAN_CMD_MAC_DISPOWERSAVING_START,
WLAN_CMD_11H_CHSW_START, WLAN_CMD_11H_CHSW_START,
WLAN_CMD_CONFIGURE_FILTER_START,
WLAN_CMD_IDLE WLAN_CMD_IDLE
} CMD_STATE, *PCMD_STATE; } CMD_STATE, *PCMD_STATE;
......
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