Commit a3f245a2 authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman

Staging: w35und: remove rxisr.c as dead code

The vRxTimerStart() function is never called nor does the timer do anything
useful so remove the code.
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 82321c2b
...@@ -4,7 +4,6 @@ w35und-objs := \ ...@@ -4,7 +4,6 @@ w35und-objs := \
mto.o \ mto.o \
phy_calibration.o \ phy_calibration.o \
reg.o \ reg.o \
rxisr.o \
wb35reg.o \ wb35reg.o \
wb35rx.o \ wb35rx.o \
wb35tx.o \ wb35tx.o \
......
...@@ -16,15 +16,12 @@ Mds_initial(struct wbsoft_priv * adapter) ...@@ -16,15 +16,12 @@ Mds_initial(struct wbsoft_priv * adapter)
pMds->TxRTSThreshold = DEFAULT_RTSThreshold; pMds->TxRTSThreshold = DEFAULT_RTSThreshold;
pMds->TxFragmentThreshold = DEFAULT_FRAGMENT_THRESHOLD; pMds->TxFragmentThreshold = DEFAULT_FRAGMENT_THRESHOLD;
vRxTimerInit(adapter);//for WPA countermeasure
return hal_get_tx_buffer( &adapter->sHwData, &pMds->pTxBuffer ); return hal_get_tx_buffer( &adapter->sHwData, &pMds->pTxBuffer );
} }
void void
Mds_Destroy(struct wbsoft_priv * adapter) Mds_Destroy(struct wbsoft_priv * adapter)
{ {
vRxTimerStop(adapter);
} }
static void Mds_DurationSet(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *buffer) static void Mds_DurationSet(struct wbsoft_priv *adapter, PDESCRIPTOR pDes, u8 *buffer)
......
...@@ -11,11 +11,6 @@ void Mds_SendComplete( struct wbsoft_priv *adapter, PT02_DESCRIPTOR pT02 ); ...@@ -11,11 +11,6 @@ void Mds_SendComplete( struct wbsoft_priv *adapter, PT02_DESCRIPTOR pT02 );
void Mds_MpduProcess( struct wbsoft_priv *adapter, PDESCRIPTOR pRxDes ); void Mds_MpduProcess( struct wbsoft_priv *adapter, PDESCRIPTOR pRxDes );
extern void DataDmp(u8 *pdata, u32 len, u32 offset); extern void DataDmp(u8 *pdata, u32 len, u32 offset);
void vRxTimerInit(struct wbsoft_priv *adapter);
void vRxTimerStart(struct wbsoft_priv *adapter, int timeout_value);
void vRxTimerStop(struct wbsoft_priv *adapter);
// For Asynchronous indicating. The routine collocates with USB. // For Asynchronous indicating. The routine collocates with USB.
void Mds_MsduProcess( struct wbsoft_priv *adapter, PRXLAYER1 pRxLayer1, u8 SlotIndex); void Mds_MsduProcess( struct wbsoft_priv *adapter, PRXLAYER1 pRxLayer1, u8 SlotIndex);
......
...@@ -142,8 +142,6 @@ typedef struct _MDS ...@@ -142,8 +142,6 @@ typedef struct _MDS
u8 boCounterMeasureBlock; u8 boCounterMeasureBlock;
u8 reserved_4[2]; u8 reserved_4[2];
struct timer_list timer;
u32 TxTsc; // 20060214 u32 TxTsc; // 20060214
u32 TxTsc_2; // 20060214 u32 TxTsc_2; // 20060214
......
#include "os_common.h"
#include "core.h"
static void RxTimerHandler(unsigned long data)
{
WARN_ON(1);
}
void vRxTimerInit(struct wbsoft_priv *adapter)
{
init_timer(&adapter->Mds.timer);
adapter->Mds.timer.function = RxTimerHandler;
adapter->Mds.timer.data = (unsigned long) adapter;
}
void vRxTimerStart(struct wbsoft_priv *adapter, int timeout_value)
{
if (timeout_value < MIN_TIMEOUT_VAL)
timeout_value = MIN_TIMEOUT_VAL;
adapter->Mds.timer.expires = jiffies + msecs_to_jiffies(timeout_value);
add_timer(&adapter->Mds.timer);
}
void vRxTimerStop(struct wbsoft_priv *adapter)
{
del_timer_sync(&adapter->Mds.timer);
}
...@@ -37,7 +37,4 @@ ...@@ -37,7 +37,4 @@
#define _PE_USB_INI_DUMP_ #define _PE_USB_INI_DUMP_
#endif #endif
// Kernel Timer resolution, NDIS is 10ms, 10000us
#define MIN_TIMEOUT_VAL (10) //ms
#endif #endif
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