Search Linux Wireless

Re: [PATCH 4/5] nl80211/mac80211: Add channel utilization to survey

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 7, 2010 at 9:06 AM, Bruno Randolf <br1@xxxxxxxxxxx> wrote:
> which units do you have for the busy time? what about other drivers?
> in ath[59]k we have it as cycles (which is about 1/44000 of a second,
> depending on the mode). so it counts up rather fast.

We've got the busy time in [us] since the last read (the register is
cleared on read).

> some absolute cumulative value would be better, so several userspace processes
> can poll and do their own averaging or percentage calculations.
>
> but which units to use? what would be a good way of solving that?
> any ideas???

That's what 802.11-2007 tells us in regard to the BSS Load element:

<citation>
((channel busy time/(dot11ChannelUtilizationBeaconIntervals *
dot11BeaconPeriod * 1024)) * 255),

where channel busy time is defined to be the number of microseconds
during which the CS mechanism, as
defined in 9.2.1, has indicated a channel busy indication, and the MIB
attribute dot11ChannelUtilization-
BeaconIntervals represents the number of consecutive beacon intervals
during which the channel busy time
is measured. The default value of
dot11ChannelUtilizationBeaconIntervals is defined in Annex D.
</citation>

So, I guess it makes sense to just return the calculated channel
utilization value (u8)
and keep it up to date within the driver.

mac80211 could pass dot11ChannelUtilizationBeaconIntervals (using the default of
16 for now) to the drivers and the drivers would report the calculated value.

Helmut
--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux