Commit 6f22c620 authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Convert typedef rx_fwinfo to struct rx_fwinfo

Remove typedef from struct.
Rename struct.
Rename uses.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent 4f534b36
...@@ -388,7 +388,7 @@ struct rx_desc { ...@@ -388,7 +388,7 @@ struct rx_desc {
};//, *prx_desc; };//, *prx_desc;
typedef struct _rx_fwinfo_819x_pci{ struct rx_fwinfo {
u16 Reserved1:12; u16 Reserved1:12;
u16 PartAggr:1; u16 PartAggr:1;
u16 FirstAGGR:1; u16 FirstAGGR:1;
...@@ -407,6 +407,6 @@ typedef struct _rx_fwinfo_819x_pci{ ...@@ -407,6 +407,6 @@ typedef struct _rx_fwinfo_819x_pci{
u32 TSFL; u32 TSFL;
}rx_fwinfo, *prx_fwinfo; };//, *prx_fwinfo;
#endif #endif
...@@ -1397,7 +1397,7 @@ void rtl8192_query_rxphystatus( ...@@ -1397,7 +1397,7 @@ void rtl8192_query_rxphystatus(
struct r8192_priv * priv, struct r8192_priv * priv,
struct rtllib_rx_stats * pstats, struct rtllib_rx_stats * pstats,
struct rx_desc *pdesc, struct rx_desc *pdesc,
prx_fwinfo pdrvinfo, struct rx_fwinfo *pdrvinfo,
struct rtllib_rx_stats * precord_stats, struct rtllib_rx_stats * precord_stats,
bool bpacket_match_bssid, bool bpacket_match_bssid,
bool bpacket_toself, bool bpacket_toself,
...@@ -1439,7 +1439,7 @@ void rtl8192_query_rxphystatus( ...@@ -1439,7 +1439,7 @@ void rtl8192_query_rxphystatus(
prxpkt = (u8*)pdrvinfo; prxpkt = (u8*)pdrvinfo;
prxpkt += sizeof(rx_fwinfo); prxpkt += sizeof(struct rx_fwinfo);
pcck_buf = (struct phy_sts_cck_819xpci *)prxpkt; pcck_buf = (struct phy_sts_cck_819xpci *)prxpkt;
pofdm_buf = (struct phy_sts_ofdm_819xpci *)prxpkt; pofdm_buf = (struct phy_sts_ofdm_819xpci *)prxpkt;
...@@ -1769,7 +1769,7 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev, ...@@ -1769,7 +1769,7 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev,
struct sk_buff *skb, struct sk_buff *skb,
struct rtllib_rx_stats * pstats, struct rtllib_rx_stats * pstats,
struct rx_desc *pdesc, struct rx_desc *pdesc,
prx_fwinfo pdrvinfo) struct rx_fwinfo *pdrvinfo)
{ {
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
bool bpacket_match_bssid, bpacket_toself; bool bpacket_match_bssid, bpacket_toself;
...@@ -1896,12 +1896,12 @@ bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats ...@@ -1896,12 +1896,12 @@ bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats
} }
return false; return false;
} else { } else {
prx_fwinfo pDrvInfo = NULL; struct rx_fwinfo *pDrvInfo = NULL;
stats->RxDrvInfoSize = pdesc->RxDrvInfoSize; stats->RxDrvInfoSize = pdesc->RxDrvInfoSize;
stats->RxBufShift = ((pdesc->Shift)&0x03); stats->RxBufShift = ((pdesc->Shift)&0x03);
stats->Decrypted = !pdesc->SWDec; stats->Decrypted = !pdesc->SWDec;
pDrvInfo = (rx_fwinfo *)(skb->data + stats->RxBufShift); pDrvInfo = (struct rx_fwinfo *)(skb->data + stats->RxBufShift);
stats->rate = HwRateToMRate90((bool)pDrvInfo->RxHT, (u8)pDrvInfo->RxRate); stats->rate = HwRateToMRate90((bool)pDrvInfo->RxHT, (u8)pDrvInfo->RxRate);
stats->bShortPreamble = pDrvInfo->SPLCP; stats->bShortPreamble = pDrvInfo->SPLCP;
......
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