[PATCH v2 1/4] hostapd: Move CSA parameters to hostapd_data
Jouni Malinen
j
Sat Jun 28 01:03:05 PDT 2014
On Fri, Jun 27, 2014 at 02:19:27PM +0200, Michal Kazior wrote:
> This prepares CSA structure and logic in hostapd for multi-BSS channel
> switching.
> diff --git a/src/ap/dfs.c b/src/ap/dfs.c
> +static int hostapd_csa_in_progress(struct hostapd_iface *iface)
> +{
> + int i;
That needs to be unsigned to match iface->num_bss in the following
comparison:
> + for (i = 0; i < iface->num_bss; i++)
> + if (iface->bss[0]->csa_in_progress)
> + return 1;
> + return 0;
> +}
I'd assume this was supposed to use bss[i], i.e., check if any BSS in
the interface has CSA in progress.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list