Changeset 1860

Show
Ignore:
Timestamp:
12/14/06 22:10:42 (2 years ago)
Author:
scottr
Message:

n case FastFrames? (FF) are enabled, 80211stats reports incorrect 'tx_data'
and 'tx_bytes' counters. Statistics are incremented only once, for a first
chained skb only. So if FF enabled one should increment statistics
accordingly for a second (if any) chained skb too.

Signed-off-by: Zilvinas Valinskas <zilvinas@wilibox.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/net80211/ieee80211_output.c

    r1849 r1860  
    11911191                IEEE80211_NODE_STAT(ni, tx_data); 
    11921192                IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen); 
     1193 
     1194#ifdef ATH_SUPERG_FF 
     1195                /* Account for a second skb in the same packet when FF is on */  
     1196                if (skb->next) { 
     1197                        datalen = skb->next->len;        
     1198                        IEEE80211_NODE_STAT(ni, tx_data); 
     1199                        IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen); 
     1200                } 
     1201#endif 
    11931202        } 
    11941203