[PATCH 7/7] Adding a simple periodic autoscan module
Jouni Malinen
j
Tue Jun 26 09:33:32 PDT 2012
On Tue, Jun 26, 2012 at 11:05:52AM +0300, Tomasz Bursztyka wrote:
> diff --git a/wpa_supplicant/autoscan_periodic.c b/wpa_supplicant/autoscan_periodic.c
> +static int periodic_interval = 0;
I changed this to use dynamically allocated structure instead of a
static variable since a single wpa_supplicant process can manage
multiple radios (or virtual interfaces) and there could be conflicting
configuration for each radio.
PS.
The configured autoscan parameter could be copied in
wpas_p2p_clone_config() to make sure it gets used in the case separate
P2P group interfaces are used. Though, I'm not sure whether this is
really something that would ever make much sense with P2P since more
common configuration there is to remove the P2P group automatically if
the GO is not found and as such, the interface is less likely to remain
in scanning state for extended periods.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list