On 01/14/2011 05:41 PM, Björn Smedman wrote:
On Fri, Jan 14, 2011 at 7:05 PM, Felix Fietkau<nbd@xxxxxxxxxxx> wrote:
Do we really need all those counters? Wouldn't it be better to iterate over
active interfaces instead?
I think iterating over active interfaces is better, especially if we
set up more fine-graned ah-> variables that make sense in themselves
for stuff like power save and tsf sync. But that's just my two cents.
As an example of something that may be more or less impossible to do
without iteration consider multiple vifs with different beacon
intervals. This could be handled by computing a greatest common
devisor of all beacon intervals and using this for SWBA.
We already iterate when setting the bssid mask. I could have that
method calculate the vif counts with little extra cost. I want to avoid any more
linear iterations over the interface list if possible, so hopefully
I can re-use that one iteration and not add more...
Thanks,
Ben
--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html