Gmane
From: sritej s <sritejv <at> gmail.com>
Subject: Retries along a link
Newsgroups: gmane.linux.drivers.madwifi.devel
Date: 2008-07-21 03:15:07 GMT (24 weeks, 5 days and 27 minutes ago)

Hi All,

I am attempting to keep a track of retries,packet drops and original data tx's along a link.I have made the following changes in function ath_tx_processq(in if_ath.c)

I am not sure wether the changes are correct as packet drop count showed by 'ping stats' do not always match with that of mystats.Also the total data transmissions is always shown to me more than the data packets captured by the sniffer.

ni->ni_stats.ns_tx_tries:        total data tx along a link(original and retries)
ni->ni_stats.ns_tx_drops :     packets dropped after a number of retries along a link
ni->ni_stats.ns_tx_packets:   original tx


static void
ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
{
.
.
.ni = bf->bf_node;
        if (ni != NULL) {
                               
                                ni->ni_stats.ns_tx_tries=(ni->ni_stats.ns_tx_tries)+(ds->ds_txstat.ts_longretry);
                                (ni->ni_stats.ns_tx_tries)++;//original tx + number of retries
                                if(ds->ds_txstat.ts_status)
                                       (ni->ni_stats.ns_tx_drops)++;//packets dropped after several retries
                                (ni->ni_stats.ns_tx_packets)++;//original tx

                                  .

                                 }

}
Thanks,
Sritej

p.s this is the first piece of code i have ever written in kernel space :)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Madwifi-devel mailing list
Madwifi-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-devel