OSDN Git Service

Cleanup p2p0 interface upon tearDownInterfaces().
authorNingyuan Wang <nywang@google.com>
Mon, 13 Mar 2017 16:41:29 +0000 (09:41 -0700)
committerNingyuan Wang <nywang@google.com>
Mon, 13 Mar 2017 21:42:47 +0000 (14:42 -0700)
commit075145ad1dcb8058222196becaa884b961dfced2
treed32e750c521c9581b5064a3d2df785bf4add53dc
parent682ce488763cb20c92a846fbcdd28f65ced0ca95
Cleanup p2p0 interface upon tearDownInterfaces().

This replaces NetlinkUtils::GetInterfaceInfo with NetlinkUtils::
GetInterfaces. Instead of picking client interface inside NetlinkUtils,
this change allows wificond main object(server) to dump all the interfaces
from kernel.
Being able to dump all interfaces, wificond main object therefore can mark
down all the interfaces upon cleanup.

Bug: 36139978
Bug: 35949498

Test: compile, unit tests, manual test, integration test

Change-Id: I66dd4f8c3b26087dd182591763de8fa4da29f1d6
net/netlink_utils.cpp
net/netlink_utils.h
server.cpp
server.h
tests/mock_netlink_utils.h
tests/netlink_utils_unittest.cpp
tests/server_unittest.cpp