* Survey data inconsistencies between drivers
@ 2011-01-24 11:29 Helmut Schaa
2011-01-24 14:21 ` John W. Linville
0 siblings, 1 reply; 2+ messages in thread
From: Helmut Schaa @ 2011-01-24 11:29 UTC (permalink / raw)
To: linux-wireless
Hi,
currently there are at least three different survey types implemented in
different mac80211 drivers.
- ath9k always lists the survey data for all channels and always provides
accumulated busy time data. This has the advantage that a simple scan
followed by a suvrey dump will give a nice overview of the different
channel utilization.
- ath5k only lists the active channel but also accumlates the busy time
statistics.
- rt2800 only lists the active channel and only returns relative busy time
values since the last read.
>From a hw perspective all three drivers appear similar, there are some
registers that are cleared on read and contain the busy times since the
last read.
I really like the ath9k approach but implementing it in every driver
sounds like a lot of redundancy.
In order to have consistent survey data between drivers I'd propose the
following approach:
- The driver's get_survey callback only returns relative survey data for the
currently active channel. That means reading the current busy time statistics
from the hw and clearing the appropriate counters.
- mac80211 would keep track of accumulating the gathered survey data.
- mac80211 would read the survey data before each channel change and update
the approriate channel's survey data just as ath9k does right now.
Any arguments against such a unification?
Thanks,
Helmut
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Survey data inconsistencies between drivers
2011-01-24 11:29 Survey data inconsistencies between drivers Helmut Schaa
@ 2011-01-24 14:21 ` John W. Linville
0 siblings, 0 replies; 2+ messages in thread
From: John W. Linville @ 2011-01-24 14:21 UTC (permalink / raw)
To: Helmut Schaa; +Cc: linux-wireless
On Mon, Jan 24, 2011 at 12:29:49PM +0100, Helmut Schaa wrote:
> In order to have consistent survey data between drivers I'd propose the
> following approach:
>
> - The driver's get_survey callback only returns relative survey data for the
> currently active channel. That means reading the current busy time statistics
> from the hw and clearing the appropriate counters.
> - mac80211 would keep track of accumulating the gathered survey data.
> - mac80211 would read the survey data before each channel change and update
> the approriate channel's survey data just as ath9k does right now.
>
> Any arguments against such a unification?
Sounds reasonable to me.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-24 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-24 11:29 Survey data inconsistencies between drivers Helmut Schaa
2011-01-24 14:21 ` John W. Linville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).