History log of /system/connectivity/wificond/net/netlink_manager.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cf51f862b31b5eb2066729660fd2caf48ecc77f8 08-Mar-2017 Ningyuan Wang <nywang@google.com> 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
/system/connectivity/wificond/net/netlink_manager.h
495e5b35c9b7231574658f273f2aa061e46d0a08 03-Dec-2016 Ningyuan Wang <nywang@google.com> Monitor regulatory domain change

This adds the function of regulatory domain change monitoring
on wificond.

This also allows wificond to print the supported bands/channels
upon regulatory domain change.

This also adds the corresponding unit tests.

Bug: 35150708
Test: compile, unit tests, manual tests
Change-Id: Idbcf9ebf25f4e7be3b371ec3531b6b52303476e8
/system/connectivity/wificond/net/netlink_manager.h
59ab0a4ec0c5f3124bb63a683a1c46dba21faf3f 24-Jan-2017 Ningyuan Wang <nywang@google.com> Plumb through scheduled scan failures

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

Change-Id: Ib3cc3ae24043c72528f19d27853196c5605b4292
/system/connectivity/wificond/net/netlink_manager.h
042736e71ac9b9e18c38c00a3d588a5239a1da0f 05-Oct-2016 Ningyuan Wang <nywang@google.com> Monitor mlme event for wificond

1. This allows NetlinkManager to monitor MLME events.
2. This adds internal API for tracking MLME events.
3. This creates classes representing different MLME events.
4. ClientInterfaceImpl will update frequency and bssid upon
ASSOCIATE/CONNECT/ROAM events.

Bug: 31961586
Test: compile, manual tests

Change-Id: I1bd62dfa85596fd262709038fb73fc6e0ff9c5f3
/system/connectivity/wificond/net/netlink_manager.h
8044a946f4b350291ddd44c52db7ca34e21bad8f 30-Sep-2016 Ningyuan Wang <nywang@google.com> Add internal API for handling scheduled scan results

This allows an interface object to subscribe/unsubscribe
schedulded scan results.

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

Change-Id: I023fe9ca1546148bdab2ef1458934efbcdee4e76
/system/connectivity/wificond/net/netlink_manager.h
f4bed1cc3958c78754997d17cd6fb3839468331d 20-Sep-2016 Ningyuan Wang <nywang@google.com> Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse|

This also fixes a typo.

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

Change-Id: I802487deedc219a6ad1ed78ea1a6b94e876e4d67
/system/connectivity/wificond/net/netlink_manager.h
c9566b1dc5f3bd92e03ed8806e59af9cba2b672f 20-Sep-2016 Ningyuan Wang <nywang@google.com> Notify scan aborted events

Bug: 31495091
Test: compile, manual tests

Change-Id: I94c50f44449bd1f0c7c445775434a34d5ca7390a
/system/connectivity/wificond/net/netlink_manager.h
84b17dff63534af6957003f89fd4110c06d100e6 26-Aug-2016 Ningyuan Wang <nywang@google.com> Add wrapper functions of SendPacketAndGetResponses

This can help simplify the existing code of handling netlink
responses.

BUG=31111084
TEST=compile

Change-Id: I9a48ddb9af805c59c2733b7c1e2413b3f049edda
/system/connectivity/wificond/net/netlink_manager.h
21ff4c7ad0b0ec8da8392c00eedbae022d6e21e5 19-Aug-2016 Ningyuan Wang <nywang@google.com> Get rid of NL80211Packet copying

This CL removes all NL80211Packet copying by introducing the use of
unique_ptr on NL80211Packet objects.

The copy constructor is not explicitly deleted because it helps write
readable unit tests.

BUG=30901326
TEST=compile, unit tests, manual tests

Change-Id: I8dc9b42cacc3e929aa720abbd8ff0a3862b33bd3
/system/connectivity/wificond/net/netlink_manager.h
919f41d3a1eef713a87d35f99746f64943ca2e69 17-Aug-2016 Ningyuan Wang <nywang@google.com> Pass packet by reference to reduce copy operations

With this change, along with ag/1333902 the copy counter is
reduced from 14 to 5, for the entire booting process.

BUG=30901326
TEST=unit tests

Change-Id: Ie7f46b6ca1663a00d1703d567b2de35259bfd13a
/system/connectivity/wificond/net/netlink_manager.h
c67d730fd1da7d8290312cd7429221602df76e70 12-Aug-2016 Ningyuan Wang <nywang@google.com> Create functions to handle scan result notification

BUG=30737305
TEST=compile, unit tests, integration tests

Change-Id: I763db062ccb59b71ee358723b8285e1c5f2f8aa2
/system/connectivity/wificond/net/netlink_manager.h
0ce3df2141a3a7eeca394d860b992f7cf98f8ea6 10-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Support receiving broadcast for NetlinkManager"
1cd71d54940f028c1881c0962ff18ace2c94d9f3 05-Aug-2016 Ningyuan Wang <nywang@google.com> Support receiving broadcast for NetlinkManager

