Ticket #1933: offbyone.diff

File offbyone.diff, 0.5 kB (added by Przemyslaw Bruski, 8 months ago)

patch

  • ath/if_ath.c

    old new  
    82748274                        /* Link to the next, (i + 1)th, desc. if it exists. */ 
    82758275                        ds->ds_link = (tskb->next == NULL) ?  
    82768276                                0 : bf->bf_daddr + ((i + 1) * sizeof(*ds)); 
    8277                         ds->ds_data = (i == 0) ? bf->bf_skbaddr : bf->bf_skbaddrff[i]; 
     8277                        ds->ds_data = (i == 0) ? bf->bf_skbaddr : bf->bf_skbaddrff[i-1]; 
    82788278 
    82798279                        ath_hal_filltxdesc(ah, ds, 
    82808280                                tskb->len,              /* Segment length */