Loading drivers/staging/rtl8192e/r8192E_cmdpkt.c +4 −6 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ } /*---------------------------Define functions---------------------------------*/ extern bool cmpk_message_handle_tx( bool cmpk_message_handle_tx( struct net_device *dev, u8 *code_virtual_address, u32 packettype, Loading Loading @@ -167,7 +167,7 @@ static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg) } /* cmpk_Handle_Tx_Feedback */ void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev) static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u16 tx_rate; Loading Loading @@ -339,9 +339,7 @@ static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg) } extern u32 cmpk_message_handle_rx( struct net_device *dev, u32 cmpk_message_handle_rx(struct net_device *dev, struct rtllib_rx_stats *pstats) { struct r8192_priv *priv = rtllib_priv(dev); Loading drivers/staging/rtl8192e/r8192E_dev.c +17 −26 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ void rtl8192e_start_beacon(struct net_device *dev) rtl8192_irq_enable(dev); } void rtl8192e_update_msr(struct net_device *dev) static void rtl8192e_update_msr(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 msr; Loading Loading @@ -952,7 +952,7 @@ end: return rtStatus; } void rtl8192_net_update(struct net_device *dev) static void rtl8192_net_update(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1127,7 +1127,7 @@ static u8 MRateToHwRate8190Pci(u8 rate) return ret; } u8 rtl8192_MapHwQueueToFirmwareQueue(u8 QueueID, u8 priority) static u8 rtl8192_MapHwQueueToFirmwareQueue(u8 QueueID, u8 priority) { u8 QueueSelect = 0x0; Loading Loading @@ -1301,7 +1301,7 @@ void rtl8192_tx_fill_cmd_desc(struct net_device *dev, entry->OWN = 1; } u8 HwRateToMRate90(bool bIsHT, u8 rate) static u8 HwRateToMRate90(bool bIsHT, u8 rate) { u8 ret_rate = 0x02; Loading Loading @@ -1414,7 +1414,7 @@ u8 HwRateToMRate90(bool bIsHT, u8 rate) return ret_rate; } long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) static long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) { long retsig; Loading Loading @@ -1450,7 +1450,7 @@ long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) _pdrvinfo->RxRate == DESC90_RATE11M) &&\ !_pdrvinfo->RxHT) void rtl8192_query_rxphystatus( static void rtl8192_query_rxphystatus( struct r8192_priv *priv, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, Loading Loading @@ -1664,7 +1664,7 @@ void rtl8192_query_rxphystatus( } } void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, struct rtllib_rx_stats *prev_st, struct rtllib_rx_stats *curr_st) { Loading Loading @@ -1839,7 +1839,8 @@ void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, } } void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, static void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, struct rx_fwinfo *pdrvinfo) Loading Loading @@ -1867,7 +1868,7 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, (fc & RTLLIB_FCTL_TODS) ? hdr->addr1 : (fc & RTLLIB_FCTL_FROMDS) ? hdr->addr2 : hdr->addr3)) && (!pstats->bHwError) && (!pstats->bCRC) && (!pstats->bICV)); bpacket_toself = bpacket_match_bssid & bpacket_toself = bpacket_match_bssid && /* check this */ (!compare_ether_addr(praddr, priv->rtllib->dev->dev_addr)); if (WLAN_FC_GET_FRAMETYPE(fc) == RTLLIB_STYPE_BEACON) Loading @@ -1883,7 +1884,8 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, rtl8192_record_rxdesc_forlateruse(pstats, &previous_stats); } void rtl8192_UpdateReceivedRateHistogramStatistics(struct net_device *dev, static void rtl8192_UpdateReceivedRateHistogramStatistics( struct net_device *dev, struct rtllib_rx_stats *pstats) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -2255,17 +2257,6 @@ void rtl8192_enable_tx(struct net_device *dev) } void rtl8192_beacon_disable(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); u32 reg; reg = read_nic_dword(priv->rtllib->dev, INTA_MASK); reg &= ~(IMR_BcnInt | IMR_BcnInt | IMR_TBDOK | IMR_TBDER); write_nic_dword(priv->rtllib->dev, INTA_MASK, reg); } void rtl8192_interrupt_recognized(struct net_device *dev, u32 *p_inta, u32 *p_intb) { Loading drivers/staging/rtl8192e/r8192E_firmware.c +5 −40 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include "r8192E_firmware.h" #include <linux/firmware.h> extern void firmware_init_param(struct net_device *dev) void firmware_init_param(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); struct rt_firmware *pfirmware = priv->pFirmware; Loading @@ -32,7 +32,7 @@ extern void firmware_init_param(struct net_device *dev) MAX_TRANSMIT_BUFFER_SIZE); } bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -102,42 +102,7 @@ bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, return rt_status; } bool fwSendNullPacket(struct net_device *dev, u32 Length) { bool rtStatus = true; struct r8192_priv *priv = rtllib_priv(dev); struct sk_buff *skb; struct cb_desc *tcb_desc; unsigned char *ptr_buf; bool bLastInitPacket = false; skb = dev_alloc_skb(Length + 4); memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev)); tcb_desc = (struct cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE); tcb_desc->queue_index = TXCMD_QUEUE; tcb_desc->bCmdOrInit = DESC_PACKET_TYPE_INIT; tcb_desc->bLastIniPkt = bLastInitPacket; ptr_buf = skb_put(skb, Length); memset(ptr_buf, 0, Length); tcb_desc->txbuf_size = (u16)Length; if (!priv->rtllib->check_nic_enough_desc(dev, tcb_desc->queue_index) || (!skb_queue_empty(&priv->rtllib->skb_waitQ[tcb_desc-> queue_index])) || (priv->rtllib->queue_stop)) { RT_TRACE(COMP_FIRMWARE, "===================NULL packet========" "========> tx full!\n"); skb_queue_tail(&priv->rtllib->skb_waitQ[tcb_desc->queue_index], skb); } else { priv->rtllib->softmac_hard_start_xmit(skb, dev); } write_nic_byte(dev, TPPoll, TPPoll_CQ); return rtStatus; } bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) static bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) { bool rt_status = true; u32 CPU_status = 0; Loading Loading @@ -184,7 +149,7 @@ CPUCheckMainCodeOKAndTurnOnCPU_Fail: return rt_status; } bool CPUcheck_firmware_ready(struct net_device *dev) static bool CPUcheck_firmware_ready(struct net_device *dev) { bool rt_status = true; Loading drivers/staging/rtl8192e/r8192E_phy.c +20 −18 Original line number Diff line number Diff line Loading @@ -53,7 +53,8 @@ static u32 phy_FwRFSerialRead(struct net_device *dev, static void phy_FwRFSerialWrite(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset, u32 Data); u32 rtl8192_CalculateBitShift(u32 dwBitMask) static u32 rtl8192_CalculateBitShift(u32 dwBitMask) { u32 i; for (i = 0; i <= 31; i++) { Loading Loading @@ -105,7 +106,7 @@ u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask) return Ret; } u32 rtl8192_phy_RFSerialRead(struct net_device *dev, static u32 rtl8192_phy_RFSerialRead(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -161,7 +162,7 @@ u32 rtl8192_phy_RFSerialRead(struct net_device *dev, } void rtl8192_phy_RFSerialWrite(struct net_device *dev, static void rtl8192_phy_RFSerialWrite(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset, u32 Data) { Loading Loading @@ -400,7 +401,7 @@ void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType) return; } void rtl8192_InitBBRFRegDef(struct net_device *dev) static void rtl8192_InitBBRFRegDef(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -549,7 +550,7 @@ bool rtl8192_phy_checkBBAndRF(struct net_device *dev, return ret; } bool rtl8192_BB_Config_ParaFile(struct net_device *dev) static bool rtl8192_BB_Config_ParaFile(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); bool rtStatus = true; Loading Loading @@ -790,7 +791,7 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, return ret; } void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) static void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) { struct r8192_priv *priv = rtllib_priv(dev); u8 powerlevel = priv->TxPowerLevelCCK[channel-1]; Loading @@ -815,8 +816,9 @@ void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) return; } u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, u32 CmdTableSz, enum sw_chnl_cmd_id CmdID, static u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, u32 CmdTableSz, enum sw_chnl_cmd_id CmdID, u32 Para1, u32 Para2, u32 msDelay) { struct sw_chnl_cmd *pCmd; Loading @@ -843,8 +845,8 @@ u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, return true; } u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u8 *step, u32 *delay) static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u8 *step, u32 *delay) { struct r8192_priv *priv = rtllib_priv(dev); struct sw_chnl_cmd PreCommonCmd[MAX_PRECMD_CNT]; Loading Loading @@ -983,7 +985,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, return false; } void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel) static void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel) { struct r8192_priv *priv = rtllib_priv(dev); u32 delay = 0; Loading Loading @@ -1410,7 +1412,7 @@ void PHY_SetRtl8192eRfOff(struct net_device *dev) } bool SetRFPowerState8190(struct net_device *dev, static bool SetRFPowerState8190(struct net_device *dev, enum rt_rf_power_state eRFPowerState) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1608,7 +1610,7 @@ bool SetRFPowerState(struct net_device *dev, return bResult; } extern void PHY_ScanOperationBackup8192(struct net_device *dev, u8 Operation) void PHY_ScanOperationBackup8192(struct net_device *dev, u8 Operation) { struct r8192_priv *priv = rtllib_priv(dev); Loading drivers/staging/rtl8192e/rtl_core.c +43 −101 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ int hwwep = 1; static int channels = 0x3fff; char *ifname = "wlan%d"; static char *ifname = "wlan%d"; struct rtl819x_ops rtl819xp_ops = { static struct rtl819x_ops rtl819xp_ops = { .nic_type = NIC_8192E, .get_eeprom_size = rtl8192_get_eeprom_size, .init_adapter_variable = rtl8192_InitializeVariables, Loading Loading @@ -108,7 +108,7 @@ static struct pci_driver rtl8192_pci_driver = { /**************************************************************************** -----------------------------IO STUFF------------------------- *****************************************************************************/ bool PlatformIOCheckPageLegalAndGetRegMask(u32 u4bPage, u8 *pu1bPageMask) static bool PlatformIOCheckPageLegalAndGetRegMask(u32 u4bPage, u8 *pu1bPageMask) { bool bReturn = false; Loading Loading @@ -276,36 +276,36 @@ u32 read_nic_io_dword(struct net_device *dev, int x) u8 read_nic_byte(struct net_device *dev, int x) { return 0xff & readb((u8 *)dev->mem_start + x); return 0xff & readb((u8 __iomem *)dev->mem_start + x); } u32 read_nic_dword(struct net_device *dev, int x) { return readl((u8 *)dev->mem_start + x); return readl((u8 __iomem *)dev->mem_start + x); } u16 read_nic_word(struct net_device *dev, int x) { return readw((u8 *)dev->mem_start + x); return readw((u8 __iomem *)dev->mem_start + x); } void write_nic_byte(struct net_device *dev, int x, u8 y) { writeb(y, (u8 *)dev->mem_start + x); writeb(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } void write_nic_dword(struct net_device *dev, int x, u32 y) { writel(y, (u8 *)dev->mem_start + x); writel(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } void write_nic_word(struct net_device *dev, int x, u16 y) { writew(y, (u8 *)dev->mem_start + x); writew(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } Loading Loading @@ -452,7 +452,7 @@ bool MgntActSet_RF_State(struct net_device *dev, } short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) static short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) { struct r8192_priv *priv = rtllib_priv(dev); struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; Loading @@ -467,7 +467,7 @@ short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) return skb_queue_len(&ring->queue); } short rtl8192_check_nic_enough_desc(struct net_device *dev, int prio) static short rtl8192_check_nic_enough_desc(struct net_device *dev, int prio) { struct r8192_priv *priv = rtllib_priv(dev); struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; Loading Loading @@ -502,14 +502,6 @@ void rtl8192_irq_disable(struct net_device *dev) priv->irq_enabled = 0; } void rtl8192_irq_clear(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); priv->ops->irq_clear(dev); } void rtl8192_set_chan(struct net_device *dev, short ch) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -579,7 +571,7 @@ static struct rtllib_qos_parameters def_qos_parameters = { {0, 0, 0, 0} }; void rtl8192_update_beacon(void *data) static void rtl8192_update_beacon(void *data) { struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv, update_beacon_wq.work); Loading @@ -598,7 +590,7 @@ void rtl8192_update_beacon(void *data) #define MOVE_INTO_HANDLER int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO}; void rtl8192_qos_activate(void *data) static void rtl8192_qos_activate(void *data) { struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv, qos_activate); Loading Loading @@ -758,7 +750,7 @@ static int rtl8192_handle_assoc_response(struct net_device *dev, return 0; } void rtl8192_prepare_beacon(struct r8192_priv *priv) static void rtl8192_prepare_beacon(struct r8192_priv *priv) { struct net_device *dev = priv->rtllib->dev; struct sk_buff *pskb = NULL, *pnewskb = NULL; Loading Loading @@ -791,7 +783,7 @@ void rtl8192_prepare_beacon(struct r8192_priv *priv) return; } void rtl8192_stop_beacon(struct net_device *dev) static void rtl8192_stop_beacon(struct net_device *dev) { } Loading Loading @@ -887,7 +879,7 @@ void rtl8192_config_rate(struct net_device *dev, u16 *rate_config) } } void rtl8192_refresh_supportrate(struct r8192_priv *priv) static void rtl8192_refresh_supportrate(struct r8192_priv *priv) { struct rtllib_device *ieee = priv->rtllib; if (ieee->mode == WIRELESS_MODE_N_24G || Loading @@ -903,7 +895,7 @@ void rtl8192_refresh_supportrate(struct r8192_priv *priv) return; } u8 rtl8192_getSupportedWireleeMode(struct net_device *dev) static u8 rtl8192_getSupportedWireleeMode(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 ret = 0; Loading Loading @@ -973,7 +965,7 @@ void rtl8192_SetWirelessMode(struct net_device *dev, u8 wireless_mode) rtl8192_refresh_supportrate(priv); } int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) static int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) { struct r8192_priv *priv = rtllib_priv(dev); struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *) Loading Loading @@ -1016,7 +1008,7 @@ int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) return 0; } int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) { struct r8192_priv *priv = rtllib_priv(dev); unsigned long flags = 0; Loading Loading @@ -1243,9 +1235,10 @@ static void rtl8192_init_priv_variable(struct net_device *dev) priv->card_type = PCI; priv->AcmControl = 0; priv->pFirmware = vmalloc(sizeof(struct rt_firmware)); if (priv->pFirmware) memset(priv->pFirmware, 0, sizeof(struct rt_firmware)); priv->pFirmware = vzalloc(sizeof(struct rt_firmware)); if (!priv->pFirmware) printk(KERN_ERR "rtl8193e: Unable to allocate space " "for firmware\n"); skb_queue_head_init(&priv->rx_queue); skb_queue_head_init(&priv->skb_queue); Loading Loading @@ -1302,7 +1295,7 @@ static void rtl8192_init_priv_task(struct net_device *dev) (unsigned long)priv); } short rtl8192_get_channel_map(struct net_device *dev) static short rtl8192_get_channel_map(struct net_device *dev) { int i; Loading Loading @@ -1330,7 +1323,7 @@ short rtl8192_get_channel_map(struct net_device *dev) return 0; } short rtl8192_init(struct net_device *dev) static short rtl8192_init(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1395,7 +1388,7 @@ short rtl8192_is_tx_queue_empty(struct net_device *dev) return 1; } enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) static enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 QueueID; Loading Loading @@ -1454,7 +1447,7 @@ enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) return RESET_TYPE_NORESET; } enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) static enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading @@ -1466,8 +1459,7 @@ enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) return RESET_TYPE_NORESET; } enum reset_type rtl819x_ifcheck_resetornot(struct net_device *dev) static enum reset_type rtl819x_ifcheck_resetornot(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); enum reset_type TxResetType = RESET_TYPE_NORESET; Loading Loading @@ -1500,11 +1492,11 @@ rtl819x_ifcheck_resetornot(struct net_device *dev) } void rtl819x_silentreset_mesh_bk(struct net_device *dev, u8 IsPortal) static void rtl819x_silentreset_mesh_bk(struct net_device *dev, u8 IsPortal) { } void rtl819x_ifsilentreset(struct net_device *dev) static void rtl819x_ifsilentreset(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 reset_times = 0; Loading Loading @@ -1643,7 +1635,7 @@ END: } } void rtl819x_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum, static void rtl819x_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum, u32 *TotalRxDataNum) { u16 SlotIndex; Loading Loading @@ -1975,7 +1967,7 @@ int rtl8192_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } void rtl8192_tx_isr(struct net_device *dev, int prio) static void rtl8192_tx_isr(struct net_device *dev, int prio) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -2103,7 +2095,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff *skb) return 0; } short rtl8192_alloc_rx_desc_ring(struct net_device *dev) static short rtl8192_alloc_rx_desc_ring(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); struct rx_desc *entry = NULL; Loading Loading @@ -2341,7 +2333,7 @@ rtl8192_record_rxdesc_forlateruse( void rtl8192_rx_normal(struct net_device *dev) static void rtl8192_rx_normal(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_hdr_1addr *rtllib_hdr = NULL; Loading Loading @@ -2446,12 +2438,12 @@ done: } void rtl8192_rx_cmd(struct net_device *dev) static void rtl8192_rx_cmd(struct net_device *dev) { } void rtl8192_tx_resume(struct net_device *dev) static void rtl8192_tx_resume(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_device *ieee = priv->rtllib; Loading Loading @@ -2504,7 +2496,7 @@ int _rtl8192_up(struct net_device *dev, bool is_silent_reset) } int rtl8192_open(struct net_device *dev) static int rtl8192_open(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); int ret; Loading @@ -2527,7 +2519,7 @@ int rtl8192_up(struct net_device *dev) } int rtl8192_close(struct net_device *dev) static int rtl8192_close(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); int ret; Loading Loading @@ -2591,7 +2583,7 @@ static void r8192_set_multicast(struct net_device *dev) } int r8192_set_mac_adr(struct net_device *dev, void *mac) static int r8192_set_mac_adr(struct net_device *dev, void *mac) { struct r8192_priv *priv = rtllib_priv(dev); struct sockaddr *addr = mac; Loading @@ -2607,7 +2599,7 @@ int r8192_set_mac_adr(struct net_device *dev, void *mac) } /* based on ipw2200 driver */ int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) static int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct iwreq *wrq = (struct iwreq *)rq; Loading Loading @@ -2731,56 +2723,6 @@ out: return ret; } void FairBeacon(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_network *net = &priv->rtllib->current_network; static u8 i = 100; static u8 forceturn; u16 beaconint = net->beacon_interval; if (priv->rtllib->iw_mode != IW_MODE_ADHOC) return; if (priv->bIbssCoordinator) { i--; if (forceturn == 2) { forceturn = 0; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); i = 100; } if (i <= 94) { beaconint = beaconint+2; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); forceturn = 1; } } else { i++; if (forceturn == 1) { forceturn = 0; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); i = 100; } if (i >= 106) { beaconint = beaconint-2; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); forceturn = 2; } } } irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs) { Loading Loading @@ -3077,7 +3019,7 @@ fail: if (dev) { if (priv->irq) { free_irq(dev->irq, dev); dev->irq = 0; priv->irq = 0; } free_rtllib(dev); } Loading Loading @@ -3127,7 +3069,7 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev) kfree(priv->scan_cmd); if (dev->mem_start != 0) { iounmap((void *)dev->mem_start); iounmap((void __iomem *)dev->mem_start); release_mem_region(pci_resource_start(pdev, 1), pci_resource_len(pdev, 1)); } Loading Loading
drivers/staging/rtl8192e/r8192E_cmdpkt.c +4 −6 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ } /*---------------------------Define functions---------------------------------*/ extern bool cmpk_message_handle_tx( bool cmpk_message_handle_tx( struct net_device *dev, u8 *code_virtual_address, u32 packettype, Loading Loading @@ -167,7 +167,7 @@ static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg) } /* cmpk_Handle_Tx_Feedback */ void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev) static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u16 tx_rate; Loading Loading @@ -339,9 +339,7 @@ static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg) } extern u32 cmpk_message_handle_rx( struct net_device *dev, u32 cmpk_message_handle_rx(struct net_device *dev, struct rtllib_rx_stats *pstats) { struct r8192_priv *priv = rtllib_priv(dev); Loading
drivers/staging/rtl8192e/r8192E_dev.c +17 −26 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ void rtl8192e_start_beacon(struct net_device *dev) rtl8192_irq_enable(dev); } void rtl8192e_update_msr(struct net_device *dev) static void rtl8192e_update_msr(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 msr; Loading Loading @@ -952,7 +952,7 @@ end: return rtStatus; } void rtl8192_net_update(struct net_device *dev) static void rtl8192_net_update(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1127,7 +1127,7 @@ static u8 MRateToHwRate8190Pci(u8 rate) return ret; } u8 rtl8192_MapHwQueueToFirmwareQueue(u8 QueueID, u8 priority) static u8 rtl8192_MapHwQueueToFirmwareQueue(u8 QueueID, u8 priority) { u8 QueueSelect = 0x0; Loading Loading @@ -1301,7 +1301,7 @@ void rtl8192_tx_fill_cmd_desc(struct net_device *dev, entry->OWN = 1; } u8 HwRateToMRate90(bool bIsHT, u8 rate) static u8 HwRateToMRate90(bool bIsHT, u8 rate) { u8 ret_rate = 0x02; Loading Loading @@ -1414,7 +1414,7 @@ u8 HwRateToMRate90(bool bIsHT, u8 rate) return ret_rate; } long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) static long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) { long retsig; Loading Loading @@ -1450,7 +1450,7 @@ long rtl8192_signal_scale_mapping(struct r8192_priv *priv, long currsig) _pdrvinfo->RxRate == DESC90_RATE11M) &&\ !_pdrvinfo->RxHT) void rtl8192_query_rxphystatus( static void rtl8192_query_rxphystatus( struct r8192_priv *priv, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, Loading Loading @@ -1664,7 +1664,7 @@ void rtl8192_query_rxphystatus( } } void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, struct rtllib_rx_stats *prev_st, struct rtllib_rx_stats *curr_st) { Loading Loading @@ -1839,7 +1839,8 @@ void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer, } } void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, static void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, struct rtllib_rx_stats *pstats, struct rx_desc *pdesc, struct rx_fwinfo *pdrvinfo) Loading Loading @@ -1867,7 +1868,7 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, (fc & RTLLIB_FCTL_TODS) ? hdr->addr1 : (fc & RTLLIB_FCTL_FROMDS) ? hdr->addr2 : hdr->addr3)) && (!pstats->bHwError) && (!pstats->bCRC) && (!pstats->bICV)); bpacket_toself = bpacket_match_bssid & bpacket_toself = bpacket_match_bssid && /* check this */ (!compare_ether_addr(praddr, priv->rtllib->dev->dev_addr)); if (WLAN_FC_GET_FRAMETYPE(fc) == RTLLIB_STYPE_BEACON) Loading @@ -1883,7 +1884,8 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev, struct sk_buff *skb, rtl8192_record_rxdesc_forlateruse(pstats, &previous_stats); } void rtl8192_UpdateReceivedRateHistogramStatistics(struct net_device *dev, static void rtl8192_UpdateReceivedRateHistogramStatistics( struct net_device *dev, struct rtllib_rx_stats *pstats) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -2255,17 +2257,6 @@ void rtl8192_enable_tx(struct net_device *dev) } void rtl8192_beacon_disable(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); u32 reg; reg = read_nic_dword(priv->rtllib->dev, INTA_MASK); reg &= ~(IMR_BcnInt | IMR_BcnInt | IMR_TBDOK | IMR_TBDER); write_nic_dword(priv->rtllib->dev, INTA_MASK, reg); } void rtl8192_interrupt_recognized(struct net_device *dev, u32 *p_inta, u32 *p_intb) { Loading
drivers/staging/rtl8192e/r8192E_firmware.c +5 −40 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ #include "r8192E_firmware.h" #include <linux/firmware.h> extern void firmware_init_param(struct net_device *dev) void firmware_init_param(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); struct rt_firmware *pfirmware = priv->pFirmware; Loading @@ -32,7 +32,7 @@ extern void firmware_init_param(struct net_device *dev) MAX_TRANSMIT_BUFFER_SIZE); } bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, u32 buffer_len) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -102,42 +102,7 @@ bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, return rt_status; } bool fwSendNullPacket(struct net_device *dev, u32 Length) { bool rtStatus = true; struct r8192_priv *priv = rtllib_priv(dev); struct sk_buff *skb; struct cb_desc *tcb_desc; unsigned char *ptr_buf; bool bLastInitPacket = false; skb = dev_alloc_skb(Length + 4); memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev)); tcb_desc = (struct cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE); tcb_desc->queue_index = TXCMD_QUEUE; tcb_desc->bCmdOrInit = DESC_PACKET_TYPE_INIT; tcb_desc->bLastIniPkt = bLastInitPacket; ptr_buf = skb_put(skb, Length); memset(ptr_buf, 0, Length); tcb_desc->txbuf_size = (u16)Length; if (!priv->rtllib->check_nic_enough_desc(dev, tcb_desc->queue_index) || (!skb_queue_empty(&priv->rtllib->skb_waitQ[tcb_desc-> queue_index])) || (priv->rtllib->queue_stop)) { RT_TRACE(COMP_FIRMWARE, "===================NULL packet========" "========> tx full!\n"); skb_queue_tail(&priv->rtllib->skb_waitQ[tcb_desc->queue_index], skb); } else { priv->rtllib->softmac_hard_start_xmit(skb, dev); } write_nic_byte(dev, TPPoll, TPPoll_CQ); return rtStatus; } bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) static bool CPUcheck_maincodeok_turnonCPU(struct net_device *dev) { bool rt_status = true; u32 CPU_status = 0; Loading Loading @@ -184,7 +149,7 @@ CPUCheckMainCodeOKAndTurnOnCPU_Fail: return rt_status; } bool CPUcheck_firmware_ready(struct net_device *dev) static bool CPUcheck_firmware_ready(struct net_device *dev) { bool rt_status = true; Loading
drivers/staging/rtl8192e/r8192E_phy.c +20 −18 Original line number Diff line number Diff line Loading @@ -53,7 +53,8 @@ static u32 phy_FwRFSerialRead(struct net_device *dev, static void phy_FwRFSerialWrite(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset, u32 Data); u32 rtl8192_CalculateBitShift(u32 dwBitMask) static u32 rtl8192_CalculateBitShift(u32 dwBitMask) { u32 i; for (i = 0; i <= 31; i++) { Loading Loading @@ -105,7 +106,7 @@ u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask) return Ret; } u32 rtl8192_phy_RFSerialRead(struct net_device *dev, static u32 rtl8192_phy_RFSerialRead(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -161,7 +162,7 @@ u32 rtl8192_phy_RFSerialRead(struct net_device *dev, } void rtl8192_phy_RFSerialWrite(struct net_device *dev, static void rtl8192_phy_RFSerialWrite(struct net_device *dev, enum rf90_radio_path eRFPath, u32 Offset, u32 Data) { Loading Loading @@ -400,7 +401,7 @@ void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType) return; } void rtl8192_InitBBRFRegDef(struct net_device *dev) static void rtl8192_InitBBRFRegDef(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -549,7 +550,7 @@ bool rtl8192_phy_checkBBAndRF(struct net_device *dev, return ret; } bool rtl8192_BB_Config_ParaFile(struct net_device *dev) static bool rtl8192_BB_Config_ParaFile(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); bool rtStatus = true; Loading Loading @@ -790,7 +791,7 @@ u8 rtl8192_phy_ConfigRFWithHeaderFile(struct net_device *dev, return ret; } void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) static void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) { struct r8192_priv *priv = rtllib_priv(dev); u8 powerlevel = priv->TxPowerLevelCCK[channel-1]; Loading @@ -815,8 +816,9 @@ void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel) return; } u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, u32 CmdTableSz, enum sw_chnl_cmd_id CmdID, static u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, u32 CmdTableSz, enum sw_chnl_cmd_id CmdID, u32 Para1, u32 Para2, u32 msDelay) { struct sw_chnl_cmd *pCmd; Loading @@ -843,8 +845,8 @@ u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx, return true; } u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u8 *step, u32 *delay) static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, u8 *step, u32 *delay) { struct r8192_priv *priv = rtllib_priv(dev); struct sw_chnl_cmd PreCommonCmd[MAX_PRECMD_CNT]; Loading Loading @@ -983,7 +985,7 @@ u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, u8 *stage, return false; } void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel) static void rtl8192_phy_FinishSwChnlNow(struct net_device *dev, u8 channel) { struct r8192_priv *priv = rtllib_priv(dev); u32 delay = 0; Loading Loading @@ -1410,7 +1412,7 @@ void PHY_SetRtl8192eRfOff(struct net_device *dev) } bool SetRFPowerState8190(struct net_device *dev, static bool SetRFPowerState8190(struct net_device *dev, enum rt_rf_power_state eRFPowerState) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1608,7 +1610,7 @@ bool SetRFPowerState(struct net_device *dev, return bResult; } extern void PHY_ScanOperationBackup8192(struct net_device *dev, u8 Operation) void PHY_ScanOperationBackup8192(struct net_device *dev, u8 Operation) { struct r8192_priv *priv = rtllib_priv(dev); Loading
drivers/staging/rtl8192e/rtl_core.c +43 −101 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ int hwwep = 1; static int channels = 0x3fff; char *ifname = "wlan%d"; static char *ifname = "wlan%d"; struct rtl819x_ops rtl819xp_ops = { static struct rtl819x_ops rtl819xp_ops = { .nic_type = NIC_8192E, .get_eeprom_size = rtl8192_get_eeprom_size, .init_adapter_variable = rtl8192_InitializeVariables, Loading Loading @@ -108,7 +108,7 @@ static struct pci_driver rtl8192_pci_driver = { /**************************************************************************** -----------------------------IO STUFF------------------------- *****************************************************************************/ bool PlatformIOCheckPageLegalAndGetRegMask(u32 u4bPage, u8 *pu1bPageMask) static bool PlatformIOCheckPageLegalAndGetRegMask(u32 u4bPage, u8 *pu1bPageMask) { bool bReturn = false; Loading Loading @@ -276,36 +276,36 @@ u32 read_nic_io_dword(struct net_device *dev, int x) u8 read_nic_byte(struct net_device *dev, int x) { return 0xff & readb((u8 *)dev->mem_start + x); return 0xff & readb((u8 __iomem *)dev->mem_start + x); } u32 read_nic_dword(struct net_device *dev, int x) { return readl((u8 *)dev->mem_start + x); return readl((u8 __iomem *)dev->mem_start + x); } u16 read_nic_word(struct net_device *dev, int x) { return readw((u8 *)dev->mem_start + x); return readw((u8 __iomem *)dev->mem_start + x); } void write_nic_byte(struct net_device *dev, int x, u8 y) { writeb(y, (u8 *)dev->mem_start + x); writeb(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } void write_nic_dword(struct net_device *dev, int x, u32 y) { writel(y, (u8 *)dev->mem_start + x); writel(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } void write_nic_word(struct net_device *dev, int x, u16 y) { writew(y, (u8 *)dev->mem_start + x); writew(y, (u8 __iomem *)dev->mem_start + x); udelay(20); } Loading Loading @@ -452,7 +452,7 @@ bool MgntActSet_RF_State(struct net_device *dev, } short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) static short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) { struct r8192_priv *priv = rtllib_priv(dev); struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; Loading @@ -467,7 +467,7 @@ short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) return skb_queue_len(&ring->queue); } short rtl8192_check_nic_enough_desc(struct net_device *dev, int prio) static short rtl8192_check_nic_enough_desc(struct net_device *dev, int prio) { struct r8192_priv *priv = rtllib_priv(dev); struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; Loading Loading @@ -502,14 +502,6 @@ void rtl8192_irq_disable(struct net_device *dev) priv->irq_enabled = 0; } void rtl8192_irq_clear(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); priv->ops->irq_clear(dev); } void rtl8192_set_chan(struct net_device *dev, short ch) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -579,7 +571,7 @@ static struct rtllib_qos_parameters def_qos_parameters = { {0, 0, 0, 0} }; void rtl8192_update_beacon(void *data) static void rtl8192_update_beacon(void *data) { struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv, update_beacon_wq.work); Loading @@ -598,7 +590,7 @@ void rtl8192_update_beacon(void *data) #define MOVE_INTO_HANDLER int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO}; void rtl8192_qos_activate(void *data) static void rtl8192_qos_activate(void *data) { struct r8192_priv *priv = container_of_work_rsl(data, struct r8192_priv, qos_activate); Loading Loading @@ -758,7 +750,7 @@ static int rtl8192_handle_assoc_response(struct net_device *dev, return 0; } void rtl8192_prepare_beacon(struct r8192_priv *priv) static void rtl8192_prepare_beacon(struct r8192_priv *priv) { struct net_device *dev = priv->rtllib->dev; struct sk_buff *pskb = NULL, *pnewskb = NULL; Loading Loading @@ -791,7 +783,7 @@ void rtl8192_prepare_beacon(struct r8192_priv *priv) return; } void rtl8192_stop_beacon(struct net_device *dev) static void rtl8192_stop_beacon(struct net_device *dev) { } Loading Loading @@ -887,7 +879,7 @@ void rtl8192_config_rate(struct net_device *dev, u16 *rate_config) } } void rtl8192_refresh_supportrate(struct r8192_priv *priv) static void rtl8192_refresh_supportrate(struct r8192_priv *priv) { struct rtllib_device *ieee = priv->rtllib; if (ieee->mode == WIRELESS_MODE_N_24G || Loading @@ -903,7 +895,7 @@ void rtl8192_refresh_supportrate(struct r8192_priv *priv) return; } u8 rtl8192_getSupportedWireleeMode(struct net_device *dev) static u8 rtl8192_getSupportedWireleeMode(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 ret = 0; Loading Loading @@ -973,7 +965,7 @@ void rtl8192_SetWirelessMode(struct net_device *dev, u8 wireless_mode) rtl8192_refresh_supportrate(priv); } int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) static int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) { struct r8192_priv *priv = rtllib_priv(dev); struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *) Loading Loading @@ -1016,7 +1008,7 @@ int _rtl8192_sta_up(struct net_device *dev, bool is_silent_reset) return 0; } int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) static int rtl8192_sta_down(struct net_device *dev, bool shutdownrf) { struct r8192_priv *priv = rtllib_priv(dev); unsigned long flags = 0; Loading Loading @@ -1243,9 +1235,10 @@ static void rtl8192_init_priv_variable(struct net_device *dev) priv->card_type = PCI; priv->AcmControl = 0; priv->pFirmware = vmalloc(sizeof(struct rt_firmware)); if (priv->pFirmware) memset(priv->pFirmware, 0, sizeof(struct rt_firmware)); priv->pFirmware = vzalloc(sizeof(struct rt_firmware)); if (!priv->pFirmware) printk(KERN_ERR "rtl8193e: Unable to allocate space " "for firmware\n"); skb_queue_head_init(&priv->rx_queue); skb_queue_head_init(&priv->skb_queue); Loading Loading @@ -1302,7 +1295,7 @@ static void rtl8192_init_priv_task(struct net_device *dev) (unsigned long)priv); } short rtl8192_get_channel_map(struct net_device *dev) static short rtl8192_get_channel_map(struct net_device *dev) { int i; Loading Loading @@ -1330,7 +1323,7 @@ short rtl8192_get_channel_map(struct net_device *dev) return 0; } short rtl8192_init(struct net_device *dev) static short rtl8192_init(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading Loading @@ -1395,7 +1388,7 @@ short rtl8192_is_tx_queue_empty(struct net_device *dev) return 1; } enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) static enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 QueueID; Loading Loading @@ -1454,7 +1447,7 @@ enum reset_type rtl819x_TxCheckStuck(struct net_device *dev) return RESET_TYPE_NORESET; } enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) static enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); Loading @@ -1466,8 +1459,7 @@ enum reset_type rtl819x_RxCheckStuck(struct net_device *dev) return RESET_TYPE_NORESET; } enum reset_type rtl819x_ifcheck_resetornot(struct net_device *dev) static enum reset_type rtl819x_ifcheck_resetornot(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); enum reset_type TxResetType = RESET_TYPE_NORESET; Loading Loading @@ -1500,11 +1492,11 @@ rtl819x_ifcheck_resetornot(struct net_device *dev) } void rtl819x_silentreset_mesh_bk(struct net_device *dev, u8 IsPortal) static void rtl819x_silentreset_mesh_bk(struct net_device *dev, u8 IsPortal) { } void rtl819x_ifsilentreset(struct net_device *dev) static void rtl819x_ifsilentreset(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u8 reset_times = 0; Loading Loading @@ -1643,7 +1635,7 @@ END: } } void rtl819x_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum, static void rtl819x_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum, u32 *TotalRxDataNum) { u16 SlotIndex; Loading Loading @@ -1975,7 +1967,7 @@ int rtl8192_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) } void rtl8192_tx_isr(struct net_device *dev, int prio) static void rtl8192_tx_isr(struct net_device *dev, int prio) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); Loading Loading @@ -2103,7 +2095,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff *skb) return 0; } short rtl8192_alloc_rx_desc_ring(struct net_device *dev) static short rtl8192_alloc_rx_desc_ring(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); struct rx_desc *entry = NULL; Loading Loading @@ -2341,7 +2333,7 @@ rtl8192_record_rxdesc_forlateruse( void rtl8192_rx_normal(struct net_device *dev) static void rtl8192_rx_normal(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_hdr_1addr *rtllib_hdr = NULL; Loading Loading @@ -2446,12 +2438,12 @@ done: } void rtl8192_rx_cmd(struct net_device *dev) static void rtl8192_rx_cmd(struct net_device *dev) { } void rtl8192_tx_resume(struct net_device *dev) static void rtl8192_tx_resume(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_device *ieee = priv->rtllib; Loading Loading @@ -2504,7 +2496,7 @@ int _rtl8192_up(struct net_device *dev, bool is_silent_reset) } int rtl8192_open(struct net_device *dev) static int rtl8192_open(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); int ret; Loading @@ -2527,7 +2519,7 @@ int rtl8192_up(struct net_device *dev) } int rtl8192_close(struct net_device *dev) static int rtl8192_close(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); int ret; Loading Loading @@ -2591,7 +2583,7 @@ static void r8192_set_multicast(struct net_device *dev) } int r8192_set_mac_adr(struct net_device *dev, void *mac) static int r8192_set_mac_adr(struct net_device *dev, void *mac) { struct r8192_priv *priv = rtllib_priv(dev); struct sockaddr *addr = mac; Loading @@ -2607,7 +2599,7 @@ int r8192_set_mac_adr(struct net_device *dev, void *mac) } /* based on ipw2200 driver */ int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) static int rtl8192_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct iwreq *wrq = (struct iwreq *)rq; Loading Loading @@ -2731,56 +2723,6 @@ out: return ret; } void FairBeacon(struct net_device *dev) { struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct rtllib_network *net = &priv->rtllib->current_network; static u8 i = 100; static u8 forceturn; u16 beaconint = net->beacon_interval; if (priv->rtllib->iw_mode != IW_MODE_ADHOC) return; if (priv->bIbssCoordinator) { i--; if (forceturn == 2) { forceturn = 0; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); i = 100; } if (i <= 94) { beaconint = beaconint+2; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); forceturn = 1; } } else { i++; if (forceturn == 1) { forceturn = 0; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); i = 100; } if (i >= 106) { beaconint = beaconint-2; priv->rtllib->SetHwRegHandler(dev, HW_VAR_BEACON_INTERVAL, (u8 *)(&beaconint)); forceturn = 2; } } } irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs) { Loading Loading @@ -3077,7 +3019,7 @@ fail: if (dev) { if (priv->irq) { free_irq(dev->irq, dev); dev->irq = 0; priv->irq = 0; } free_rtllib(dev); } Loading Loading @@ -3127,7 +3069,7 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev) kfree(priv->scan_cmd); if (dev->mem_start != 0) { iounmap((void *)dev->mem_start); iounmap((void __iomem *)dev->mem_start); release_mem_region(pci_resource_start(pdev, 1), pci_resource_len(pdev, 1)); } Loading