Commit faaf9c19 authored by Nandini Hanumanthagowda's avatar Nandini Hanumanthagowda Committed by Greg Kroah-Hartman

staging: vt6656: fixed the switch case indentation level error

aligned the case statements of 'switch' so that the switch and
case are on same indentation level to fix the following error.
	ERROR: switch and case should be at the same indent
Signed-off-by: default avatarNandini Hanumanthagowda <nandu.hgowda@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 015bdc26
No related merge requests found
...@@ -292,7 +292,7 @@ void vRunCommand(struct work_struct *work) ...@@ -292,7 +292,7 @@ void vRunCommand(struct work_struct *work)
switch (pDevice->eCommandState) { switch (pDevice->eCommandState) {
case WLAN_CMD_SCAN_START: case WLAN_CMD_SCAN_START:
pDevice->byReAssocCount = 0; pDevice->byReAssocCount = 0;
if (pDevice->bRadioOff == true) { if (pDevice->bRadioOff == true) {
...@@ -392,7 +392,7 @@ void vRunCommand(struct work_struct *work) ...@@ -392,7 +392,7 @@ void vRunCommand(struct work_struct *work)
break; break;
case WLAN_CMD_SCAN_END: case WLAN_CMD_SCAN_END:
// Set Baseband's sensitivity back. // Set Baseband's sensitivity back.
if (pDevice->byBBType != pDevice->byScanBBType) { if (pDevice->byBBType != pDevice->byScanBBType) {
...@@ -428,7 +428,7 @@ void vRunCommand(struct work_struct *work) ...@@ -428,7 +428,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_DISASSOCIATE_START: case WLAN_CMD_DISASSOCIATE_START:
pDevice->byReAssocCount = 0; pDevice->byReAssocCount = 0;
if ((pMgmt->eCurrMode == WMAC_MODE_ESS_STA) && if ((pMgmt->eCurrMode == WMAC_MODE_ESS_STA) &&
(pMgmt->eCurrState != WMAC_STATE_ASSOC)) { (pMgmt->eCurrState != WMAC_STATE_ASSOC)) {
...@@ -467,7 +467,7 @@ void vRunCommand(struct work_struct *work) ...@@ -467,7 +467,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_SSID_START: case WLAN_CMD_SSID_START:
pDevice->byReAssocCount = 0; pDevice->byReAssocCount = 0;
if (pDevice->bRadioOff == true) { if (pDevice->bRadioOff == true) {
...@@ -593,7 +593,7 @@ void vRunCommand(struct work_struct *work) ...@@ -593,7 +593,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_AUTHENTICATE_WAIT: case WLAN_AUTHENTICATE_WAIT:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_AUTHENTICATE_WAIT\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_AUTHENTICATE_WAIT\n");
if (pMgmt->eCurrState == WMAC_STATE_AUTH) { if (pMgmt->eCurrState == WMAC_STATE_AUTH) {
pDevice->byLinkWaitCount = 0; pDevice->byLinkWaitCount = 0;
...@@ -622,7 +622,7 @@ void vRunCommand(struct work_struct *work) ...@@ -622,7 +622,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_ASSOCIATE_WAIT: case WLAN_ASSOCIATE_WAIT:
if (pMgmt->eCurrState == WMAC_STATE_ASSOC) { if (pMgmt->eCurrState == WMAC_STATE_ASSOC) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCurrState == WMAC_STATE_ASSOC\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCurrState == WMAC_STATE_ASSOC\n");
if (pDevice->ePSMode != WMAC_POWER_CAM) { if (pDevice->ePSMode != WMAC_POWER_CAM) {
...@@ -656,7 +656,7 @@ void vRunCommand(struct work_struct *work) ...@@ -656,7 +656,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_AP_MODE_START: case WLAN_CMD_AP_MODE_START:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_CMD_AP_MODE_START\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_CMD_AP_MODE_START\n");
if (pMgmt->eConfigMode == WMAC_CONFIG_AP) { if (pMgmt->eConfigMode == WMAC_CONFIG_AP) {
...@@ -692,7 +692,7 @@ void vRunCommand(struct work_struct *work) ...@@ -692,7 +692,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_TX_PSPACKET_START: case WLAN_CMD_TX_PSPACKET_START:
// DTIM Multicast tx // DTIM Multicast tx
if (pMgmt->sNodeDBTable[0].bRxPSPoll) { if (pMgmt->sNodeDBTable[0].bRxPSPoll) {
while ((skb = skb_dequeue(&pMgmt->sNodeDBTable[0].sTxPSQueue)) != NULL) { while ((skb = skb_dequeue(&pMgmt->sNodeDBTable[0].sTxPSQueue)) != NULL) {
...@@ -748,7 +748,7 @@ void vRunCommand(struct work_struct *work) ...@@ -748,7 +748,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_RADIO_START: case WLAN_CMD_RADIO_START:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_CMD_RADIO_START\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState == WLAN_CMD_RADIO_START\n");
// if (pDevice->bRadioCmd == true) // if (pDevice->bRadioCmd == true)
...@@ -843,7 +843,7 @@ void vRunCommand(struct work_struct *work) ...@@ -843,7 +843,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_CHANGE_BBSENSITIVITY_START: case WLAN_CMD_CHANGE_BBSENSITIVITY_START:
pDevice->bStopDataPkt = true; pDevice->bStopDataPkt = true;
pDevice->byBBVGACurrent = pDevice->byBBVGANew; pDevice->byBBVGACurrent = pDevice->byBBVGANew;
...@@ -853,24 +853,24 @@ void vRunCommand(struct work_struct *work) ...@@ -853,24 +853,24 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_TBTT_WAKEUP_START: case WLAN_CMD_TBTT_WAKEUP_START:
PSbIsNextTBTTWakeUp(pDevice); PSbIsNextTBTTWakeUp(pDevice);
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_BECON_SEND_START: case WLAN_CMD_BECON_SEND_START:
bMgrPrepareBeaconToSend(pDevice, pMgmt); bMgrPrepareBeaconToSend(pDevice, pMgmt);
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_SETPOWER_START: case WLAN_CMD_SETPOWER_START:
RFbSetPower(pDevice, pDevice->wCurrentRate, pMgmt->uCurrChannel); RFbSetPower(pDevice, pDevice->wCurrentRate, pMgmt->uCurrChannel);
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_CHANGE_ANTENNA_START: case WLAN_CMD_CHANGE_ANTENNA_START:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Change from Antenna%d to", (int)pDevice->dwRxAntennaSel); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Change from Antenna%d to", (int)pDevice->dwRxAntennaSel);
if (pDevice->dwRxAntennaSel == 0) { if (pDevice->dwRxAntennaSel == 0) {
pDevice->dwRxAntennaSel = 1; pDevice->dwRxAntennaSel = 1;
...@@ -888,12 +888,12 @@ void vRunCommand(struct work_struct *work) ...@@ -888,12 +888,12 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_REMOVE_ALLKEY_START: case WLAN_CMD_REMOVE_ALLKEY_START:
KeybRemoveAllKey(pDevice, &(pDevice->sKey), pDevice->abyBSSID); KeybRemoveAllKey(pDevice, &(pDevice->sKey), pDevice->abyBSSID);
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_MAC_DISPOWERSAVING_START: case WLAN_CMD_MAC_DISPOWERSAVING_START:
ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG, MAC_REG_PSCTL, &byData); ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG, MAC_REG_PSCTL, &byData);
if ((byData & PSCTL_PS) != 0) { if ((byData & PSCTL_PS) != 0) {
// disable power saving hw function // disable power saving hw function
...@@ -908,7 +908,7 @@ void vRunCommand(struct work_struct *work) ...@@ -908,7 +908,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
case WLAN_CMD_11H_CHSW_START: case WLAN_CMD_11H_CHSW_START:
CARDbSetMediaChannel(pDevice, pDevice->byNewChannel); CARDbSetMediaChannel(pDevice, pDevice->byNewChannel);
pDevice->bChannelSwitch = false; pDevice->bChannelSwitch = false;
pMgmt->uCurrChannel = pDevice->byNewChannel; pMgmt->uCurrChannel = pDevice->byNewChannel;
...@@ -916,7 +916,7 @@ void vRunCommand(struct work_struct *work) ...@@ -916,7 +916,7 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
default: default:
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
break; break;
} //switch } //switch
...@@ -946,7 +946,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -946,7 +946,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
pDevice->cbFreeCmdQueue++; pDevice->cbFreeCmdQueue++;
pDevice->bCmdRunning = true; pDevice->bCmdRunning = true;
switch (pDevice->eCommand) { switch (pDevice->eCommand) {
case WLAN_CMD_BSSID_SCAN: case WLAN_CMD_BSSID_SCAN:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState= WLAN_CMD_BSSID_SCAN\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState= WLAN_CMD_BSSID_SCAN\n");
pDevice->eCommandState = WLAN_CMD_SCAN_START; pDevice->eCommandState = WLAN_CMD_SCAN_START;
pMgmt->uScanChannel = 0; pMgmt->uScanChannel = 0;
...@@ -963,7 +963,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -963,7 +963,7 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
} }
*/ */
break; break;
case WLAN_CMD_SSID: case WLAN_CMD_SSID:
pDevice->eCommandState = WLAN_CMD_SSID_START; pDevice->eCommandState = WLAN_CMD_SSID_START;
if (pSSID->len > WLAN_SSID_MAXLEN) if (pSSID->len > WLAN_SSID_MAXLEN)
pSSID->len = WLAN_SSID_MAXLEN; pSSID->len = WLAN_SSID_MAXLEN;
...@@ -971,52 +971,52 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -971,52 +971,52 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
memcpy(pMgmt->abyDesireSSID, pSSID, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); memcpy(pMgmt->abyDesireSSID, pSSID, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState= WLAN_CMD_SSID_START\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"eCommandState= WLAN_CMD_SSID_START\n");
break; break;
case WLAN_CMD_DISASSOCIATE: case WLAN_CMD_DISASSOCIATE:
pDevice->eCommandState = WLAN_CMD_DISASSOCIATE_START; pDevice->eCommandState = WLAN_CMD_DISASSOCIATE_START;
break; break;
case WLAN_CMD_RX_PSPOLL: case WLAN_CMD_RX_PSPOLL:
pDevice->eCommandState = WLAN_CMD_TX_PSPACKET_START; pDevice->eCommandState = WLAN_CMD_TX_PSPACKET_START;
break; break;
case WLAN_CMD_RUN_AP: case WLAN_CMD_RUN_AP:
pDevice->eCommandState = WLAN_CMD_AP_MODE_START; pDevice->eCommandState = WLAN_CMD_AP_MODE_START;
break; break;
case WLAN_CMD_RADIO: case WLAN_CMD_RADIO:
pDevice->eCommandState = WLAN_CMD_RADIO_START; pDevice->eCommandState = WLAN_CMD_RADIO_START;
pDevice->bRadioCmd = bRadioCmd; pDevice->bRadioCmd = bRadioCmd;
break; 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;
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;
case WLAN_CMD_BECON_SEND: case WLAN_CMD_BECON_SEND:
pDevice->eCommandState = WLAN_CMD_BECON_SEND_START; pDevice->eCommandState = WLAN_CMD_BECON_SEND_START;
break; break;
case WLAN_CMD_SETPOWER: case WLAN_CMD_SETPOWER:
pDevice->eCommandState = WLAN_CMD_SETPOWER_START; pDevice->eCommandState = WLAN_CMD_SETPOWER_START;
break; break;
case WLAN_CMD_CHANGE_ANTENNA: case WLAN_CMD_CHANGE_ANTENNA:
pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START; pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
break; break;
case WLAN_CMD_REMOVE_ALLKEY: case WLAN_CMD_REMOVE_ALLKEY:
pDevice->eCommandState = WLAN_CMD_REMOVE_ALLKEY_START; pDevice->eCommandState = WLAN_CMD_REMOVE_ALLKEY_START;
break; break;
case WLAN_CMD_MAC_DISPOWERSAVING: case WLAN_CMD_MAC_DISPOWERSAVING:
pDevice->eCommandState = WLAN_CMD_MAC_DISPOWERSAVING_START; pDevice->eCommandState = WLAN_CMD_MAC_DISPOWERSAVING_START;
break; 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;
default: default:
break; break;
} }
...@@ -1037,31 +1037,31 @@ int bScheduleCommand(struct vnt_private *pDevice, ...@@ -1037,31 +1037,31 @@ int bScheduleCommand(struct vnt_private *pDevice,
memset(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, 0 , WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); memset(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, 0 , WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
if (pbyItem0 != NULL) { if (pbyItem0 != NULL) {
switch (eCommand) { switch (eCommand) {
case WLAN_CMD_BSSID_SCAN: case WLAN_CMD_BSSID_SCAN:
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = false; pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bForceSCAN = false;
memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID,
pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
break; break;
case WLAN_CMD_SSID: case WLAN_CMD_SSID:
memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID, memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID,
pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1); pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
break; break;
case WLAN_CMD_DISASSOCIATE: case WLAN_CMD_DISASSOCIATE:
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bNeedRadioOFF = *((int *)pbyItem0); pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bNeedRadioOFF = *((int *)pbyItem0);
break; break;
/* /*
case WLAN_CMD_DEAUTH: case WLAN_CMD_DEAUTH:
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].wDeAuthenReason = *((u16 *)pbyItem0); pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].wDeAuthenReason = *((u16 *)pbyItem0);
break; break;
*/ */
case WLAN_CMD_RADIO: case WLAN_CMD_RADIO:
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bRadioCmd = *((int *)pbyItem0); pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].bRadioCmd = *((int *)pbyItem0);
break; break;
default: default:
break; break;
} }
} }
......
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