Changeset 2258

Show
Ignore:
Timestamp:
04/09/07 18:41:15 (2 years ago)
Author:
mentor
Message:

Change FF skb buffer cleanup code, so that we start from the correct buffer.

Files:

Legend:

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

    r2239 r2258  
    73217321#ifdef ATH_SUPERG_FF 
    73227322                { 
    7323                         struct sk_buff *skbnext = bf->bf_skb, *skb = NULL; 
     7323                        /* Handle every skb after the first one - these are FF extra 
     7324                         * buffers */ 
     7325                        struct sk_buff *tskb = NULL, *skb = bf->bf_skb->next; 
    73247326                        unsigned int i; 
    73257327 
    73267328                        for (i = 0; i < bf->bf_numdescff; i++) { 
    7327                                 skb = skbnext; 
    7328                                 skbnext = skb->next; 
     7329                                tskb = skb->next; 
    73297330                                bus_unmap_single(sc->sc_bdev, bf->bf_skbaddrff[i], 
    73307331                                                skb->len, BUS_DMA_TODEVICE); 
     
    73327333                                        __func__, skb); 
    73337334                                ath_tx_capture(sc->sc_dev, ds, skb); 
     7335                                skb = tskb; 
    73347336                        } 
    73357337                }