OSDN Git Service

Do not request MAC address randomization when associated
authorNingyuan Wang <nywang@google.com>
Mon, 27 Feb 2017 21:10:32 +0000 (13:10 -0800)
committerNingyuan Wang <nywang@google.com>
Mon, 27 Feb 2017 23:24:33 +0000 (15:24 -0800)
commit5711892b76b3ba2dea53aec0769ca36cb04b3cec
tree9ba093fea432e7692ba17f10c495faacea0427b0
parent0513378db6f1f8f2c84387c3a8bea5449cf03190
Do not request MAC address randomization when associated

This CL includes the following changes:
1. Enables netlink manager to monitor NL80211_CMD_DISCONNECT and
NL80211_CMD_DISASSOCIATE events
2. Makes ClientInterfaceImpl listen to these additional MLME events.
3. Makes clientInterfaceImpl keep tracking of the association state.
4. Exposes the association state to ScannerImpl, and makes ScannerImpl
only request MAC address randomization when interface is not associated.

Bug: 35803146
Test: compile, unit tests, manual test

Change-Id: I7a5eeaf6329e1142a0012f27e0f72e6514ba7f94
client_interface_impl.cpp
client_interface_impl.h
net/mlme_event.cpp
net/mlme_event.h
net/mlme_event_handler.h
net/netlink_manager.cpp
scanning/scanner_impl.cpp
scanning/scanner_impl.h