hostapd: Add feature to start all interfaces at the same time in sync
authorSrinivasa Duvvuri <sduvvuri@google.com>
Tue, 22 Sep 2015 17:43:12 +0000 (10:43 -0700)
committerJouni Malinen <j@w1.fi>
Wed, 28 Oct 2015 17:47:17 +0000 (19:47 +0200)
commit053693d2662cf64ffd621f8eed152d62dc53a9ef
treee4b7d9ae65ea8dcfe3175279e3d47950474b2793
parent9578413455158e7f90340a532e1654f152d02daa
hostapd: Add feature to start all interfaces at the same time in sync

When multiple interfaces across mutiple radios are started using a
single instance of hostapd, they all come up at different times
depending upon how long the ACS and HT scan take on each radio. This
will result in stations (that already have the AP profile) associating
with the first interfaces that comes up. For example in a dual band
radio case (2G and 5G) with ACS enabled, 2G always comes up first
because the ACS scan takes less time on 2G and this results in all
stations associating with the 2G interface first.

This feature brings up all the interfaces at the same time. The list of
interfaces specified via hostapd.conf files on the command line are all
marked as sync interfaces. All the interfaces are synchronized in
hostapd_setup_interface_complete().

This feature is turned on with '-S' commmand line option.

Signed-off-by: Srinivasa Duvvuri <sduvvuri@chromium.org>
hostapd/main.c
src/ap/hostapd.c
src/ap/hostapd.h