staging: vt6655: remove undefined TASK_LET code
Removing all code within and function MngWorkItem. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
89a07bd83a
commit
795d644c0a
4 changed files with 0 additions and 33 deletions
|
@ -425,7 +425,6 @@ typedef struct __device_info {
|
||||||
|
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
//PLICE_DEBUG->
|
//PLICE_DEBUG->
|
||||||
struct tasklet_struct RxMngWorkItem;
|
|
||||||
RxManagementQueue rxManeQueue;
|
RxManagementQueue rxManeQueue;
|
||||||
//PLICE_DEBUG<-
|
//PLICE_DEBUG<-
|
||||||
//PLICE_DEBUG ->
|
//PLICE_DEBUG ->
|
||||||
|
|
|
@ -1704,9 +1704,6 @@ static int device_open(struct net_device *dev)
|
||||||
vMgrTimerInit(pDevice);
|
vMgrTimerInit(pDevice);
|
||||||
|
|
||||||
//PLICE_DEBUG->
|
//PLICE_DEBUG->
|
||||||
#ifdef TASK_LET
|
|
||||||
tasklet_init(&pDevice->RxMngWorkItem, (void *)MngWorkItem, (unsigned long)pDevice);
|
|
||||||
#endif
|
|
||||||
#ifdef THREAD
|
#ifdef THREAD
|
||||||
InitRxManagementQueue(pDevice);
|
InitRxManagementQueue(pDevice);
|
||||||
mlme_kill = 0;
|
mlme_kill = 0;
|
||||||
|
@ -1789,9 +1786,6 @@ static int device_close(struct net_device *dev)
|
||||||
del_timer(&pDevice->TimerSQ3Tmax3);
|
del_timer(&pDevice->TimerSQ3Tmax3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TASK_LET
|
|
||||||
tasklet_kill(&pDevice->RxMngWorkItem);
|
|
||||||
#endif
|
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
pDevice->bCmdRunning = false;
|
pDevice->bCmdRunning = false;
|
||||||
MACbShutdown(pDevice->PortOffset);
|
MACbShutdown(pDevice->PortOffset);
|
||||||
|
|
|
@ -268,23 +268,6 @@ s_vGetDASA(unsigned char *pbyRxBufferAddr, unsigned int *pcbHeaderSize,
|
||||||
*pcbHeaderSize = cbHeaderSize;
|
*pcbHeaderSize = cbHeaderSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
//PLICE_DEBUG ->
|
|
||||||
|
|
||||||
void MngWorkItem(void *Context)
|
|
||||||
{
|
|
||||||
PSRxMgmtPacket pRxMgmtPacket;
|
|
||||||
PSDevice pDevice = (PSDevice) Context;
|
|
||||||
|
|
||||||
spin_lock_irq(&pDevice->lock);
|
|
||||||
while (pDevice->rxManeQueue.packet_num != 0) {
|
|
||||||
pRxMgmtPacket = DeQueue(pDevice);
|
|
||||||
vMgrRxManagePacket(pDevice, pDevice->pMgmt, pRxMgmtPacket);
|
|
||||||
}
|
|
||||||
spin_unlock_irq(&pDevice->lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
//PLICE_DEBUG<-
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
device_receive_frame(
|
device_receive_frame(
|
||||||
PSDevice pDevice,
|
PSDevice pDevice,
|
||||||
|
@ -551,15 +534,8 @@ device_receive_frame(
|
||||||
#ifdef THREAD
|
#ifdef THREAD
|
||||||
EnQueue(pDevice, pRxPacket);
|
EnQueue(pDevice, pRxPacket);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef TASK_LET
|
|
||||||
EnQueue(pDevice, pRxPacket);
|
|
||||||
tasklet_schedule(&pDevice->RxMngWorkItem);
|
|
||||||
#else
|
|
||||||
vMgrRxManagePacket((void *)pDevice, pDevice->pMgmt, pRxPacket);
|
vMgrRxManagePacket((void *)pDevice, pDevice->pMgmt, pRxPacket);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
//PLICE_DEBUG<-
|
//PLICE_DEBUG<-
|
||||||
// hostap Deamon handle 802.11 management
|
// hostap Deamon handle 802.11 management
|
||||||
if (pDevice->bEnableHostapd) {
|
if (pDevice->bEnableHostapd) {
|
||||||
|
|
|
@ -39,6 +39,4 @@ device_receive_frame(
|
||||||
PSRxDesc pCurrRD
|
PSRxDesc pCurrRD
|
||||||
);
|
);
|
||||||
|
|
||||||
void MngWorkItem(void *Context);
|
|
||||||
|
|
||||||
#endif // __RXTX_H__
|
#endif // __RXTX_H__
|
||||||
|
|
Loading…
Add table
Reference in a new issue