staging: rtl8192e: Convert typedef BA_PARAM_SET to union ba_param_set
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 15:14:55 +0000 (10:14 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:54:30 +0000 (01:54 -0500)
Remove typedef from union.
Rename union.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtl819x_BA.h
drivers/staging/rtl8192e/rtl819x_BAProc.c

index a868d659f68c206ed8badc23c83c275784f799db..1e2cc2e344af59f6f1b78748c9880bd12672f860 100644 (file)
@@ -45,7 +45,7 @@ union sequence_control {
        }field;
 };
 
-typedef union _BA_PARAM_SET {
+union ba_param_set {
        u8 charData[2];
        u16 shortData;
        struct {
@@ -54,7 +54,7 @@ typedef union _BA_PARAM_SET {
                u16 TID:4;
                u16 BufferSize:10;
        } field;
-} BA_PARAM_SET, *PBA_PARAM_SET;
+};
 
 typedef union _DELBA_PARAM_SET {
        u8 charData[2];
@@ -70,7 +70,7 @@ struct ba_record {
        struct timer_list               Timer;
        u8                              bValid;
        u8                              DialogToken;
-       BA_PARAM_SET            BaParamSet;
+       union ba_param_set BaParamSet;
        u16                             BaTimeoutValue;
        union sequence_control BaStartSeqCtrl;
 };
index 608ea2d7b4abdea4d7629993c99b7f0b67951fb0..6a5d68664e69c1e0b116dc80658a68c33394a5ac 100644 (file)
@@ -241,7 +241,7 @@ int rtllib_rx_ADDBAReq( struct rtllib_device* ieee, struct sk_buff *skb)
        u16 rc = 0;
        u8 * dst = NULL, *pDialogToken = NULL, *tag = NULL;
        struct ba_record *pBA = NULL;
-       PBA_PARAM_SET   pBaParamSet = NULL;
+       union ba_param_set *pBaParamSet = NULL;
        u16* pBaTimeoutVal = NULL;
        union sequence_control *pBaStartSeqCtrl = NULL;
        struct rx_ts_record *pTS = NULL;
@@ -259,7 +259,7 @@ int rtllib_rx_ADDBAReq( struct rtllib_device* ieee, struct sk_buff *skb)
        dst = (u8*)(&req->addr2[0]);
        tag += sizeof( struct rtllib_hdr_3addr);
        pDialogToken = tag + 2;
-       pBaParamSet = (PBA_PARAM_SET)(tag + 3);
+       pBaParamSet = (union ba_param_set *)(tag + 3);
        pBaTimeoutVal = (u16*)(tag + 5);
        pBaStartSeqCtrl = (union sequence_control *)(req + 7);
 
@@ -332,7 +332,7 @@ int rtllib_rx_ADDBARsp( struct rtllib_device* ieee, struct sk_buff *skb)
        struct tx_ts_record *pTS = NULL;
        u8* dst = NULL, *pDialogToken = NULL, *tag = NULL;
        u16* pStatusCode = NULL, *pBaTimeoutVal = NULL;
-       PBA_PARAM_SET           pBaParamSet = NULL;
+       union ba_param_set *pBaParamSet = NULL;
        u16                     ReasonCode;
 
        if (skb->len < sizeof( struct rtllib_hdr_3addr) + 9)
@@ -346,7 +346,7 @@ int rtllib_rx_ADDBARsp( struct rtllib_device* ieee, struct sk_buff *skb)
        tag += sizeof( struct rtllib_hdr_3addr);
        pDialogToken = tag + 2;
        pStatusCode = (u16*)(tag + 3);
-       pBaParamSet = (PBA_PARAM_SET)(tag + 5);
+       pBaParamSet = (union ba_param_set *)(tag + 5);
        pBaTimeoutVal = (u16*)(tag + 7);
 
        RT_TRACE(COMP_DBG, "====>rx ADDBARSP from :"MAC_FMT"\n", MAC_ARG(dst));