Re: [RFC PATCH v4 2/3] mac80211: add periodic monitor for channel busy time

Kalle Valo
2022-06-21T07:29:17Z

Baligh Gasmi <gasmibal@gmail.com> writes:

> Add a worker scheduled periodicaly to calculate the busy time average of
> the current channel.
>
> This will be used in the estimation for expected throughput.
>
> Signed-off-by: Baligh Gasmi <gasmibal@gmail.com>

[...]

> --- a/net/mac80211/iface.c
> +++ b/net/mac80211/iface.c
> @@ -1970,6 +1970,64 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local,
> mutex_unlock(&local->iflist_mtx);
> }
>
> +#define DEFAULT_MONITOR_INTERVAL_MS 1000

I'm worried that polling every second affects power consumption.

--