staging: rtl8192e: Pass priv to rtl8192_rx
authorMike McCormack <mikem@ring3k.org>
Tue, 8 Mar 2011 15:40:44 +0000 (00:40 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Mar 2011 23:46:28 +0000 (15:46 -0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E_core.c

index f742eb2628dc6aa8c25e25dccccc0db62321f319..a3fcbae8365cdc35615375690bff6a253d0a57b4 100644 (file)
@@ -4418,9 +4418,8 @@ static void UpdateReceivedRateHistogramStatistics8190(
        priv->stats.received_rate_histogram[rcvType][rateIndex]++;
 }
 
-static void rtl8192_rx(struct net_device *dev)
+static void rtl8192_rx(struct r8192_priv *priv)
 {
-    struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
     struct ieee80211_hdr_1addr *ieee80211_hdr = NULL;
     bool unicast_packet = false;
     struct ieee80211_rx_stats stats = {
@@ -4551,7 +4550,7 @@ done:
 static void rtl8192_irq_rx_tasklet(unsigned long arg)
 {
        struct r8192_priv *priv = (struct r8192_priv*) arg;
-       rtl8192_rx(priv->ieee80211->dev);
+       rtl8192_rx(priv);
        /* unmask RDU */
        write_nic_dword(priv, INTA_MASK, read_nic_dword(priv, INTA_MASK) | IMR_RDU);
 }