]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: rtl8192e: Convert typedef RT_HIGH_THROUGHPUT to struct rt_hi_throughput
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 01:22:19 +0000 (20:22 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 04:15:26 +0000 (23:15 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtl_dm.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_module.c
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_softmac.c
drivers/staging/rtl8192e/rtllib_tx.c

index 3918705d07f5f54c0f95fb5315bd107738f6458e..cfa7e81beea3d3cbeae62d4fd8fe83f4842c1c1e 100644 (file)
@@ -213,7 +213,7 @@ typedef enum _HT_AGGRE_MODE_E{
 }HT_AGGRE_MODE_E, *PHT_AGGRE_MODE_E;
 
 
-typedef struct _RT_HIGH_THROUGHPUT{
+struct rt_hi_throughput {
        u8                              bEnableHT;
        u8                              bCurrentHTSupport;
 
@@ -295,7 +295,7 @@ typedef struct _RT_HIGH_THROUGHPUT{
        u8      WAIotTH;
 
        u8                              bAcceptAddbaReq;
-} __attribute__ ((packed)) RT_HIGH_THROUGHPUT, *PRT_HIGH_THROUGHPUT;
+} __packed;
 
 
 
index a457e302abc2f5ed1515f1b8fe5ba79c4741526b..94ec155c7ba4d13df39b965b8447ac6aaa7f1128 100644 (file)
@@ -59,7 +59,7 @@ static u8 CISCO_BROADCOM[3] = {0x00, 0x17, 0x94};
 static u8 LINKSYS_MARVELL_4400N[3] = {0x00, 0x14, 0xa4};
 void HTUpdateDefaultSetting(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        pHTInfo->bAcceptAddbaReq = 1;
 
@@ -182,7 +182,7 @@ void HTDebugHTInfo(u8*      InfoIE, u8* TitleString)
 bool IsHTHalfNmode40Bandwidth(struct rtllib_device* ieee)
 {
        bool                    retValue = false;
-       PRT_HIGH_THROUGHPUT      pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        if (pHTInfo->bCurrentHTSupport == false )
                retValue = false;
@@ -201,7 +201,7 @@ bool IsHTHalfNmode40Bandwidth(struct rtllib_device* ieee)
 bool IsHTHalfNmodeSGI(struct rtllib_device* ieee, bool is40MHz)
 {
        bool                    retValue = false;
-       PRT_HIGH_THROUGHPUT      pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        if (pHTInfo->bCurrentHTSupport == false )
                retValue = false;
@@ -240,7 +240,7 @@ u16 HTHalfMcsToDataRate(struct rtllib_device* ieee, u8      nMcsRate)
 
 u16 HTMcsToDataRate( struct rtllib_device* ieee, u8 nMcsRate)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        u8      is40MHz = (pHTInfo->bCurBW40MHz)?1:0;
        u8      isShortGI = (pHTInfo->bCurBW40MHz)?
@@ -318,7 +318,7 @@ bool IsHTHalfNmodeAPs(struct rtllib_device* ieee)
 
 void HTIOTPeerDetermine(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        struct rtllib_network* net = &ieee->current_network;
        if (net->bssht.bdRT2RTAggregation){
                pHTInfo->IOTPeer = HT_IOT_PEER_REALTEK;
@@ -409,7 +409,7 @@ u8 HTIOTActIsMgntUseCCK6M(struct rtllib_device* ieee,struct rtllib_network *netw
 u8
 HTIOTActWAIOTBroadcom(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        u8              retValue = false;
        u8              boundary=59;
 
@@ -494,7 +494,7 @@ u8
 HTIOTActDisableShortGI(struct rtllib_device* ieee,struct rtllib_network *network)
 {
        u8      retValue = 0;
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        if (pHTInfo->IOTPeer==HT_IOT_PEER_RALINK)
        {
@@ -515,7 +515,7 @@ HTIOTActDisableHighPower(struct rtllib_device* ieee,struct rtllib_network *netwo
 void
 HTIOTActDetermineRaFunc(struct rtllib_device* ieee,    bool    bPeerRx2ss)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        pHTInfo->IOTRaFunc &= HT_IOT_RAFUNC_DISABLE_ALL;
 
        if (pHTInfo->IOTPeer == HT_IOT_PEER_RALINK && !bPeerRx2ss)
@@ -573,7 +573,7 @@ HTIOTActIsNullDataPowerSaving(struct rtllib_device* ieee,struct rtllib_network *
 }
 
 void HTResetIOTSetting(
-       PRT_HIGH_THROUGHPUT             pHTInfo
+       struct rt_hi_throughput *pHTInfo
 )
 {
        pHTInfo->IOTAction = 0;
@@ -584,7 +584,7 @@ void HTResetIOTSetting(
 
 void HTConstructCapabilityElement(struct rtllib_device* ieee, u8* posHTCap, u8* len, u8 IsEncrypt, bool bAssoc)
 {
-       PRT_HIGH_THROUGHPUT     pHT = ieee->pHTInfo;
+       struct rt_hi_throughput *pHT = ieee->pHTInfo;
        PHT_CAPABILITY_ELE      pCapELE = NULL;
 
        if ((posHTCap == NULL) || (pHT == NULL))
@@ -675,7 +675,7 @@ void HTConstructCapabilityElement(struct rtllib_device* ieee, u8* posHTCap, u8*
 }
 void HTConstructInfoElement(struct rtllib_device* ieee, u8* posHTInfo, u8* len, u8 IsEncrypt)
 {
-       PRT_HIGH_THROUGHPUT     pHT = ieee->pHTInfo;
+       struct rt_hi_throughput *pHT = ieee->pHTInfo;
        PHT_INFORMATION_ELE             pHTInfoEle = (PHT_INFORMATION_ELE)posHTInfo;
        if ((posHTInfo == NULL) || (pHTInfoEle == NULL))
        {
@@ -834,7 +834,7 @@ u8 HTFilterMCSRate( struct rtllib_device* ieee, u8* pSupportMCS, u8* pOperateMCS
 void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH   Bandwidth, HT_EXTCHNL_OFFSET    Offset);
 void HTOnAssocRsp(struct rtllib_device *ieee)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        PHT_CAPABILITY_ELE              pPeerHTCap = NULL;
        PHT_INFORMATION_ELE             pPeerHTInfo = NULL;
        u16     nMaxAMSDUSize = 0;
@@ -946,7 +946,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
 void HTSetConnectBwModeCallback(struct rtllib_device* ieee);
 void HTInitializeHTInfo(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        RTLLIB_DEBUG(RTLLIB_DL_HT, "===========>%s()\n", __func__);
        pHTInfo->bCurrentHTSupport = false;
@@ -1008,7 +1008,7 @@ void HTInitializeBssDesc(PBSS_HT pBssHT)
 
 void HTResetSelfAndSavePeerSetting(struct rtllib_device* ieee, struct rtllib_network * pNetwork)
 {
-       PRT_HIGH_THROUGHPUT             pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        u8      bIOTAction = 0;
 
        RTLLIB_DEBUG(RTLLIB_DL_HT, "==============>%s()\n", __func__);
@@ -1077,7 +1077,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device* ieee,    struct rtllib_net
 
 void HTUpdateSelfAndPeerSetting(struct rtllib_device* ieee,    struct rtllib_network * pNetwork)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        PHT_INFORMATION_ELE             pPeerHTInfo = (PHT_INFORMATION_ELE)pNetwork->bssht.bdHTInfoBuf;
 
        if (pHTInfo->bCurrentHTSupport)
@@ -1090,7 +1090,7 @@ void HTUpdateSelfAndPeerSetting(struct rtllib_device* ieee,       struct rtllib_networ
 
 void HTUseDefaultSetting(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        if (pHTInfo->bEnableHT) {
                pHTInfo->bCurrentHTSupport = true;
@@ -1139,7 +1139,7 @@ u8 HTCCheck(struct rtllib_device* ieee, u8*       pFrame)
 
 void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH   Bandwidth, HT_EXTCHNL_OFFSET    Offset)
 {
-       PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        if (pHTInfo->bRegBW40MHz == false)
                return;
@@ -1178,7 +1178,7 @@ void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH      Bandwidth,
 
 void HTSetConnectBwModeCallback(struct rtllib_device* ieee)
 {
-       PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        RTLLIB_DEBUG(RTLLIB_DL_HT, "======>%s()\n", __func__);
        if (pHTInfo->bCurBW40MHz)
index ca3001b257cb1a4d880e5247c39f2fc715859f22..696e6c260c53699236792880b8c12f999b9ca759 100644 (file)
@@ -294,7 +294,7 @@ extern void init_rate_adaptive(struct net_device * dev)
 static void dm_check_rate_adaptive(struct net_device * dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_HIGH_THROUGHPUT     pHTInfo = priv->rtllib->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
        prate_adaptive                  pra = (prate_adaptive)&priv->rate_adaptive;
        u32                                             currentRATR, targetRATR = 0;
        u32                                             LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0;
@@ -2493,7 +2493,7 @@ static void dm_check_edca_turbo(
        struct net_device * dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_HIGH_THROUGHPUT     pHTInfo = priv->rtllib->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
 
        static unsigned long                    lastTxOkCnt = 0;
        static unsigned long                    lastRxOkCnt = 0;
@@ -2621,7 +2621,7 @@ static void dm_init_ctstoself(struct net_device * dev)
 static void dm_ctstoself(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv((struct net_device *)dev);
-       PRT_HIGH_THROUGHPUT     pHTInfo = priv->rtllib->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
        static unsigned long                            lastTxOkCnt = 0;
        static unsigned long                            lastRxOkCnt = 0;
        unsigned long                                           curTxOkCnt = 0;
@@ -2655,7 +2655,7 @@ static    void
 dm_Init_WA_Broadcom_IOT(struct net_device * dev)
 {
        struct r8192_priv *priv = rtllib_priv((struct net_device *)dev);
-       PRT_HIGH_THROUGHPUT     pHTInfo = priv->rtllib->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
 
        pHTInfo->bWAIotBroadcom = false;
        pHTInfo->WAIotTH = WAIotTHVal;
index e9317d267f34478e3f1042e31f60a35a3b621155..40e20db379555c91db01553922cb056d610ca920 100644 (file)
@@ -2139,7 +2139,7 @@ struct rtllib_device {
        RT_RF_CHANGE_SOURCE     RfOffReason;
        bool is_set_key;
        bool wx_set_enc;
-       PRT_HIGH_THROUGHPUT     pHTInfo;
+       struct rt_hi_throughput *pHTInfo;
        spinlock_t bw_spinlock;
 
        spinlock_t reorder_spinlock;
@@ -2905,7 +2905,7 @@ extern u8 HTGetHighestMCSRate(struct rtllib_device* ieee, u8* pMCSRateSet, u8* p
 extern u8 MCS_FILTER_ALL[];
 extern u16 MCS_DATA_RATE[2][2][77] ;
 extern u8 HTCCheck(struct rtllib_device* ieee, u8*   pFrame);
-extern void HTResetIOTSetting(PRT_HIGH_THROUGHPUT  pHTInfo);
+extern void HTResetIOTSetting(struct rt_hi_throughput *pHTInfo);
 extern bool IsHTHalfNmodeAPs(struct rtllib_device* ieee);
 extern u16 HTHalfMcsToDataRate(struct rtllib_device* ieee,  u8      nMcsRate);
 extern u16 HTMcsToDataRate( struct rtllib_device* ieee, u8 nMcsRate);
index 3462e44ce230d0904a4b6d21daa43ecb4cff2520..65034a4588d20d5cbdbcf9e1bc6ed3ac0e8b7509 100644 (file)
@@ -162,7 +162,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
        memset(ieee->swcamtable,0,sizeof(SW_CAM_TABLE)*32);
        rtllib_softmac_init(ieee);
 
-       ieee->pHTInfo = (RT_HIGH_THROUGHPUT*)kzalloc(sizeof(RT_HIGH_THROUGHPUT), GFP_KERNEL);
+       ieee->pHTInfo = (struct rt_hi_throughput*)kzalloc(sizeof(struct rt_hi_throughput), GFP_KERNEL);
        if (ieee->pHTInfo == NULL)
        {
                RTLLIB_DEBUG(RTLLIB_DL_ERR, "can't alloc memory for HTInfo\n");
index 3c8c11c99230121a2f44ceb759d466ac5ad328d8..a6a27847adac6f26fdda8783ae58130a791f5ab4 100644 (file)
@@ -562,7 +562,7 @@ void RxReorderIndicatePacket( struct rtllib_device *ieee,
                struct rx_ts_record *pTS,
                u16                     SeqNum)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        PRX_REORDER_ENTRY       pReorderEntry = NULL;
        struct rtllib_rxb* prxbIndicateArray[REORDER_WIN_SIZE];
        u8                      WinSize = pHTInfo->RxReorderWinSize;
index e4fdcbd376d441756f00143f0d86f055821c8c46..7930a96375756bfff5fd897fe64b3eb2391b4285 100644 (file)
@@ -212,7 +212,7 @@ MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
 
 u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)
 {
-       PRT_HIGH_THROUGHPUT      pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        u8 rate;
 
        if (pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
@@ -884,7 +884,7 @@ static struct sk_buff* rtllib_probe_resp(struct rtllib_device *ieee, u8 *dest)
        u8 tmp_ht_cap_len = 0;
        u8* tmp_ht_info_buf = NULL;
        u8 tmp_ht_info_len = 0;
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        u8* tmp_generic_ie_buf = NULL;
        u8 tmp_generic_ie_len = 0;
 
index dae5df4c732aef83b1266c75c5f9b49cc335f923..dd89b0bebec7514f4fd748faa9d0ffcd0c3b7d2e 100644 (file)
@@ -289,7 +289,7 @@ rtllib_classify(struct sk_buff *skb, u8 bIsAmsdu)
 #define SN_LESS(a, b)          (((a-b)&0x800)!=0)
 void rtllib_tx_query_agg_cap(struct rtllib_device* ieee, struct sk_buff* skb, cb_desc* tcb_desc)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
        struct tx_ts_record *pTxTs = NULL;
        struct rtllib_hdr_1addr* hdr = (struct rtllib_hdr_1addr*)skb->data;
 
@@ -375,7 +375,7 @@ extern void rtllib_qurey_ShortPreambleMode(struct rtllib_device* ieee, cb_desc*
 extern void
 rtllib_query_HTCapShortGI(struct rtllib_device *ieee, cb_desc *tcb_desc)
 {
-       PRT_HIGH_THROUGHPUT             pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        tcb_desc->bUseShortGI           = false;
 
@@ -396,7 +396,7 @@ rtllib_query_HTCapShortGI(struct rtllib_device *ieee, cb_desc *tcb_desc)
 
 void rtllib_query_BandwidthMode(struct rtllib_device* ieee, cb_desc *tcb_desc)
 {
-       PRT_HIGH_THROUGHPUT     pHTInfo = ieee->pHTInfo;
+       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
 
        tcb_desc->bPacketBW = false;
 
@@ -444,7 +444,7 @@ void rtllib_query_protectionmode(struct rtllib_device* ieee, cb_desc* tcb_desc,
        }
        else
        {
-               PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+               struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
                while (true)
                {
                        if (pHTInfo->IOTAction & HT_IOT_ACT_FORCED_CTS2SELF)