Changeset 2383

Show
Ignore:
Timestamp:
05/28/07 19:07:04 (2 years ago)
Author:
mentor
Message:

Another Fast Frame capture/free fix.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ath/if_ath.c

    r2382 r2383  
    72767276                } 
    72777277 
    7278                 DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: free skb %p\n", __func__, bf->bf_skb); 
    7279  
    7280                 ath_tx_capture(sc->sc_dev, bf, bf->bf_skb, tsf); 
     7278                { 
     7279                        struct sk_buff *tskb = NULL, *skb = bf->bf_skb; 
    72817280#ifdef ATH_SUPERG_FF 
    7282                 { 
     7281                        unsigned int i; 
     7282#endif 
     7283 
     7284                        tskb = skb->next; 
     7285                        DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: free skb %p\n", __func__, bf->bf_skb); 
     7286                        ath_tx_capture(sc->sc_dev, bf, skb, tsf); 
     7287                        skb = tskb; 
     7288 
     7289#ifdef ATH_SUPERG_FF 
    72837290                        /* Handle every skb after the first one - these are FF extra 
    72847291                         * buffers */ 
    7285                         struct sk_buff *tskb = NULL, *skb = bf->bf_skb->next; 
    7286                         unsigned int i; 
    7287  
    72887292                        for (i = 0; i < bf->bf_numdescff; i++) { 
    72897293                                tskb = skb->next; 
     
    72957299                                skb = tskb; 
    72967300                        } 
    7297                 } 
    7298                 bf->bf_numdescff = 0; 
    7299 #endif 
     7301                       bf->bf_numdescff = 0; 
     7302#endif 
     7303                } 
    73007304                 
    73017305                bf->bf_skb = NULL;