Re: About the statistics
"Wright, Brett" <[email protected]> Mon, 25 Jul 2011 10:40:53 +0800
| Newsgroups | gmane.linux.drivers.madwifi.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I do not think there is an easy way to do this without modifying madwifi. The atheros chips have some profile count registers that do exactly what you want - basically the number of clock cycles that the channel is busy for, etc. I think that ath5k may expose these registers for easy access. Alternatively you could modify madwifi - have a search on the following: #define AR_RCCNT 0x80f4 /* Profile count, receive clear */ #define AR_CCCNT 0x80f8 /* Profile count, cycle counter */ Also, if you goggle these you should find the relevant discussions on the ath5k lists. Hope this is of some help... Brett From: Érico Porto [mailto:[email protected]] Sent: Monday, 25 July 2011 12:10 PM To: [email protected] Subject: Re: [Madwifi-users] About the statistics I believe that if I could understand how the Automate Channel Selection gets it's statistics, I would be able to know if mu channel is iddle or not, and also measure that amount of time, any help or documentation on that? Érico V. Porto On Fri, Jul 8, 2011 at 1:31 PM, Érico Porto <[email protected]> wrote: Any help on how to use the NL80211_CMD_GET_SURVEY would be helpful! Think this will get me the data I am looking for. Érico V. Porto On Thu, Jul 7, 2011 at 10:40 AM, Érico Porto <[email protected]> wrote: Hello, I want to look at my channel from my mac for an amount of time X and measure the idle time Y, so I can use the ratio Y/X to do some maths... Do you guys know an easy way of doing this in a madwifi router? I have full ssh access. I tried looking at the /sys/bus/pci/drivers/ath_pci/0000:00:11.0/net:ath0/statistics , but even though I was seeing other networks at the same channel I was - with iwlist ath0 scan - I was at 0 in all rx statistics... Perhaps I need to make the interface transparent in some way. thanks Érico V. Porto ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Madwifi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/madwifi-users