OSDN Git Service

Monitor station events for hotspot mode
authorNingyuan Wang <nywang@google.com>
Wed, 8 Mar 2017 16:44:39 +0000 (08:44 -0800)
committerNingyuan Wang <nywang@google.com>
Thu, 16 Mar 2017 18:40:41 +0000 (11:40 -0700)
commitcf51f862b31b5eb2066729660fd2caf48ecc77f8
treec7cd2fac9a67580eab640de72e1eefce1de2d78e
parent042abc94bc768131cd3341d677465b6aeffb5bf1
Monitor station events for hotspot mode

This enables NetlinkManager to monitor NL80211_CMD_NEW_STATION,
and NL80211_CMD_DEL_STATION.

This could be used for ApInterfaceImpl for monitoring associated
stations.

This also creates a new class LoggingUtils to avoid repeating code.
This also adds corresponding unit tests.

Bug: 36043922
Test: compile, unit tests, manual tests

Change-Id: I060062c0cd6250051da90658b229d786f287fad4
12 files changed:
Android.mk
ap_interface_impl.cpp
ap_interface_impl.h
logging_utils.cpp [new file with mode: 0644]
logging_utils.h [new file with mode: 0644]
net/netlink_manager.cpp
net/netlink_manager.h
net/netlink_utils.cpp
net/netlink_utils.h
scanning/scan_result.cpp
tests/ap_interface_impl_unittest.cpp
tests/mock_netlink_utils.h