Commit 2c47ae28 authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Convert typedef RX_TS_RECORD to struct rx_ts_record

Remove typedef from struct.
Rename struct.
Rename uses.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent 60554f2b
...@@ -53,7 +53,7 @@ u8 TxTsDeleteBA( struct rtllib_device* ieee, struct tx_ts_record *pTxTs) ...@@ -53,7 +53,7 @@ u8 TxTsDeleteBA( struct rtllib_device* ieee, struct tx_ts_record *pTxTs)
return bSendDELBA; return bSendDELBA;
} }
u8 RxTsDeleteBA( struct rtllib_device* ieee, PRX_TS_RECORD pRxTs) u8 RxTsDeleteBA( struct rtllib_device* ieee, struct rx_ts_record *pRxTs)
{ {
PBA_RECORD pBa = &pRxTs->RxAdmittedBARecord; PBA_RECORD pBa = &pRxTs->RxAdmittedBARecord;
u8 bSendDELBA = false; u8 bSendDELBA = false;
...@@ -244,7 +244,7 @@ int rtllib_rx_ADDBAReq( struct rtllib_device* ieee, struct sk_buff *skb) ...@@ -244,7 +244,7 @@ int rtllib_rx_ADDBAReq( struct rtllib_device* ieee, struct sk_buff *skb)
PBA_PARAM_SET pBaParamSet = NULL; PBA_PARAM_SET pBaParamSet = NULL;
u16* pBaTimeoutVal = NULL; u16* pBaTimeoutVal = NULL;
PSEQUENCE_CONTROL pBaStartSeqCtrl = NULL; PSEQUENCE_CONTROL pBaStartSeqCtrl = NULL;
PRX_TS_RECORD pTS = NULL; struct rx_ts_record *pTS = NULL;
if (skb->len < sizeof( struct rtllib_hdr_3addr) + 9) if (skb->len < sizeof( struct rtllib_hdr_3addr) + 9)
{ {
...@@ -457,7 +457,7 @@ int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb) ...@@ -457,7 +457,7 @@ int rtllib_rx_DELBA(struct rtllib_device* ieee,struct sk_buff *skb)
if (pDelBaParamSet->field.Initiator == 1) if (pDelBaParamSet->field.Initiator == 1)
{ {
PRX_TS_RECORD pRxTs; struct rx_ts_record *pRxTs;
if ( !GetTs( if ( !GetTs(
ieee, ieee,
...@@ -544,7 +544,7 @@ TsInitDelBA( struct rtllib_device* ieee, PTS_COMMON_INFO pTsCommonInfo, TR_SELEC ...@@ -544,7 +544,7 @@ TsInitDelBA( struct rtllib_device* ieee, PTS_COMMON_INFO pTsCommonInfo, TR_SELEC
} }
else if (TxRxSelect == RX_DIR) else if (TxRxSelect == RX_DIR)
{ {
PRX_TS_RECORD pRxTs = (PRX_TS_RECORD)pTsCommonInfo; struct rx_ts_record *pRxTs = (struct rx_ts_record *)pTsCommonInfo;
if (RxTsDeleteBA(ieee, pRxTs)) if (RxTsDeleteBA(ieee, pRxTs))
rtllib_send_DELBA( rtllib_send_DELBA(
ieee, ieee,
...@@ -578,7 +578,7 @@ void TxBaInactTimeout(unsigned long data) ...@@ -578,7 +578,7 @@ void TxBaInactTimeout(unsigned long data)
void RxBaInactTimeout(unsigned long data) void RxBaInactTimeout(unsigned long data)
{ {
PRX_TS_RECORD pRxTs = (PRX_TS_RECORD)data; struct rx_ts_record *pRxTs = (struct rx_ts_record *)data;
struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]); struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]);
RxTsDeleteBA(ieee, pRxTs); RxTsDeleteBA(ieee, pRxTs);
......
...@@ -55,7 +55,7 @@ struct tx_ts_record { ...@@ -55,7 +55,7 @@ struct tx_ts_record {
u8 num; u8 num;
}; };
typedef struct _RX_TS_RECORD { struct rx_ts_record {
TS_COMMON_INFO TsCommonInfo; TS_COMMON_INFO TsCommonInfo;
u16 RxIndicateSeq; u16 RxIndicateSeq;
u16 RxTimeoutIndicateSeq; u16 RxTimeoutIndicateSeq;
...@@ -65,7 +65,7 @@ typedef struct _RX_TS_RECORD { ...@@ -65,7 +65,7 @@ typedef struct _RX_TS_RECORD {
u16 RxLastSeqNum; u16 RxLastSeqNum;
u8 RxLastFragNum; u8 RxLastFragNum;
u8 num; u8 num;
} RX_TS_RECORD, *PRX_TS_RECORD; };
#endif #endif
...@@ -31,7 +31,7 @@ void TsInactTimeout(unsigned long data) ...@@ -31,7 +31,7 @@ void TsInactTimeout(unsigned long data)
void RxPktPendingTimeout(unsigned long data) void RxPktPendingTimeout(unsigned long data)
{ {
PRX_TS_RECORD pRxTs = (PRX_TS_RECORD)data; struct rx_ts_record *pRxTs = (struct rx_ts_record *)data;
struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]); struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]);
PRX_REORDER_ENTRY pReorderEntry = NULL; PRX_REORDER_ENTRY pReorderEntry = NULL;
...@@ -123,7 +123,7 @@ void ResetTxTsEntry(struct tx_ts_record *pTS) ...@@ -123,7 +123,7 @@ void ResetTxTsEntry(struct tx_ts_record *pTS)
ResetBaEntry(&pTS->TxPendingBARecord); ResetBaEntry(&pTS->TxPendingBARecord);
} }
void ResetRxTsEntry(PRX_TS_RECORD pTS) void ResetRxTsEntry(struct rx_ts_record *pTS)
{ {
ResetTsCommonInfo(&pTS->TsCommonInfo); ResetTsCommonInfo(&pTS->TsCommonInfo);
pTS->RxIndicateSeq = 0xffff; pTS->RxIndicateSeq = 0xffff;
...@@ -134,7 +134,7 @@ void ResetRxTsEntry(PRX_TS_RECORD pTS) ...@@ -134,7 +134,7 @@ void ResetRxTsEntry(PRX_TS_RECORD pTS)
void TSInitialize(struct rtllib_device *ieee) void TSInitialize(struct rtllib_device *ieee)
{ {
struct tx_ts_record *pTxTS = ieee->TxTsRecord; struct tx_ts_record *pTxTS = ieee->TxTsRecord;
PRX_TS_RECORD pRxTS = ieee->RxTsRecord; struct rx_ts_record *pRxTS = ieee->RxTsRecord;
PRX_REORDER_ENTRY pRxReorderEntry = ieee->RxReorderEntry; PRX_REORDER_ENTRY pRxReorderEntry = ieee->RxReorderEntry;
u8 count = 0; u8 count = 0;
RTLLIB_DEBUG(RTLLIB_DL_TS, "==========>%s()\n", __func__); RTLLIB_DEBUG(RTLLIB_DL_TS, "==========>%s()\n", __func__);
...@@ -402,7 +402,7 @@ bool GetTs( ...@@ -402,7 +402,7 @@ bool GetTs(
ResetTxTsEntry(tmp); ResetTxTsEntry(tmp);
} }
else{ else{
PRX_TS_RECORD tmp = container_of(*ppTS, RX_TS_RECORD, TsCommonInfo); struct rx_ts_record *tmp = container_of(*ppTS, struct rx_ts_record, TsCommonInfo);
ResetRxTsEntry(tmp); ResetRxTsEntry(tmp);
} }
...@@ -445,7 +445,7 @@ void RemoveTsEntry( ...@@ -445,7 +445,7 @@ void RemoveTsEntry(
if (TxRxSelect == RX_DIR) if (TxRxSelect == RX_DIR)
{ {
PRX_REORDER_ENTRY pRxReorderEntry; PRX_REORDER_ENTRY pRxReorderEntry;
PRX_TS_RECORD pRxTS = (PRX_TS_RECORD)pTs; struct rx_ts_record *pRxTS = (struct rx_ts_record *)pTs;
if (timer_pending(&pRxTS->RxPktPendingTimer)) if (timer_pending(&pRxTS->RxPktPendingTimer))
del_timer_sync(&pRxTS->RxPktPendingTimer); del_timer_sync(&pRxTS->RxPktPendingTimer);
......
...@@ -2164,7 +2164,7 @@ struct rtllib_device { ...@@ -2164,7 +2164,7 @@ struct rtllib_device {
struct list_head Rx_TS_Admit_List; struct list_head Rx_TS_Admit_List;
struct list_head Rx_TS_Pending_List; struct list_head Rx_TS_Pending_List;
struct list_head Rx_TS_Unused_List; struct list_head Rx_TS_Unused_List;
RX_TS_RECORD RxTsRecord[TOTAL_TS_NUM]; struct rx_ts_record RxTsRecord[TOTAL_TS_NUM];
RX_REORDER_ENTRY RxReorderEntry[128]; RX_REORDER_ENTRY RxReorderEntry[128];
struct list_head RxReorder_Unused_List; struct list_head RxReorder_Unused_List;
u8 ForcedPriority; u8 ForcedPriority;
...@@ -2993,7 +2993,7 @@ bool rtllib_MgntDisconnect(struct rtllib_device* rtllib,u8 asRsn); ...@@ -2993,7 +2993,7 @@ bool rtllib_MgntDisconnect(struct rtllib_device* rtllib,u8 asRsn);
* ieee handler to refer to it. * ieee handler to refer to it.
*/ */
extern void rtllib_update_active_chan_map(struct rtllib_device *ieee); extern void rtllib_update_active_chan_map(struct rtllib_device *ieee);
extern void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, PRX_TS_RECORD pTS); extern void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, struct rx_ts_record *pTS);
extern int rtllib_data_xmit(struct sk_buff *skb, struct net_device *dev); extern int rtllib_data_xmit(struct sk_buff *skb, struct net_device *dev);
extern int rtllib_parse_info_param(struct rtllib_device *ieee, extern int rtllib_parse_info_param(struct rtllib_device *ieee,
struct rtllib_info_element *info_element, struct rtllib_info_element *info_element,
......
...@@ -447,7 +447,7 @@ static int is_duplicate_packet(struct rtllib_device *ieee, ...@@ -447,7 +447,7 @@ static int is_duplicate_packet(struct rtllib_device *ieee,
} }
bool bool
AddReorderEntry( AddReorderEntry(
PRX_TS_RECORD pTS, struct rx_ts_record *pTS,
PRX_REORDER_ENTRY pReorderEntry PRX_REORDER_ENTRY pReorderEntry
) )
{ {
...@@ -527,7 +527,7 @@ void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb** prx ...@@ -527,7 +527,7 @@ void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb** prx
} }
void void
rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, PRX_TS_RECORD pTS) rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, struct rx_ts_record *pTS)
{ {
PRX_REORDER_ENTRY pRxReorderEntry; PRX_REORDER_ENTRY pRxReorderEntry;
struct rtllib_rxb* RfdArray[REORDER_WIN_SIZE]; struct rtllib_rxb* RfdArray[REORDER_WIN_SIZE];
...@@ -559,7 +559,7 @@ rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, PRX_TS_RECORD pTS) ...@@ -559,7 +559,7 @@ rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, PRX_TS_RECORD pTS)
void RxReorderIndicatePacket( struct rtllib_device *ieee, void RxReorderIndicatePacket( struct rtllib_device *ieee,
struct rtllib_rxb* prxb, struct rtllib_rxb* prxb,
PRX_TS_RECORD pTS, struct rx_ts_record *pTS,
u16 SeqNum) u16 SeqNum)
{ {
PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo; PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
...@@ -896,7 +896,7 @@ int rtllib_rx_check_duplicate(struct rtllib_device *ieee, struct sk_buff *skb, u ...@@ -896,7 +896,7 @@ int rtllib_rx_check_duplicate(struct rtllib_device *ieee, struct sk_buff *skb, u
} }
} }
} else { } else {
PRX_TS_RECORD pRxTS = NULL; struct rx_ts_record *pRxTS = NULL;
if (GetTs(ieee, (PTS_COMMON_INFO*) &pRxTS, hdr->addr2, if (GetTs(ieee, (PTS_COMMON_INFO*) &pRxTS, hdr->addr2,
(u8)Frame_QoSTID((u8*)(skb->data)), RX_DIR, true)) { (u8)Frame_QoSTID((u8*)(skb->data)), RX_DIR, true)) {
if ((fc & (1<<11)) && (frag == pRxTS->RxLastFragNum) && if ((fc & (1<<11)) && (frag == pRxTS->RxLastFragNum) &&
...@@ -1253,7 +1253,7 @@ int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb, ...@@ -1253,7 +1253,7 @@ int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
struct rtllib_hdr_4addr *hdr = (struct rtllib_hdr_4addr *)skb->data; struct rtllib_hdr_4addr *hdr = (struct rtllib_hdr_4addr *)skb->data;
struct rtllib_crypt_data *crypt = NULL; struct rtllib_crypt_data *crypt = NULL;
struct rtllib_rxb* rxb = NULL; struct rtllib_rxb* rxb = NULL;
PRX_TS_RECORD pTS = NULL; struct rx_ts_record *pTS = NULL;
u16 fc, sc, SeqNum = 0; u16 fc, sc, SeqNum = 0;
u8 type, stype, multicast = 0, unicast = 0, nr_subframes = 0, TID = 0; u8 type, stype, multicast = 0, unicast = 0, nr_subframes = 0, TID = 0;
u8 dst[ETH_ALEN], src[ETH_ALEN], bssid[ETH_ALEN] = {0}, *payload; u8 dst[ETH_ALEN], src[ETH_ALEN], bssid[ETH_ALEN] = {0}, *payload;
......
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