autotest: WiFi: Enable multi-ssid on CrOS-based routers
Enable the "multi_interface" step config option to work correctly
on a ChromeOS based router/server. This required a few changes:
- Allow multiple DHCP server instances to run in parallel on
CrOS routers. Do this by looking up the interface in the
local_server list to see which interface parameters to apply
to the configuration.
- Move code for stopping all DHCP servers to the initialization
and final teardown, instead of during server startup.
- Keep track of each hostapd instance created so the logs for
each can be retrieved separately and each can be released
when de-configuring hostapd.
- Use the (already available) "ap" parameter in client_ping
commands that are meant to address the secondary server,
since in "local_server" configurations the server IP address
is different for each AP.
BUG=chromium-os:36669
TEST=network_WiFiManager/040MutiAuth
Change-Id: I88e016086e0b8755bb9290ec964ee63d952acec1
Reviewed-on: https://gerrit.chromium.org/gerrit/38834
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
5 files changed