BUG=30737305
TEST=unit tests and integration tests

Change-Id: Ia9fb32d428970560452949b6f980b634a48c84e4
/system/connectivity/wificond/net/netlink_manager.h
4911e28b6555e42d12027d1b6999654a25feb758 03-Aug-2016 Ningyuan Wang <nywang@google.com> Add unit tests for NetlinkUtils

This creates unit tests for helper class NetlinkUtils.
This also creates mock classes for NetlinkManager and EventLoop.

BUG=30642046
TEST=unit tests and integration tests

Change-Id: Idc3cea812e700af8a1727c380ec92cfc1f364e28
/system/connectivity/wificond/net/netlink_manager.h
f28bd901d9588058fe4256bbfe1ee720249b9747 01-Aug-2016 Ningyuan Wang <nywang@google.com> Seperate netlink util functions to NL80211Utils

This creates a new clas NetlinkUtils and moves two util
functions GetWiphyIndex() and GetInterfaceName() from
NelinkManager to NetlinkUtils.

BUG=30565670
TEST=unit tests and integration tests

Change-Id: I713d4388e688f5235b7fbf61c7b9ea9341d667db
/system/connectivity/wificond/net/netlink_manager.h
0bb07ecdb74d6e9af6271cec1bdc6232d546a878 30-Jul-2016 Ningyuan Wang <nywang@google.com> use DISALLOW_COPY_AND_ASSIGN for NetlinkManager

BUG=None
TEST=compile

Change-Id: I34d979561c85c754e8af4c06954d19b5f7153799
/system/connectivity/wificond/net/netlink_manager.h
a291b0401149e07c0584a3e52112dc016c82669e 30-Jul-2016 Ningyuan Wang <nywang@google.com> Merge "Get interface name for server"
5ea9c07f01b5a7a617dbc99011a5d0952a7a87db 29-Jul-2016 Ningyuan Wang <nywang@google.com> Add IsStarted() to NetlinkManager

This is useful to prevent multiple Start() on a NetlinkManager
obejct.

BUG=29454786
TEST=compile
TEST=unittests and intergration tests still pass

Change-Id: I006d6d9d229b16d42670534518703d9f20e602ec
/system/connectivity/wificond/net/netlink_manager.h
45a655e6c6ba304c577ee098732ac176aaab311b 28-Jul-2016 Ningyuan Wang <nywang@google.com> Get interface name for server

This CL adds a util function on NetlinkManager for getting
interface name from kernel.

Server uses this function after driver and firmware reloading
to verify the interface is set up correctly.

BUG=29454786
TEST=unit tests and intergration tests

Change-Id: Ib8cea0e7cb744be428ddaf96b6d50f10a6cea255
/system/connectivity/wificond/net/netlink_manager.h
47b3d35354ee70c78e1c2d6df3320f43fd2b2c24 28-Jul-2016 Ningyuan Wang <nywang@google.com> Do not use callback parameter for synchronous NL80211 interface

BUG=29454786
TEST=compile
TEST=unittests and intergration tests still pass

Change-Id: Ibaf15c82035837b73021c70922e96f870fcec36b
/system/connectivity/wificond/net/netlink_manager.h
e6dce59eaa5f1fcbdfb4b3fc6a60d5cd3b522b06 21-Jul-2016 Ningyuan Wang <nywang@google.com> Get wiphy index using NL80211 messages

Add utils functions in NetlinkManager to get wiphy index.
wificond should refresh wiphy index using those utils after
reloading the driver.

BUG=29454786
TEST=compile
TEST=unittests and intergration tests still pass

Change-Id: I303ac6b81ab3650acfb7a823cb0b423f55d373b4
/system/connectivity/wificond/net/netlink_manager.h
0c2afe0b1381efea4a2821a51b65fb2a255364d3 19-Jul-2016 Ningyuan Wang <nywang@google.com> Use different sockets for synchronous and asynchrouns netlink interface

NetlinkManager provides an interface synchronously waiting for netlink
reply.
In order not to bring in complexity of message rescheduling we use
different sockets for synchrounous and asynchrounous interfaces.

BUG=29454786
TEST=compile
TEST=unittests pass and wificond can still get nl80211 family id

Change-Id: I3fd693882d6e1734c3ee7f470b17ffc05152f28b
/system/connectivity/wificond/net/netlink_manager.h
7397e6b7c3635e2121f6d2229557e684bc4756cf 13-Jul-2016 Ningyuan Wang <nywang@google.com> Create NetlinkManager for wificond

This CL creates class NetlinkManager.
In this CL, NetlinkManager sets up netlink socket and
requests NL80211 family id from kernel.
This is the start point of all other NL80211 operations.

BUG=29454786
TEST=compile
TEST=unit tests
TEST=manual tests

Change-Id: I3f8e08c2836d64a39243efb71cf387dab226a621
/system/connectivity/wificond/net/netlink_manager.h