Commit 214985a6 authored by Mike McCormack's avatar Mike McCormack Committed by Greg Kroah-Hartman

staging: rtl8192e: Clean up function headers

Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 16d74da0
...@@ -121,12 +121,10 @@ MODULE_DESCRIPTION("Linux driver for Realtek RTL819x WiFi cards"); ...@@ -121,12 +121,10 @@ MODULE_DESCRIPTION("Linux driver for Realtek RTL819x WiFi cards");
module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR); module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
//module_param(hwseqnum,int, S_IRUGO|S_IWUSR);
module_param(hwwep,int, S_IRUGO|S_IWUSR); module_param(hwwep,int, S_IRUGO|S_IWUSR);
module_param(channels,int, S_IRUGO|S_IWUSR); module_param(channels,int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(ifname," Net interface name, wlan%d=default"); MODULE_PARM_DESC(ifname," Net interface name, wlan%d=default");
//MODULE_PARM_DESC(hwseqnum," Try to use hardware 802.11 header sequence numbers. Zero=default");
MODULE_PARM_DESC(hwwep," Try to use hardware WEP support. Still broken and not available on all cards"); MODULE_PARM_DESC(hwwep," Try to use hardware WEP support. Still broken and not available on all cards");
MODULE_PARM_DESC(channels," Channel bitmask for specific locales. NYI"); MODULE_PARM_DESC(channels," Channel bitmask for specific locales. NYI");
...@@ -144,7 +142,7 @@ static struct pci_driver rtl8192_pci_driver = { ...@@ -144,7 +142,7 @@ static struct pci_driver rtl8192_pci_driver = {
.resume = rtl8192E_resume, /* PM resume fn */ .resume = rtl8192E_resume, /* PM resume fn */
#else #else
.suspend = NULL, /* PM suspend fn */ .suspend = NULL, /* PM suspend fn */
.resume = NULL, /* PM resume fn */ .resume = NULL, /* PM resume fn */
#endif #endif
}; };
...@@ -282,7 +280,6 @@ u32 read_cam(struct net_device *dev, u8 addr) ...@@ -282,7 +280,6 @@ u32 read_cam(struct net_device *dev, u8 addr)
return read_nic_dword(dev, 0xa8); return read_nic_dword(dev, 0xa8);
} }
////////////////////////////////////////////////////////////
#ifdef CONFIG_RTL8180_IO_MAP #ifdef CONFIG_RTL8180_IO_MAP
u8 read_nic_byte(struct net_device *dev, int x) u8 read_nic_byte(struct net_device *dev, int x)
...@@ -487,29 +484,16 @@ rtl8192e_SetHwReg(struct net_device *dev,u8 variable,u8* val) ...@@ -487,29 +484,16 @@ rtl8192e_SetHwReg(struct net_device *dev,u8 variable,u8* val)
} }
/*
/////////////////////////////////////////////////////////// * this might still called in what was the PHY rtl8185/rtl8192 common code
//u8 read_phy_cck(struct net_device *dev, u8 adr);
//u8 read_phy_ofdm(struct net_device *dev, u8 adr);
/* this might still called in what was the PHY rtl8185/rtl8192 common code
* plans are to possibilty turn it again in one common code... * plans are to possibilty turn it again in one common code...
*/ */
void force_pci_posting(struct net_device *dev) void force_pci_posting(struct net_device *dev)
{ {
} }
//void rtl8192_rq_tx_ack(struct work_struct *work);
/****************************************************************************
-----------------------------PROCFS STUFF-------------------------
*****************************************************************************/
static struct proc_dir_entry *rtl8192_proc = NULL; static struct proc_dir_entry *rtl8192_proc = NULL;
static int proc_get_stats_ap(char *page, char **start, static int proc_get_stats_ap(char *page, char **start,
off_t offset, int count, off_t offset, int count,
int *eof, void *data) int *eof, void *data)
...@@ -797,9 +781,6 @@ static void rtl8192_proc_init_one(struct net_device *dev) ...@@ -797,9 +781,6 @@ static void rtl8192_proc_init_one(struct net_device *dev)
dev->name); dev->name);
} }
} }
/****************************************************************************
-----------------------------MISC STUFF-------------------------
*****************************************************************************/
short check_nic_enough_desc(struct net_device *dev, int prio) short check_nic_enough_desc(struct net_device *dev, int prio)
{ {
...@@ -821,12 +802,6 @@ static void tx_timeout(struct net_device *dev) ...@@ -821,12 +802,6 @@ static void tx_timeout(struct net_device *dev)
printk("TXTIMEOUT"); printk("TXTIMEOUT");
} }
/****************************************************************************
------------------------------HW STUFF---------------------------
*****************************************************************************/
static void rtl8192_irq_enable(struct net_device *dev) static void rtl8192_irq_enable(struct net_device *dev)
{ {
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev); struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
...@@ -834,7 +809,6 @@ static void rtl8192_irq_enable(struct net_device *dev) ...@@ -834,7 +809,6 @@ static void rtl8192_irq_enable(struct net_device *dev)
write_nic_dword(dev,INTA_MASK, priv->irq_mask); write_nic_dword(dev,INTA_MASK, priv->irq_mask);
} }
void rtl8192_irq_disable(struct net_device *dev) void rtl8192_irq_disable(struct net_device *dev)
{ {
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev); struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
...@@ -1088,14 +1062,6 @@ void rtl8192_halt_adapter(struct net_device *dev, bool reset) ...@@ -1088,14 +1062,6 @@ void rtl8192_halt_adapter(struct net_device *dev, bool reset)
skb_queue_purge(&priv->skb_queue); skb_queue_purge(&priv->skb_queue);
} }
#if 0
static void rtl8192_reset(struct net_device *dev)
{
rtl8192_irq_disable(dev);
printk("This is RTL819xP Reset procedure\n");
}
#endif
static const u16 rtl_rate[] = {10,20,55,110,60,90,120,180,240,360,480,540}; static const u16 rtl_rate[] = {10,20,55,110,60,90,120,180,240,360,480,540};
inline u16 rtl8192_rate2rate(short rate) inline u16 rtl8192_rate2rate(short rate)
{ {
...@@ -1103,9 +1069,6 @@ inline u16 rtl8192_rate2rate(short rate) ...@@ -1103,9 +1069,6 @@ inline u16 rtl8192_rate2rate(short rate)
return rtl_rate[rate]; return rtl_rate[rate];
} }
static void rtl8192_data_hard_stop(struct net_device *dev) static void rtl8192_data_hard_stop(struct net_device *dev)
{ {
//FIXME !! //FIXME !!
...@@ -1131,7 +1094,8 @@ static void rtl8192_data_hard_resume(struct net_device *dev) ...@@ -1131,7 +1094,8 @@ static void rtl8192_data_hard_resume(struct net_device *dev)
#endif #endif
} }
/* this function TX data frames when the ieee80211 stack requires this. /*
* this function TX data frames when the ieee80211 stack requires this.
* It checks also if we need to stop the ieee tx queue, eventually do it * It checks also if we need to stop the ieee tx queue, eventually do it
*/ */
static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev, int rate) static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev, int rate)
...@@ -1176,7 +1140,8 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev, ...@@ -1176,7 +1140,8 @@ static void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
// return ret; // return ret;
} }
/* This is a rough attempt to TX a frame /*
* This is a rough attempt to TX a frame
* This is called by the ieee 80211 stack to TX management frames. * This is called by the ieee 80211 stack to TX management frames.
* If the ring is full packet are dropped (for data frame the queue * If the ring is full packet are dropped (for data frame the queue
* is stopped before this can happen). * is stopped before this can happen).
...@@ -1455,10 +1420,7 @@ void rtl819xE_tx_cmd(struct net_device *dev, struct sk_buff *skb) ...@@ -1455,10 +1420,7 @@ void rtl819xE_tx_cmd(struct net_device *dev, struct sk_buff *skb)
/* /*
* Mapping Software/Hardware descriptor queue id to "Queue Select Field" * Mapping Software/Hardware descriptor queue id to "Queue Select Field"
* in TxFwInfo data structure * in TxFwInfo data structure
* 2006.10.30 by Emily */
*
* \param QUEUEID Software Queue
*/
static u8 MapHwQueueToFirmwareQueue(u8 QueueID) static u8 MapHwQueueToFirmwareQueue(u8 QueueID)
{ {
u8 QueueSelect = 0x0; //defualt set to u8 QueueSelect = 0x0; //defualt set to
...@@ -1564,7 +1526,7 @@ static u8 QueryIsShort(u8 TxHT, u8 TxRate, cb_desc *tcb_desc) ...@@ -1564,7 +1526,7 @@ static u8 QueryIsShort(u8 TxHT, u8 TxRate, cb_desc *tcb_desc)
* The tx procedure is just as following, * The tx procedure is just as following,
* skb->cb will contain all the following information, * skb->cb will contain all the following information,
* priority, morefrag, rate, &dev. * priority, morefrag, rate, &dev.
* */ */
short rtl8192_tx(struct net_device *dev, struct sk_buff* skb) short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -1951,6 +1913,7 @@ static void rtl8192_update_beacon(struct work_struct * work) ...@@ -1951,6 +1913,7 @@ static void rtl8192_update_beacon(struct work_struct * work)
ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bdRT2RTLongSlotTime; ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bdRT2RTLongSlotTime;
rtl8192_update_cap(dev, net->capability); rtl8192_update_cap(dev, net->capability);
} }
/* /*
* background support to run QoS activate functionality * background support to run QoS activate functionality
*/ */
...@@ -2046,10 +2009,9 @@ static int rtl8192_handle_beacon(struct net_device * dev, ...@@ -2046,10 +2009,9 @@ static int rtl8192_handle_beacon(struct net_device * dev,
} }
/* /*
* handling the beaconing responses. if we get different QoS setting * handling the beaconing responses. if we get different QoS setting
* off the network from the associated setting, adjust the QoS * off the network from the associated setting, adjust the QoS setting
* setting */
*/
static int rtl8192_qos_association_resp(struct r8192_priv *priv, static int rtl8192_qos_association_resp(struct r8192_priv *priv,
struct ieee80211_network *network) struct ieee80211_network *network)
{ {
...@@ -2113,7 +2075,7 @@ static int rtl8192_handle_assoc_response(struct net_device *dev, ...@@ -2113,7 +2075,7 @@ static int rtl8192_handle_assoc_response(struct net_device *dev,
} }
//updateRATRTabel for MCS only. Basic rate is not implement. /* updateRATRTabel for MCS only. Basic rate is not implemented. */
static void rtl8192_update_ratr_table(struct net_device* dev) static void rtl8192_update_ratr_table(struct net_device* dev)
{ {
struct r8192_priv* priv = ieee80211_priv(dev); struct r8192_priv* priv = ieee80211_priv(dev);
...@@ -2281,7 +2243,6 @@ static void rtl8192_SetWirelessMode(struct net_device* dev, u8 wireless_mode) ...@@ -2281,7 +2243,6 @@ static void rtl8192_SetWirelessMode(struct net_device* dev, u8 wireless_mode)
#endif #endif
} }
//init priv variables here
static bool GetHalfNmodeSupportByAPs819xPci(struct net_device* dev) static bool GetHalfNmodeSupportByAPs819xPci(struct net_device* dev)
{ {
...@@ -2405,6 +2366,7 @@ static void rtl8192_hw_to_sleep(struct net_device *dev, u32 th, u32 tl) ...@@ -2405,6 +2366,7 @@ static void rtl8192_hw_to_sleep(struct net_device *dev, u32 th, u32 tl)
spin_unlock_irqrestore(&priv->ps_lock,flags); spin_unlock_irqrestore(&priv->ps_lock,flags);
} }
static void rtl8192_init_priv_variable(struct net_device* dev) static void rtl8192_init_priv_variable(struct net_device* dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -2571,7 +2533,6 @@ static void rtl8192_init_priv_variable(struct net_device* dev) ...@@ -2571,7 +2533,6 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
priv->rf_set_chan = rtl8192_phy_SwChnl; priv->rf_set_chan = rtl8192_phy_SwChnl;
} }
//init lock here
static void rtl8192_init_priv_lock(struct r8192_priv* priv) static void rtl8192_init_priv_lock(struct r8192_priv* priv)
{ {
spin_lock_init(&priv->tx_lock); spin_lock_init(&priv->tx_lock);
...@@ -2585,7 +2546,7 @@ static void rtl8192_init_priv_lock(struct r8192_priv* priv) ...@@ -2585,7 +2546,7 @@ static void rtl8192_init_priv_lock(struct r8192_priv* priv)
mutex_init(&priv->mutex); mutex_init(&priv->mutex);
} }
//init tasklet and wait_queue here. only 2.6 above kernel is considered /* init tasklet and wait_queue here */
#define DRV_NAME "wlan0" #define DRV_NAME "wlan0"
static void rtl8192_init_priv_task(struct net_device* dev) static void rtl8192_init_priv_task(struct net_device* dev)
{ {
...@@ -2637,7 +2598,10 @@ static void rtl8192_get_eeprom_size(struct net_device* dev) ...@@ -2637,7 +2598,10 @@ static void rtl8192_get_eeprom_size(struct net_device* dev)
RT_TRACE(COMP_INIT, "<===========%s(), epromtype:%d\n", __FUNCTION__, priv->epromtype); RT_TRACE(COMP_INIT, "<===========%s(), epromtype:%d\n", __FUNCTION__, priv->epromtype);
} }
//used to swap endian. as ntohl & htonl are not neccessary to swap endian, so use this instead. /*
* used to swap endian. as ntohl & htonl are not
* neccessary to swap endian, so use this instead.
*/
static inline u16 endian_swap(u16* data) static inline u16 endian_swap(u16* data)
{ {
u16 tmp = *data; u16 tmp = *data;
...@@ -2646,9 +2610,9 @@ static inline u16 endian_swap(u16* data) ...@@ -2646,9 +2610,9 @@ static inline u16 endian_swap(u16* data)
} }
/* /*
* Note: Adapter->EEPROMAddressSize should be set before this function call. * Adapter->EEPROMAddressSize should be set before this function call.
* EEPROM address size can be got through GetEEPROMSize8185() * EEPROM address size can be got through GetEEPROMSize8185()
*/ */
static void rtl8192_read_eeprom_info(struct net_device* dev) static void rtl8192_read_eeprom_info(struct net_device* dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -3205,14 +3169,11 @@ static short rtl8192_init(struct net_device *dev) ...@@ -3205,14 +3169,11 @@ static short rtl8192_init(struct net_device *dev)
return 0; return 0;
} }
/****************************************************************************** /*
*function: This function actually only set RRSR, RATR and BW_OPMODE registers * Actually only set RRSR, RATR and BW_OPMODE registers
* not to do all the hw config as its name says * not to do all the hw config as its name says
* input: net_device dev * This part need to modified according to the rate set we filtered
* output: none */
* return: none
* notice: This part need to modified according to the rate set we filtered
* ****************************************************************************/
static void rtl8192_hwconfig(struct net_device* dev) static void rtl8192_hwconfig(struct net_device* dev)
{ {
u32 regRATR = 0, regRRSR = 0; u32 regRATR = 0, regRRSR = 0;
...@@ -3763,7 +3724,8 @@ static void rtl8192_prepare_beacon(struct r8192_priv *priv) ...@@ -3763,7 +3724,8 @@ static void rtl8192_prepare_beacon(struct r8192_priv *priv)
} }
/* this configures registers for beacon tx and enables it via /*
* configure registers for beacon tx and enables it via
* rtl8192_beacon_tx_enable(). rtl8192_beacon_tx_disable() might * rtl8192_beacon_tx_enable(). rtl8192_beacon_tx_disable() might
* be used to stop beacon transmission * be used to stop beacon transmission
*/ */
...@@ -3814,11 +3776,6 @@ static void rtl8192_start_beacon(struct net_device *dev) ...@@ -3814,11 +3776,6 @@ static void rtl8192_start_beacon(struct net_device *dev)
/* enable the interrupt for ad-hoc process */ /* enable the interrupt for ad-hoc process */
rtl8192_irq_enable(dev); rtl8192_irq_enable(dev);
} }
/***************************************************************************
-------------------------------NET STUFF---------------------------
***************************************************************************/
static bool HalTxCheckStuck8190Pci(struct net_device *dev) static bool HalTxCheckStuck8190Pci(struct net_device *dev)
{ {
...@@ -3835,9 +3792,8 @@ static bool HalTxCheckStuck8190Pci(struct net_device *dev) ...@@ -3835,9 +3792,8 @@ static bool HalTxCheckStuck8190Pci(struct net_device *dev)
} }
/* /*
* <Assumption: RT_TX_SPINLOCK is acquired.> * Assumption: RT_TX_SPINLOCK is acquired.
* First added: 2006.11.19 by emily */
*/
static RESET_TYPE static RESET_TYPE
TxCheckStuck(struct net_device *dev) TxCheckStuck(struct net_device *dev)
{ {
...@@ -4187,7 +4143,7 @@ static void CamRestoreAllEntry(struct net_device *dev) ...@@ -4187,7 +4143,7 @@ static void CamRestoreAllEntry(struct net_device *dev)
* This function will do "system reset" to NIC when Tx or Rx is stuck. * This function will do "system reset" to NIC when Tx or Rx is stuck.
* The method checking Tx/Rx stuck of this function is supported by FW, * The method checking Tx/Rx stuck of this function is supported by FW,
* which reports Tx and Rx counter to register 0x128 and 0x130. * which reports Tx and Rx counter to register 0x128 and 0x130.
* */ */
static void rtl819x_ifsilentreset(struct net_device *dev) static void rtl819x_ifsilentreset(struct net_device *dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -4346,10 +4302,7 @@ void InactivePsWorkItemCallback(struct net_device *dev) ...@@ -4346,10 +4302,7 @@ void InactivePsWorkItemCallback(struct net_device *dev)
} }
#ifdef ENABLE_LPS #ifdef ENABLE_LPS
// /* Change current and default preamble mode. */
// Change current and default preamble mode.
// 2005.01.06, by rcnjko.
//
bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode) bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -4394,14 +4347,7 @@ bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode) ...@@ -4394,14 +4347,7 @@ bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev, u8 rtPsMode)
return true; return true;
} }
//================================================================================ /* Enter the leisure power save mode. */
// Leisure Power Save in linked state.
//================================================================================
//
// Description:
// Enter the leisure power save mode.
//
void LeisurePSEnter(struct net_device *dev) void LeisurePSEnter(struct net_device *dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -4437,10 +4383,7 @@ void LeisurePSEnter(struct net_device *dev) ...@@ -4437,10 +4383,7 @@ void LeisurePSEnter(struct net_device *dev)
} }
// /* Leave leisure power save mode. */
// Description:
// Leave the leisure power save mode.
//
void LeisurePSLeave(struct net_device *dev) void LeisurePSLeave(struct net_device *dev)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
...@@ -4460,11 +4403,7 @@ void LeisurePSLeave(struct net_device *dev) ...@@ -4460,11 +4403,7 @@ void LeisurePSLeave(struct net_device *dev)
#endif #endif
// /* Enter the inactive power save mode. RF will be off */
// Description:
// Enter the inactive power save mode. RF will be off
// 2007.08.17, by shien chang.
//
void void
IPSEnter(struct net_device *dev) IPSEnter(struct net_device *dev)
{ {
...@@ -5084,21 +5023,7 @@ static u8 HwRateToMRate90(bool bIsHT, u8 rate) ...@@ -5084,21 +5023,7 @@ static u8 HwRateToMRate90(bool bIsHT, u8 rate)
return ret_rate; return ret_rate;
} }
/** /* Record the TSF time stamp when receiving a packet */
* Function: UpdateRxPktTimeStamp
* Overview: Recored down the TSF time stamp when receiving a packet
*
* Input:
* PADAPTER Adapter
* PRT_RFD pRfd,
*
* Output:
* PRT_RFD pRfd
* (pRfd->Status.TimeStampHigh is updated)
* (pRfd->Status.TimeStampLow is updated)
* Return:
* None
*/
static void UpdateRxPktTimeStamp8190 (struct net_device *dev, struct ieee80211_rx_stats *stats) static void UpdateRxPktTimeStamp8190 (struct net_device *dev, struct ieee80211_rx_stats *stats)
{ {
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev); struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
...@@ -5123,16 +5048,14 @@ static long rtl819x_translate_todbm(u8 signal_strength_index)// 0-100 index. ...@@ -5123,16 +5048,14 @@ static long rtl819x_translate_todbm(u8 signal_strength_index)// 0-100 index.
return signal_power; return signal_power;
} }
// /*
// Description: * Update Rx signal related information in the packet reeived
// Update Rx signal related information in the packet reeived * to RxStats. User application can query RxStats to realize
// to RxStats. User application can query RxStats to realize * current Rx signal status.
// current Rx signal status. *
// * In normal operation, user only care about the information of the BSS
// Assumption: * and we shall invoke this function if the packet received is from the BSS.
// In normal operation, user only care about the information of the BSS */
// and we shall invoke this function if the packet received is from the BSS.
//
static void static void
rtl819x_update_rxsignalstatistics8190pci( rtl819x_update_rxsignalstatistics8190pci(
struct r8192_priv * priv, struct r8192_priv * priv,
...@@ -5474,22 +5397,6 @@ static void rtl8192_process_phyinfo(struct r8192_priv * priv, u8* buffer,struct ...@@ -5474,22 +5397,6 @@ static void rtl8192_process_phyinfo(struct r8192_priv * priv, u8* buffer,struct
} }
/*-----------------------------------------------------------------------------
* Function: rtl819x_query_rxpwrpercentage()
*
* Overview:
*
* Input: char antpower
*
* Output: NONE
*
* Return: 0-100 percentage
*
* Revised History:
* When Who Remark
* 05/26/2008 amy Create Version 0 porting from windows code.
*
*---------------------------------------------------------------------------*/
static u8 rtl819x_query_rxpwrpercentage( static u8 rtl819x_query_rxpwrpercentage(
char antpower char antpower
) )
...@@ -5529,11 +5436,7 @@ rtl819x_evm_dbtopercentage( ...@@ -5529,11 +5436,7 @@ rtl819x_evm_dbtopercentage(
return ret_val; return ret_val;
} }
// /* We want good-looking for signal strength/quality */
// Description:
// We want good-looking for signal strength/quality
// 2007/7/19 01:09, by cosa.
//
static long rtl819x_signal_scale_mapping(long currsig) static long rtl819x_signal_scale_mapping(long currsig)
{ {
long retsig; long retsig;
...@@ -5969,20 +5872,7 @@ static void rtl8192_irq_tx_tasklet(struct r8192_priv *priv) ...@@ -5969,20 +5872,7 @@ static void rtl8192_irq_tx_tasklet(struct r8192_priv *priv)
rtl8192_tx_resume(priv->ieee80211->dev); rtl8192_tx_resume(priv->ieee80211->dev);
} }
/** /* Record the received data rate */
* Function: UpdateReceivedRateHistogramStatistics
* Overview: Recored down the received data rate
*
* Input:
* PADAPTER Adapter
* PRT_RFD pRfd,
*
* Output:
* PRT_TCB Adapter
* (Adapter->RxStats.ReceivedRateHistogram[] is updated)
* Return:
* None
*/
static void UpdateReceivedRateHistogramStatistics8190( static void UpdateReceivedRateHistogramStatistics8190(
struct net_device *dev, struct net_device *dev,
struct ieee80211_rx_stats* pstats struct ieee80211_rx_stats* pstats
...@@ -5993,11 +5883,6 @@ static void UpdateReceivedRateHistogramStatistics8190( ...@@ -5993,11 +5883,6 @@ static void UpdateReceivedRateHistogramStatistics8190(
u32 rateIndex; u32 rateIndex;
u32 preamble_guardinterval; //1: short preamble/GI, 0: long preamble/GI u32 preamble_guardinterval; //1: short preamble/GI, 0: long preamble/GI
/* 2007/03/09 MH We will not update rate of packet from rx cmd queue. */
#if 0
if (pRfd->queue_id == CMPK_RX_QUEUE_ID)
return;
#endif
if(pstats->bCRC) if(pstats->bCRC)
rcvType = 2; rcvType = 2;
else if(pstats->bICV) else if(pstats->bICV)
...@@ -6210,10 +6095,6 @@ static const struct net_device_ops rtl8192_netdev_ops = { ...@@ -6210,10 +6095,6 @@ static const struct net_device_ops rtl8192_netdev_ops = {
.ndo_start_xmit = ieee80211_rtl_xmit, .ndo_start_xmit = ieee80211_rtl_xmit,
}; };
/****************************************************************************
---------------------------- PCI_STUFF---------------------------
*****************************************************************************/
static int __devinit rtl8192_pci_probe(struct pci_dev *pdev, static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id) const struct pci_device_id *id)
{ {
...@@ -6830,6 +6711,7 @@ bool NicIFEnableNIC(struct net_device* dev) ...@@ -6830,6 +6711,7 @@ bool NicIFEnableNIC(struct net_device* dev)
return (init_status == RT_STATUS_SUCCESS); return (init_status == RT_STATUS_SUCCESS);
} }
bool NicIFDisableNIC(struct net_device* dev) bool NicIFDisableNIC(struct net_device* dev)
{ {
bool status = true; bool status = true;
...@@ -6854,9 +6736,5 @@ bool NicIFDisableNIC(struct net_device* dev) ...@@ -6854,9 +6736,5 @@ bool NicIFDisableNIC(struct net_device* dev)
return status; return status;
} }
/***************************************************************************
------------------- module init / exit stubs ----------------
****************************************************************************/
module_init(rtl8192_pci_module_init); module_init(rtl8192_pci_module_init);
module_exit(rtl8192_pci_module_exit); module_exit(rtl8192_pci_module_exit);
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