summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-03-09 00:38:56 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-09 15:46:25 -0800
commite26174864a565bca76657a7a468bc14465822f7c (patch)
tree51ffe20777b1fdce46ba7767581c6226d52eed19 /drivers/staging/rtl8192e
parent9633608f5945629bee9f47190c072fab3ac9b719 (diff)
downloadblackbird-op-linux-e26174864a565bca76657a7a468bc14465822f7c.tar.gz
blackbird-op-linux-e26174864a565bca76657a7a468bc14465822f7c.zip
staging: rtl8192e: Pass priv to UpdateReceivedRateHistogramStatistics8190
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r--drivers/staging/rtl8192e/r8192E_core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/r8192E_core.c b/drivers/staging/rtl8192e/r8192E_core.c
index f4d76314a0c4..ee1fb007abdc 100644
--- a/drivers/staging/rtl8192e/r8192E_core.c
+++ b/drivers/staging/rtl8192e/r8192E_core.c
@@ -4362,11 +4362,10 @@ static void rtl8192_irq_tx_tasklet(unsigned long arg)
/* Record the received data rate */
static void UpdateReceivedRateHistogramStatistics8190(
- struct net_device *dev,
+ struct r8192_priv *priv,
struct ieee80211_rx_stats* pstats
)
{
- struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
u32 rcvType=1; //0: Total, 1:OK, 2:CRC, 3:ICV
u32 rateIndex;
u32 preamble_guardinterval; //1: short preamble/GI, 0: long preamble/GI
@@ -4485,7 +4484,7 @@ static void rtl8192_rx(struct net_device *dev)
/* it is debug only. It should be disabled in released driver.
* 2007.1.11 by Emily
* */
- UpdateReceivedRateHistogramStatistics8190(dev, &stats);
+ UpdateReceivedRateHistogramStatistics8190(priv, &stats);
stats.bIsAMPDU = (pDrvInfo->PartAggr==1);
stats.bFirstMPDU = (pDrvInfo->PartAggr==1) && (pDrvInfo->FirstAGGR==1);
OpenPOWER on IntegriCloud