summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655/wcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vt6655/wcmd.c')
-rw-r--r--drivers/staging/vt6655/wcmd.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/drivers/staging/vt6655/wcmd.c b/drivers/staging/vt6655/wcmd.c
index 817f3c3386e3..d551653537b4 100644
--- a/drivers/staging/vt6655/wcmd.c
+++ b/drivers/staging/vt6655/wcmd.c
@@ -56,9 +56,6 @@
/*--------------------- Static Definitions -------------------------*/
-
-
-
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
@@ -72,7 +69,6 @@ s_vProbeChannel(
PSDevice pDevice
);
-
static
PSTxMgmtPacket
s_MgrMakeProbeRequest(
@@ -84,7 +80,6 @@ s_MgrMakeProbeRequest(
PWLAN_IE_SUPP_RATES pCurrExtSuppRates
);
-
static
bool
s_bCommandComplete(
@@ -93,11 +88,8 @@ s_bCommandComplete(
/*--------------------- Export Variables --------------------------*/
-
/*--------------------- Export Functions --------------------------*/
-
-
/*
* Description:
* Stop AdHoc beacon during scan process
@@ -115,7 +107,6 @@ static
void
vAdHocBeaconStop(PSDevice pDevice)
{
-
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
bool bStop;
@@ -145,10 +136,8 @@ vAdHocBeaconStop(PSDevice pDevice)
if (bStop) {
MACvRegBitsOff(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX);
}
-
} /* vAdHocBeaconStop */
-
/*
* Description:
* Restart AdHoc beacon after scan process complete
@@ -178,14 +167,8 @@ vAdHocBeaconRestart(PSDevice pDevice)
(pMgmt->eCurrState >= WMAC_STATE_STARTED)) {
MACvRegBitsOn(pDevice->PortOffset, MAC_REG_TCR, TCR_AUTOBCNTX);
}
-
}
-
-
-
-
-
/*+
*
* Routine Description:
@@ -214,7 +197,6 @@ s_vProbeChannel(
PSMgmtObject pMgmt = pDevice->pMgmt;
unsigned int ii;
-
if (pDevice->eCurrentPHYType == PHY_TYPE_11A) {
pbyRate = &abyCurrSuppRatesA[0];
} else if (pDevice->eCurrentPHYType == PHY_TYPE_11B) {
@@ -242,12 +224,8 @@ s_vProbeChannel(
}
}
}
-
}
-
-
-
/*+
*
* Routine Description:
@@ -259,7 +237,6 @@ s_vProbeChannel(
*
-*/
-
PSTxMgmtPacket
s_MgrMakeProbeRequest(
PSDevice pDevice,
@@ -274,7 +251,6 @@ s_MgrMakeProbeRequest(
PSTxMgmtPacket pTxPacket = NULL;
WLAN_FR_PROBEREQ sFrame;
-
pTxPacket = (PSTxMgmtPacket)pMgmt->pbyMgmtPacketPool;
memset(pTxPacket, 0, sizeof(STxMgmtPacket) + WLAN_PROBEREQ_FR_MAXLEN);
pTxPacket->p80211Header = (PUWLAN_80211HDR)((unsigned char *)pTxPacket + sizeof(STxMgmtPacket));
@@ -308,10 +284,6 @@ s_MgrMakeProbeRequest(
return pTxPacket;
}
-
-
-
-
void
vCommandTimerWait(
void *hDeviceContext,
@@ -329,9 +301,6 @@ vCommandTimerWait(
return;
}
-
-
-
void
vCommandTimer(
void *hDeviceContext
@@ -346,7 +315,6 @@ vCommandTimer(
unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80};
struct sk_buff *skb;
-
if (pDevice->dwDiagRefCount != 0)
return;
if (pDevice->bCmdRunning != true)
@@ -355,7 +323,6 @@ vCommandTimer(
spin_lock_irq(&pDevice->lock);
switch (pDevice->eCommandState) {
-
case WLAN_CMD_SCAN_START:
pDevice->byReAssocCount = 0;
@@ -441,7 +408,6 @@ vCommandTimer(
}
-
if ((pMgmt->b11hEnable == false) ||
(pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) {
s_vProbeChannel(pDevice);
@@ -555,7 +521,6 @@ vCommandTimer(
if ((pMgmt->eCurrState == WMAC_STATE_ASSOC) ||
((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED))) {
-
if (pItemSSID->len == pItemSSIDCurr->len) {
if (memcmp(pItemSSID->abySSID, pItemSSIDCurr->abySSID, pItemSSID->len) == 0) {
s_bCommandComplete(pDevice);
@@ -576,7 +541,6 @@ vCommandTimer(
vMgrJoinBSSBegin((void *)pDevice, &Status);
// if Infra mode
if ((pMgmt->eCurrMode == WMAC_MODE_ESS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED)) {
-
// Call mgr to begin the deauthentication
// reason = (3) because sta has left ESS
if (pMgmt->eCurrState >= WMAC_STATE_AUTH) {
@@ -810,7 +774,6 @@ vCommandTimer(
s_bCommandComplete(pDevice);
break;
-
case WLAN_CMD_RADIO_START:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "eCommandState == WLAN_CMD_RADIO_START\n");
if (pDevice->bRadioCmd == true)
@@ -821,7 +784,6 @@ vCommandTimer(
s_bCommandComplete(pDevice);
break;
-
case WLAN_CMD_CHECK_BBSENSITIVITY_CHANGE:
//DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "eCommandState == WLAN_CMD_CHECK_BBSENSITIVITY_START\n");
// wait all TD complete
@@ -848,10 +810,8 @@ vCommandTimer(
} //switch
spin_unlock_irq(&pDevice->lock);
return;
-
}
-
static
bool
s_bCommandComplete(
@@ -864,7 +824,6 @@ s_bCommandComplete(
bool bForceSCAN = true;
PSMgmtObject pMgmt = pDevice->pMgmt;
-
pDevice->eCommandState = WLAN_CMD_IDLE;
if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) {
//Command Queue Empty
@@ -933,8 +892,6 @@ s_bCommandComplete(
return true;
}
-
-
bool bScheduleCommand(
void *hDeviceContext,
CMD_CODE eCommand,
@@ -943,7 +900,6 @@ bool bScheduleCommand(
{
PSDevice pDevice = (PSDevice)hDeviceContext;
-
if (pDevice->cbFreeCmdQueue == 0) {
return false;
}
@@ -953,7 +909,6 @@ bool bScheduleCommand(
if (pbyItem0 != NULL) {
switch (eCommand) {
-
case WLAN_CMD_BSSID_SCAN:
memcpy(pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].abyCmdDesireSSID,
pbyItem0, WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1);
@@ -998,7 +953,6 @@ bool bScheduleCommand(
} else {
}
return true;
-
}
/*
@@ -1058,7 +1012,6 @@ vResetCommandTimer(
pDevice->bCmdClear = false;
}
-
#ifdef TxInSleep
void
BSSvSecondTxData(
@@ -1094,4 +1047,3 @@ BSSvSecondTxData(
return;
}
#endif
-