Am Donnerstag 07 Oktober 2010 schrieb Johannes Berg:
> On Thu, 2010-10-07 at 09:44 +0200, Helmut Schaa wrote:
> 
> > So, I guess it makes sense to just return the calculated channel
> > utilization value (u8)
> > and keep it up to date within the driver.
> 
> Not good, that means drivers implementing this will have to wake the CPU
> to do calculations even if nobody cares.

You're obviously right. But that would be the same if mac80211 would do
the calculation. And if we would only calculate it when the survey is
requested the measurement window could be very large or very small which
both might be unwanted.

This could also introduce problems related to register overflows. Since
on rt2800 the register (32bit) is in units of [us] it would overflow after
a bit more then one hour making the calculation flawed in that (maybe
unusual) case.

Nevertheless I fully agree that it doesn't make sense to always calculate
the busy time values if nobody actually needs it. But if somebody cares it
would be nice to have it as a percentage value.

Helmut
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to