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

staging: vt6656: indented all if-else statement blocks

indented all if-else statement blocks to remove checkpatch
warnings and errors like indent code wherever possible and
no spaces at the start of line
Signed-off-by: default avatarNandini Hanumanthagowda <nandu.hgowda@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent faaf9c19
...@@ -316,7 +316,6 @@ void vRunCommand(struct work_struct *work) ...@@ -316,7 +316,6 @@ void vRunCommand(struct work_struct *work)
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return; return;
} else { } else {
if (!ChannelValid(pDevice->byZoneType, pMgmt->uScanChannel)) { if (!ChannelValid(pDevice->byZoneType, pMgmt->uScanChannel)) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel pMgmt->uScanChannel = %d\n", pMgmt->uScanChannel); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel pMgmt->uScanChannel = %d\n", pMgmt->uScanChannel);
...@@ -335,22 +334,22 @@ void vRunCommand(struct work_struct *work) ...@@ -335,22 +334,22 @@ void vRunCommand(struct work_struct *work)
pMgmt->abyScanBSSID[5] = 0xFF; pMgmt->abyScanBSSID[5] = 0xFF;
pItemSSID->byElementID = WLAN_EID_SSID; pItemSSID->byElementID = WLAN_EID_SSID;
// clear bssid list // clear bssid list
/* BSSvClearBSSList((void *) pDevice, /* BSSvClearBSSList((void *) pDevice, pDevice->bLinkPass); */
pDevice->bLinkPass); */
pMgmt->eScanState = WMAC_IS_SCANNING; pMgmt->eScanState = WMAC_IS_SCANNING;
pDevice->byScanBBType = pDevice->byBBType; //lucas pDevice->byScanBBType = pDevice->byBBType; //lucas
pDevice->bStopDataPkt = true; pDevice->bStopDataPkt = true;
// Turn off RCR_BSSID filter every time // Turn off RCR_BSSID filter every time
MACvRegBitsOff(pDevice, MAC_REG_RCR, RCR_BSSID); MACvRegBitsOff(pDevice, MAC_REG_RCR, RCR_BSSID);
pDevice->byRxMode &= ~RCR_BSSID; pDevice->byRxMode &= ~RCR_BSSID;
} }
//lucas //lucas
vAdHocBeaconStop(pDevice); vAdHocBeaconStop(pDevice);
if ((pDevice->byBBType != BB_TYPE_11A) && (pMgmt->uScanChannel > CB_MAX_CHANNEL_24G)) { if ((pDevice->byBBType != BB_TYPE_11A) &&
(pMgmt->uScanChannel > CB_MAX_CHANNEL_24G)) {
pDevice->byBBType = BB_TYPE_11A; pDevice->byBBType = BB_TYPE_11A;
CARDvSetBSSMode(pDevice); CARDvSetBSSMode(pDevice);
} else if ((pDevice->byBBType == BB_TYPE_11A) && (pMgmt->uScanChannel <= CB_MAX_CHANNEL_24G)) { } else if ((pDevice->byBBType == BB_TYPE_11A) &&
(pMgmt->uScanChannel <= CB_MAX_CHANNEL_24G)) {
pDevice->byBBType = BB_TYPE_11G; pDevice->byBBType = BB_TYPE_11G;
CARDvSetBSSMode(pDevice); CARDvSetBSSMode(pDevice);
} }
...@@ -374,7 +373,6 @@ void vRunCommand(struct work_struct *work) ...@@ -374,7 +373,6 @@ void vRunCommand(struct work_struct *work)
if (pMgmt->uScanChannel > pDevice->byMaxChannel) { if (pMgmt->uScanChannel > pDevice->byMaxChannel) {
// Set Baseband to be not sensitive and rescan // Set Baseband to be not sensitive and rescan
pDevice->eCommandState = WLAN_CMD_SCAN_END; pDevice->eCommandState = WLAN_CMD_SCAN_END;
} }
if ((pMgmt->b11hEnable == false) || if ((pMgmt->b11hEnable == false) ||
(pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) { (pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) {
...@@ -387,7 +385,6 @@ void vRunCommand(struct work_struct *work) ...@@ -387,7 +385,6 @@ void vRunCommand(struct work_struct *work)
vCommandTimerWait((void *) pDevice, WCMD_PASSIVE_SCAN_TIME); vCommandTimerWait((void *) pDevice, WCMD_PASSIVE_SCAN_TIME);
return; return;
} }
} }
break; break;
...@@ -436,7 +433,6 @@ void vRunCommand(struct work_struct *work) ...@@ -436,7 +433,6 @@ void vRunCommand(struct work_struct *work)
spin_unlock_irq(&pDevice->lock); spin_unlock_irq(&pDevice->lock);
return; return;
} else { } else {
pDevice->bwextstep0 = false; pDevice->bwextstep0 = false;
pDevice->bwextstep1 = false; pDevice->bwextstep1 = false;
pDevice->bwextstep2 = false; pDevice->bwextstep2 = false;
...@@ -494,7 +490,6 @@ void vRunCommand(struct work_struct *work) ...@@ -494,7 +490,6 @@ void vRunCommand(struct work_struct *work)
if ((pMgmt->eCurrState == WMAC_STATE_ASSOC) || if ((pMgmt->eCurrState == WMAC_STATE_ASSOC) ||
((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED))) { ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED))) {
if (pItemSSID->len == pItemSSIDCurr->len) { if (pItemSSID->len == pItemSSIDCurr->len) {
if (memcmp(pItemSSID->abySSID, pItemSSIDCurr->abySSID, pItemSSID->len) == 0) { if (memcmp(pItemSSID->abySSID, pItemSSIDCurr->abySSID, pItemSSID->len) == 0) {
s_bCommandComplete(pDevice); s_bCommandComplete(pDevice);
...@@ -545,8 +540,7 @@ void vRunCommand(struct work_struct *work) ...@@ -545,8 +540,7 @@ void vRunCommand(struct work_struct *work)
pMgmt->sNodeDBTable[0].uInActiveCount = 0; pMgmt->sNodeDBTable[0].uInActiveCount = 0;
} else { } else {
// start own IBSS // start own IBSS
DBG_PRT(MSG_LEVEL_DEBUG, DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "CreateOwn IBSS by CurrMode = IBSS_STA\n");
KERN_INFO "CreateOwn IBSS by CurrMode = IBSS_STA\n");
vMgrCreateOwnIBSS((void *) pDevice, &Status); vMgrCreateOwnIBSS((void *) pDevice, &Status);
if (Status != CMD_STATUS_SUCCESS) { if (Status != CMD_STATUS_SUCCESS) {
DBG_PRT(MSG_LEVEL_DEBUG, DBG_PRT(MSG_LEVEL_DEBUG,
...@@ -751,11 +745,10 @@ void vRunCommand(struct work_struct *work) ...@@ -751,11 +745,10 @@ void vRunCommand(struct work_struct *work)
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)
// CARDbRadioPowerOn(pDevice); // CARDbRadioPowerOn(pDevice);
// else // else
// CARDbRadioPowerOff(pDevice); // CARDbRadioPowerOff(pDevice);
{ {
int ntStatus = STATUS_SUCCESS; int ntStatus = STATUS_SUCCESS;
u8 byTmp; u8 byTmp;
...@@ -1018,7 +1011,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice) ...@@ -1018,7 +1011,6 @@ static int s_bCommandComplete(struct vnt_private *pDevice)
default: default:
break; break;
} }
vCommandTimerWait(pDevice, 0); vCommandTimerWait(pDevice, 0);
} }
......
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