OSDN Git Service

Remove more typedef statements
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 16 Apr 2013 15:09:22 +0000 (10:09 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Tue, 16 Apr 2013 15:09:22 +0000 (10:09 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
20 files changed:
core/rtw_cmd.c
core/rtw_mp.c
hal/odm.h
hal/rtl8723a_hal_init.c
include/drv_types.h
include/osdep_intf.h
include/osdep_service.h
include/rtl8723a_bt-coexist.h
include/rtl8723a_dm.h
include/rtl8723a_hal.h
include/rtw_cmd.h
include/rtw_led.h
include/rtw_mlme.h
include/rtw_mlme_ext.h
include/rtw_mp.h
include/rtw_pwrctrl.h
include/rtw_recv.h
include/rtw_security.h
include/sta_info.h
include/xmit_osdep.h

index f8e1df4..aa1e6c4 100644 (file)
@@ -358,7 +358,7 @@ _func_enter_;
 _func_exit_;
 }
 
-thread_return rtw_cmd_thread(thread_context context)
+int rtw_cmd_thread(void *context)
 {
        u8 ret;
        struct cmd_obj *pcmd;
index 4db0468..87bf284 100644 (file)
@@ -760,7 +760,7 @@ static struct xmit_frame *alloc_mp_xmitframe(struct xmit_priv *pxmitpriv)
        return pmpframe;
 }
 
-static thread_return mp_xmit_packet_thread(thread_context context)
+static int mp_xmit_packet_thread(void *context)
 {
        struct xmit_frame       *pxmitframe;
        struct mp_tx            *pmptx;
index 5ac0143..8214992 100755 (executable)
--- a/hal/odm.h
+++ b/hal/odm.h
@@ -315,22 +315,6 @@ typedef struct _SW_Antenna_Switch_
        RT_WORK_ITEM                    SwAntennaSwitchWorkitem;\r
        #endif\r
 #endif\r
-/* CE Platform use\r
-#ifdef CONFIG_SW_ANTENNA_DIVERSITY\r
-       _timer SwAntennaSwitchTimer; \r
-       u8Byte lastTxOkCnt;\r
-       u8Byte lastRxOkCnt;\r
-       u8Byte TXByteCnt_A;\r
-       u8Byte TXByteCnt_B;\r
-       u8Byte RXByteCnt_A;\r
-       u8Byte RXByteCnt_B;\r
-       u1Byte DoubleComfirm;\r
-       u1Byte TrafficLoad;\r
-       //SW Antenna Switch\r
-\r
-\r
-#endif\r
-*/\r
 #ifdef CONFIG_HW_ANTENNA_DIVERSITY\r
        //Hybrid Antenna Diversity\r
        u4Byte          CCK_Ant1_Cnt[ASSOCIATE_ENTRY_NUM];\r
index 3202684..97e0a98 100755 (executable)
@@ -5059,10 +5059,8 @@ void rtl8723a_clone_haldata(_adapter* dst_adapter, _adapter* src_adapter)
 {
 #ifdef CONFIG_SDIO_HCI
        HAL_DATA_TYPE   *pHalData = GET_HAL_DATA(dst_adapter);
-       //_thread_hdl_  SdioXmitThread;
        _sema             temp_SdioXmitSema;
        _sema             temp_SdioXmitTerminateSema;
-       //u8                    SdioTxFIFOFreePage[SDIO_TX_FREE_PG_QUEUE];
        _lock                temp_SdioTxFIFOFreePageLock;
 
        memcpy(&temp_SdioXmitSema, &(pHalData->SdioXmitSema), sizeof(_sema));
index 2eeef69..86d7d43 100755 (executable)
@@ -389,7 +389,7 @@ struct proxim {
 typedef struct loopbackdata
 {
        _sema   sema;
-       _thread_hdl_ lbkthread;
+       void * lbkthread;
        u8 bstop;
        u32 cnt;
        u16 size;
@@ -479,10 +479,10 @@ struct _ADAPTER{
        u8      init_adpt_in_progress;
        u8      bHaltInProgress;
 
-       _thread_hdl_ cmdThread;
-       _thread_hdl_ evtThread;
-       _thread_hdl_ xmitThread;
-       _thread_hdl_ recvThread;
+       void *cmdThread;
+       void *evtThread;
+       void *xmitThread;
+       void *recvThread;
 
        void (*intf_start)(_adapter * adapter);
        void (*intf_stop)(_adapter * adapter);
index 980cc4e..086f9b2 100755 (executable)
@@ -57,7 +57,7 @@ The protection mechanism is through the pending queue.
        u8 io_irp_cnt;
        u8 bio_irp_pending;
        _sema io_retevt;
-       _timer  io_timer;
+       struct timer_list io_timer;
        u8 bio_irp_timeout;
        u8 bio_timer_cancel;
        #endif
index 81a2cd9..96c61e9 100755 (executable)
@@ -99,22 +99,15 @@ typedef struct mutex                _mutex;
 #else
 typedef struct semaphore       _mutex;
 #endif
-typedef struct timer_list _timer;
 
 struct __queue {
        struct  list_head       queue;
        _lock   lock;
 };
 
-typedef unsigned char  _buffer;
-
 typedef struct __queue _queue;
 typedef struct list_head       _list;
 
-typedef void*          _thread_hdl_;
-typedef int            thread_return;
-typedef void*  thread_context;
-
 #define thread_exit() complete_and_exit(NULL, 0)
 
 typedef void timer_hdl_return;
@@ -220,7 +213,7 @@ static inline void rtw_list_delete(_list *plist)
        list_del_init(plist);
 }
 
-static inline void _init_timer(_timer *ptimer, struct net_device *nic_hdl,
+static inline void _init_timer(struct timer_list *ptimer, struct net_device *nic_hdl,
                                 void *pfunc, void* cntx)
 {
        //setup_timer(ptimer, pfunc,(u32)cntx);
@@ -229,12 +222,12 @@ static inline void _init_timer(_timer *ptimer, struct net_device *nic_hdl,
        init_timer(ptimer);
 }
 
-static inline void _set_timer(_timer *ptimer,u32 delay_time)
+static inline void _set_timer(struct timer_list *ptimer,u32 delay_time)
 {
        mod_timer(ptimer , (jiffies+(delay_time*HZ/1000)));
 }
 
-static inline void _cancel_timer(_timer *ptimer,u8 *bcancelled)
+static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled)
 {
        del_timer_sync(ptimer);
        *bcancelled=  true;//TRUE ==1; FALSE==0
@@ -461,12 +454,12 @@ extern void       rtw_udelay_os(int us);
 extern void rtw_yield_os(void);
 
 
-static inline unsigned char _cancel_timer_ex(_timer *ptimer)
+static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
 {
        return del_timer_sync(ptimer);
 }
 
-static __inline void thread_enter(char *name)
+static inline void thread_enter(char *name)
 {
 #if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,7,0))
        daemonize("%s", name);
index fb6526d..564116f 100755 (executable)
@@ -1099,15 +1099,10 @@ typedef struct _BT_TRAFFIC
        BT_TRAFFIC_STATISTICS           Bt30TrafficStatistics;
 } BT_TRAFFIC, *PBT_TRAFFIC;
 
-#define RT_WORK_ITEM _workitem
-#define RT_THREAD _thread_hdl_
-
 typedef struct _BT_SECURITY
 {
        // WPA auth state
        // May need to remove to BTSecInfo ...
-       //BT_STATE_WPA_AUTH BTWPAAuthState;
-       //u8                            PMK[PMK_LEN];
        RT_TIMER                        BTWPAAuthTimer;
        OCTET_STRING            RSNIE;
        u8                      RSNIEBuf[MAXRSNIELEN];
@@ -1126,17 +1121,17 @@ typedef struct _BT30Info
        BT_SECURITY                     BtSec;
 
 #if(BT_THREAD == 0)
-       RT_WORK_ITEM            HCICmdWorkItem;
+       _workitem               HCICmdWorkItem;
        RT_TIMER                                BTHCICmdTimer;
 #endif
 #if (SENDTXMEHTOD==0)
-       RT_WORK_ITEM            HCISendACLDataWorkItem;
+       _workitem               HCISendACLDataWorkItem;
        RT_TIMER                                BTHCISendAclDataTimer;
 #elif(SENDTXMEHTOD==2)
-       RT_THREAD                       BTTxThread;
+       void *BTTxThread;
 #endif
-       RT_WORK_ITEM            BTPsDisableWorkItem;
-       RT_WORK_ITEM            BTConnectWorkItem;
+       _workitem               BTPsDisableWorkItem;
+       _workitem               BTConnectWorkItem;
        RT_TIMER                                BTHCIDiscardAclDataTimer;
        RT_TIMER                                BTHCIJoinTimeoutTimer;
        RT_TIMER                                BTTestSendPacketTimer;
index e15b3d6..49fa726 100755 (executable)
@@ -142,38 +142,8 @@ struct dm_priv
 
        u32     prv_traffic_idx; // edca turbo
 
-/*
-       // for dm_RF_Saving
-       u8      initialize;
-       u32     rf_saving_Reg874;
-       u32     rf_saving_RegC70;
-       u32     rf_saving_Reg85C;
-       u32     rf_saving_RegA74;
-*/
-       //for Antenna diversity
-#ifdef CONFIG_ANTENNA_DIVERSITY
-//     SWAT_T DM_SWAT_Table;
-#endif
-
-#ifdef CONFIG_SW_ANTENNA_DIVERSITY
-//     _timer SwAntennaSwitchTimer;
-/*
-       u64     lastTxOkCnt;
-       u64     lastRxOkCnt;
-       u64     TXByteCnt_A;
-       u64     TXByteCnt_B;
-       u64     RXByteCnt_A;
-       u64     RXByteCnt_B;
-       u8      DoubleComfirm;
-       u8      TrafficLoad;
-*/
-#endif
-
        s32     OFDM_Pkt_Cnt;
        u8      RSSI_Select;
-//     u8      DIG_Dynamic_MIN ;
-//###### duplicate code,will move to ODM #########
-       // Add for Reading Initial Data Rate SEL Register 0x484 during watchdog. Using for fill tx desc. 2011.3.21 by Thomas
        u8      INIDATA_RATE[32];
 };
 
@@ -188,6 +158,4 @@ void rtl8723a_deinit_dm_priv(PADAPTER padapter);
 void rtl8723a_InitHalDm(PADAPTER padapter);
 void rtl8723a_HalDmWatchDog(PADAPTER padapter);
 
-
-
 #endif
index 3b270c6..3dee47b 100755 (executable)
@@ -570,7 +570,7 @@ typedef struct hal_data_8723a
        // HIQ, MID, LOW, PUB free pages; padapter->xmitpriv.free_txpg
        u8                      SdioTxFIFOFreePage[SDIO_TX_FREE_PG_QUEUE];
        _lock           SdioTxFIFOFreePageLock;
-       _thread_hdl_    SdioXmitThread;
+       void *SdioXmitThread;
        _sema           SdioXmitSema;
        _sema           SdioXmitTerminateSema;
 
index 183d58e..cce76bf 100755 (executable)
@@ -133,7 +133,7 @@ extern struct evt_obj *rtw_dequeue_evt(_queue *queue);
 extern void rtw_free_evt_obj(struct evt_obj *pcmd);
 #endif
 
-thread_return rtw_cmd_thread(thread_context context);
+int rtw_cmd_thread(void *context);
 
 extern u32 rtw_init_cmd_priv (struct cmd_priv *pcmdpriv);
 extern void rtw_free_cmd_priv (struct cmd_priv *pcmdpriv);
index 23d0f4b..4d7dc8b 100755 (executable)
@@ -109,24 +109,24 @@ typedef struct _LED_871x{
        LED_STATE_871x          CurrLedState; // Current LED state.
        LED_STATE_871x          BlinkingLedState; // Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are.
 
-       u8                                      bLedOn; // true if LED is ON, false if LED is OFF.
+       u8 bLedOn; // true if LED is ON, false if LED is OFF.
 
-       u8                                      bLedBlinkInProgress; // true if it is blinking, false o.w..
+       u8 bLedBlinkInProgress; // true if it is blinking, false o.w..
 
-       u8                                      bLedWPSBlinkInProgress;
+       u8 bLedWPSBlinkInProgress;
 
-       u32                                     BlinkTimes; // Number of times to toggle led state for blinking.
+       u32 BlinkTimes; // Number of times to toggle led state for blinking.
 
-       _timer                          BlinkTimer; // Timer object for led blinking.
+       struct timer_list BlinkTimer; // Timer object for led blinking.
 
 #if defined(CONFIG_USB_HCI) || defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
-       u8                                      bSWLedCtrl;
+       u8 bSWLedCtrl;
 
        // ALPHA, added by chiyoko, 20090106
-       u8                                      bLedNoLinkBlinkInProgress;
-       u8                                      bLedLinkBlinkInProgress;
-       u8                                      bLedStartToLinkBlinkInProgress;
-       u8                                      bLedScanBlinkInProgress;
+       u8 bLedNoLinkBlinkInProgress;
+       u8 bLedLinkBlinkInProgress;
+       u8 bLedStartToLinkBlinkInProgress;
+       u8 bLedScanBlinkInProgress;
 
        #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
        _workitem                       BlinkWorkItem; // Workitem used by BlinkTimer to manipulate H/W to blink LED.
index 40dec25..dab970e 100755 (executable)
@@ -136,7 +136,7 @@ struct sitesurvey_ctrl {
        u64     last_tx_pkts;
        uint    last_rx_pkts;
        sint    traffic_busy;
-       _timer  sitesurvey_ctrl_timer;
+       struct timer_list sitesurvey_ctrl_timer;
 };
 
 typedef struct _RT_LINK_DETECT_T{
@@ -225,8 +225,8 @@ struct group_id_info{
 
 #ifdef CONFIG_IOCTL_CFG80211
 struct cfg80211_wifidirect_info{
-       _timer                                  remain_on_ch_timer;
-       u8                                              restore_channel;
+       struct timer_list remain_on_ch_timer;
+       u8              restore_channel;
        struct ieee80211_channel        remain_on_ch_channel;
        enum nl80211_channel_type       remain_on_ch_type;
        u64                                             remain_on_ch_cookie;
@@ -237,14 +237,14 @@ struct cfg80211_wifidirect_info{
 
 struct wifidirect_info{
        _adapter*                               padapter;
-       _timer                                  find_phase_timer;
-       _timer                                  restore_p2p_state_timer;
+       struct timer_list                       find_phase_timer;
+       struct timer_list                       restore_p2p_state_timer;
 
        //      Used to do the scanning. After confirming the peer is availalble, the driver transmits the P2P frame to peer.
-       _timer                                  pre_tx_scan_timer;
+       struct timer_list                       pre_tx_scan_timer;
 #ifdef CONFIG_CONCURRENT_MODE
        //      Used to switch the channel between legacy AP and listen state.
-       _timer                                  ap_p2p_switch_timer;
+       struct timer_list                       ap_p2p_switch_timer;
 #endif
        struct tx_provdisc_req_info     tx_prov_disc_info;
        struct rx_provdisc_req_info rx_prov_disc_info;
@@ -379,16 +379,16 @@ struct mlme_priv {
 
        u32     scan_interval;
 
-       _timer assoc_timer;
+       struct timer_list assoc_timer;
 
        uint assoc_by_bssid;
        uint assoc_by_rssi;
 
-       _timer scan_to_timer; // driver itself handles scan_timeout status.
+       struct timer_list scan_to_timer; // driver itself handles scan_timeout status.
        u32 scan_start_time; // used to evaluate the time spent in scanning
 
        #ifdef CONFIG_SET_SCAN_DENY_TIMER
-       _timer set_scan_deny_timer;
+       struct timer_list set_scan_deny_timer;
        ATOMIC_T set_scan_deny; //0: allowed, 1: deny
        #endif
 
@@ -410,7 +410,7 @@ struct mlme_priv {
 #endif
 
        RT_LINK_DETECT_T        LinkDetectInfo;
-       _timer  dynamic_chk_timer; //dynamic/periodic check timer
+       struct timer_list dynamic_chk_timer; //dynamic/periodic check timer
 
        u8      key_mask; //use for ips to set wep key after ips_leave
        u8      acm_mask; // for wmm acm mask
@@ -499,7 +499,7 @@ struct mlme_priv {
 #ifdef CONFIG_INTEL_WIDI
        int     widi_state;
        int     listen_state;
-       _timer  listen_timer;
+       struct timer_list listen_timer;
        ATOMIC_T        rx_probe_rsp; // 1:receive probe respone from RDS source.
        u8      *l2sdTaBuffer;
        u8      channel_idx;
index a8425a2..e4eac7d 100755 (executable)
@@ -480,9 +480,8 @@ struct mlme_ext_priv
        struct ss_res           sitesurvey_res;
        struct mlme_ext_info    mlmext_info;//for sta/adhoc mode, including current scanning/connecting/connected related info.
                                                      //for ap mode, network includes ap's cap_info
-       _timer          survey_timer;
-       _timer          link_timer;
-       //_timer                ADDBA_timer;
+       struct timer_list survey_timer;
+       struct timer_list link_timer;
        u16                     chan_scan_time;
 
        u8      scan_abort;
index ffb061d..953e80c 100755 (executable)
@@ -154,7 +154,7 @@ struct mp_tx
        u8 *pallocated_buf;
        u8 *buf;
        u32 buf_size, write_size;
-       _thread_hdl_ PktTxThread;
+       void *PktTxThread;
 };
 
 #include <Hal8723APhyCfg.h>
@@ -200,7 +200,7 @@ typedef struct _MPT_CONTEXT
        bool                    bMptDrvUnload;
 
        _sema                   MPh2c_Sema;
-       _timer                  MPh2c_timeout_timer;
+       struct timer_list MPh2c_timeout_timer;
 // Event used to sync H2c for BT control
 
        bool            MptH2cRspEvent;
index 53c9886..9b77a3f 100755 (executable)
@@ -199,7 +199,7 @@ struct pwrctrl_priv
 #ifdef CONFIG_LPS_RPWM_TIMER
        u8 brpwmtimeout;
        _workitem rpwmtimeoutwi;
-       _timer pwr_rpwm_timer;
+       struct timer_list pwr_rpwm_timer;
 #endif // CONFIG_LPS_RPWM_TIMER
        u8      bpower_saving;
 
@@ -258,7 +258,7 @@ struct pwrctrl_priv
        u8              wowlan_wake_reason;
        u32             wowlan_pattern_context[8][5];
 #endif // CONFIG_WOWLAN
-       _timer  pwr_state_check_timer;
+       struct timer_list pwr_state_check_timer;
        int             pwr_state_check_interval;
        u8              pwr_state_check_cnts;
 
index 9cfa0e8..b42f35d 100755 (executable)
@@ -62,29 +62,11 @@ struct recv_reorder_ctrl
        u16 wend_b;
        u8 wsize_b;
        _queue pending_recvframe_queue;
-       _timer reordering_ctrl_timer;
+       struct timer_list reordering_ctrl_timer;
 };
 
 struct stainfo_rxcache {
        u16     tid_rxseq[16];
-/*
-       unsigned short  tid0_rxseq;
-       unsigned short  tid1_rxseq;
-       unsigned short  tid2_rxseq;
-       unsigned short  tid3_rxseq;
-       unsigned short  tid4_rxseq;
-       unsigned short  tid5_rxseq;
-       unsigned short  tid6_rxseq;
-       unsigned short  tid7_rxseq;
-       unsigned short  tid8_rxseq;
-       unsigned short  tid9_rxseq;
-       unsigned short  tid10_rxseq;
-       unsigned short  tid11_rxseq;
-       unsigned short  tid12_rxseq;
-       unsigned short  tid13_rxseq;
-       unsigned short  tid14_rxseq;
-       unsigned short  tid15_rxseq;
-*/
 };
 
 
@@ -317,7 +299,7 @@ struct recv_priv
        int FalseAlmCnt_all;
 
 #ifdef CONFIG_NEW_SIGNAL_STAT_PROCESS
-       _timer signal_stat_timer;
+       struct timer_list signal_stat_timer;
        u32 signal_stat_sampling_interval;
        //u32 signal_stat_converging_constant;
        struct signal_stat signal_qual_data;
@@ -476,7 +458,7 @@ struct recv_buf *rtw_dequeue_recvbuf (_queue *queue);
 
 void rtw_reordering_ctrl_timeout_handler(void *pcontext);
 
-__inline static u8 *get_rxmem(union recv_frame *precvframe)
+static inline u8 *get_rxmem(union recv_frame *precvframe)
 {
        //always return rx_head...
        if(precvframe==NULL)
@@ -485,14 +467,14 @@ __inline static u8 *get_rxmem(union recv_frame *precvframe)
        return precvframe->u.hdr.rx_head;
 }
 
-__inline static u8 *get_rx_status(union recv_frame *precvframe)
+static inline u8 *get_rx_status(union recv_frame *precvframe)
 {
 
        return get_rxmem(precvframe);
 
 }
 
-__inline static u8 *get_recvframe_data(union recv_frame *precvframe)
+static inline u8 *get_recvframe_data(union recv_frame *precvframe)
 {
 
        //alwasy return rx_data
@@ -503,7 +485,7 @@ __inline static u8 *get_recvframe_data(union recv_frame *precvframe)
 
 }
 
-__inline static u8 *recvframe_push(union recv_frame *precvframe, sint sz)
+static inline u8 *recvframe_push(union recv_frame *precvframe, sint sz)
 {
        // append data before rx_data
 
@@ -531,7 +513,7 @@ __inline static u8 *recvframe_push(union recv_frame *precvframe, sint sz)
 }
 
 
-__inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
+static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
 {
        // rx_data += sz; move rx_data sz bytes  hereafter
 
@@ -556,7 +538,7 @@ __inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
 
 }
 
-__inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
+static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz)
 {
        // rx_tai += sz; move rx_tail sz bytes  hereafter
 
@@ -585,7 +567,7 @@ __inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
 
 
 
-__inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
+static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
 {
        // rmv data from rx_tail (by yitsen)
 
@@ -611,17 +593,17 @@ __inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
 
 
 
-__inline static _buffer * get_rxbuf_desc(union recv_frame *precvframe)
+static inline unsigned char *get_rxbuf_desc(union recv_frame *precvframe)
 {
-       _buffer * buf_desc;
+       unsigned char *buf_desc;
 
-       if(precvframe==NULL)
+       if (precvframe == NULL)
                return NULL;
        return buf_desc;
 }
 
 
-__inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem)
+static inline union recv_frame *rxmem_to_recvframe(u8 *rxmem)
 {
        //due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame
        //from any given member of recv_frame.
@@ -631,7 +613,7 @@ __inline static union recv_frame *rxmem_to_recvframe(u8 *rxmem)
 
 }
 
-__inline static union recv_frame *pkt_to_recvframe(struct sk_buff *pkt)
+static inline union recv_frame *pkt_to_recvframe(struct sk_buff *pkt)
 {
 
        u8 * buf_star;
@@ -641,7 +623,7 @@ __inline static union recv_frame *pkt_to_recvframe(struct sk_buff *pkt)
        return precv_frame;
 }
 
-__inline static u8 *pkt_to_recvmem(struct sk_buff *pkt)
+static inline u8 *pkt_to_recvmem(struct sk_buff *pkt)
 {
        // return the rx_head
 
@@ -651,7 +633,7 @@ __inline static u8 *pkt_to_recvmem(struct sk_buff *pkt)
 
 }
 
-__inline static u8 *pkt_to_recvdata(struct sk_buff *pkt)
+static inline u8 *pkt_to_recvdata(struct sk_buff *pkt)
 {
        // return the rx_data
 
@@ -662,13 +644,13 @@ __inline static u8 *pkt_to_recvdata(struct sk_buff *pkt)
 }
 
 
-__inline static sint get_recvframe_len(union recv_frame *precvframe)
+static inline sint get_recvframe_len(union recv_frame *precvframe)
 {
        return precvframe->u.hdr.len;
 }
 
 
-__inline static s32 translate_percentage_to_dbm(u32 SignalStrengthIndex)
+static inline s32 translate_percentage_to_dbm(u32 SignalStrengthIndex)
 {
        s32     SignalPower; // in dBm.
 
index 0eb1fc9..1abb9ba 100755 (executable)
@@ -147,12 +147,9 @@ struct security_priv
 
        u8      binstallGrpkey;
        u8      busetkipkey;
-       //_timer tkip_timer;
        u8      bcheck_grpkey;
        u8      bgrpkey_handshake;
 
-       //u8    packet_cnt;//unused, removed
-
        s32     sw_encrypt;//from registry_priv
        s32     sw_decrypt;//from registry_priv
 
index 5cf65bc..b0b2b7a 100755 (executable)
@@ -135,7 +135,7 @@ struct sta_info {
        u8      ANonce[32];
        u32     TDLS_PeerKey_Lifetime;
        u16     TPK_count;
-       _timer  TPK_timer;
+       struct timer_list       TPK_timer;
        struct TDLS_PeerKey     tpk;
        _adapter *padapter;
        u16     stat_code;
@@ -143,19 +143,19 @@ struct sta_info {
        u16     ch_switch_time;
        u16     ch_switch_timeout;
        u8      option;
-       _timer  option_timer;
-       _timer  base_ch_timer;
-       _timer  off_ch_timer;
+       struct timer_list option_timer;
+       struct timer_list base_ch_timer;
+       struct timer_list off_ch_timer;
 
-       _timer handshake_timer;
-       _timer alive_timer1;
-       _timer alive_timer2;
+       struct timer_list handshake_timer;
+       struct timer_list alive_timer1;
+       struct timer_list alive_timer2;
        u8 timer_flag;
        u8 alive_count;
 #endif //CONFIG_TDLS
 
        //for A-MPDU TX, ADDBA timeout check
-       _timer addba_retry_timer;
+       struct timer_list addba_retry_timer;
 
        //for A-MPDU Rx reordering buffer control
        struct recv_reorder_ctrl recvreorder_ctrl[16];
index 55645c6..0f2853b 100755 (executable)
@@ -27,7 +27,7 @@
 struct pkt_file {
        struct sk_buff *pkt;
        __kernel_size_t pkt_len;         //the remainder length of the open_file
-       _buffer *cur_buffer;
+       unsigned char *cur_buffer;
        u8 *buf_start;
        u8 *cur_addr;
        __kernel_size_t buf_len;