OSDN Git Service

android-x86/system-connectivity-wificond.git
7 years agoMake wificond scan result parcelable am: 4d882abea2 am: a12f2a4ae4 am: 396efd3c4b
Ningyuan Wang [Fri, 11 Nov 2016 19:29:49 +0000 (19:29 +0000)]
Make wificond scan result parcelable am: 4d882abea2 am: a12f2a4ae4 am: 396efd3c4b
am: 01b095fdb7

Change-Id: I8267086b4dcb493401b2f7db05fd63f47406126c

7 years agoMake wificond scan result parcelable am: 4d882abea2 am: a12f2a4ae4
Ningyuan Wang [Fri, 11 Nov 2016 19:13:27 +0000 (19:13 +0000)]
Make wificond scan result parcelable am: 4d882abea2 am: a12f2a4ae4
am: 396efd3c4b

Change-Id: Ic980f864c3a08beb4eb08f742ad0a3e87b0cfca4

7 years agoMake wificond scan result parcelable am: 4d882abea2
Ningyuan Wang [Fri, 11 Nov 2016 19:07:26 +0000 (19:07 +0000)]
Make wificond scan result parcelable am: 4d882abea2
am: a12f2a4ae4

Change-Id: I002d1d88fefa6d9132ecce4a64c58a2e0a8bc40a

7 years agoMake wificond scan result parcelable
Ningyuan Wang [Fri, 11 Nov 2016 19:00:57 +0000 (19:00 +0000)]
Make wificond scan result parcelable
am: 4d882abea2

Change-Id: I8dbacd014ba5a596f074f5a649ea92f3e194125f

7 years agoMake wificond scan result parcelable
Ningyuan Wang [Fri, 30 Sep 2016 22:55:25 +0000 (15:55 -0700)]
Make wificond scan result parcelable

This includes the following changes:
1. Make ScanResult a parcelable class.
2. Move ScanResult to namespace com.android.server.wifi.wificond
3. Rename ScanResult to NativeScanResult to avoid naming confliction.
4. Add unit test for NativeScanResult class.

Test: compile, unittests, manual test
Bug: 30746278
Change-Id: Ic1225ff52149fcd00855f9c7aa78c48485b0a08b

7 years agoUse AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78 am: 17d749156a am...
Ningyuan Wang [Tue, 25 Oct 2016 22:50:49 +0000 (22:50 +0000)]
Use AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78 am: 17d749156a am: efac4f66fb
am: 50e2a833e6

Change-Id: I3e4f9c1c08662b24cf8b0b8f975beef01fc191eb

7 years agoMonitor mlme event for wificond am: 042736e71a am: 74cdd6125e am: 6d40970b52
Ningyuan Wang [Tue, 25 Oct 2016 22:50:39 +0000 (22:50 +0000)]
Monitor mlme event for wificond am: 042736e71a am: 74cdd6125e am: 6d40970b52
am: 3473e2257c

Change-Id: I1f87ea427d02a6f2878e1c947f0e72087111d092

7 years agoUse AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78 am: 17d749156a
Ningyuan Wang [Tue, 25 Oct 2016 22:47:40 +0000 (22:47 +0000)]
Use AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78 am: 17d749156a
am: efac4f66fb

Change-Id: I52d4e6fe3a32a7c01c358571d39068de6f8fa556

7 years agoMonitor mlme event for wificond am: 042736e71a am: 74cdd6125e
Ningyuan Wang [Tue, 25 Oct 2016 22:47:32 +0000 (22:47 +0000)]
Monitor mlme event for wificond am: 042736e71a am: 74cdd6125e
am: 6d40970b52

Change-Id: Ib1f98a2f80ace789da1d048cbc7981cc5d0512e8

7 years agoUse AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78
Ningyuan Wang [Tue, 25 Oct 2016 22:43:11 +0000 (22:43 +0000)]
Use AP bssid for NL80211_CMD_GET_STATION command am: 4aab829f78
am: 17d749156a

Change-Id: I67dec859cfb4bdaa2e3fcfc2b3136c1f986f024e

7 years agoMonitor mlme event for wificond am: 042736e71a
Ningyuan Wang [Tue, 25 Oct 2016 22:43:02 +0000 (22:43 +0000)]
Monitor mlme event for wificond am: 042736e71a
am: 74cdd6125e

Change-Id: Ie687a91177be3d3f64c27fbfc493b1a9fdaf2217

7 years agoUse AP bssid for NL80211_CMD_GET_STATION command
Ningyuan Wang [Tue, 25 Oct 2016 22:39:11 +0000 (22:39 +0000)]
Use AP bssid for NL80211_CMD_GET_STATION command
am: 4aab829f78

Change-Id: I61913f315166a4031535bedd6479774915df16e3

7 years agoMonitor mlme event for wificond
Ningyuan Wang [Tue, 25 Oct 2016 22:39:01 +0000 (22:39 +0000)]
Monitor mlme event for wificond
am: 042736e71a

Change-Id: I287bd9bf0bed87379fbbb579b133242f3621adb3

7 years agoUse AP bssid for NL80211_CMD_GET_STATION command
Ningyuan Wang [Tue, 18 Oct 2016 17:13:20 +0000 (10:13 -0700)]
Use AP bssid for NL80211_CMD_GET_STATION command

Bug: 32095105
Change-Id: Ic048e3f96a325599001100473948c0e5a3736b2d
Test: compile, runttests.sh

7 years agoMonitor mlme event for wificond
Ningyuan Wang [Wed, 5 Oct 2016 21:25:22 +0000 (14:25 -0700)]
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

7 years agoAdd RTTController and corresponding aidl interface to wificond am: eb59d4dd54 am...
Ningyuan Wang [Thu, 20 Oct 2016 20:17:54 +0000 (20:17 +0000)]
Add RTTController and corresponding aidl interface to wificond am: eb59d4dd54 am: 17a098894a
am: 498c8c0b49

Change-Id: Iab54c4f204962e25b20c808d47c5ba2f50d06a75

7 years agoAdd RTTController and corresponding aidl interface to wificond am: eb59d4dd54
Ningyuan Wang [Thu, 20 Oct 2016 20:08:02 +0000 (20:08 +0000)]
Add RTTController and corresponding aidl interface to wificond am: eb59d4dd54
am: 17a098894a

Change-Id: I091bf17e6228abb1bc1d75b60652642a3e6b3ed6

7 years agoAdd RTTController and corresponding aidl interface to wificond
Ningyuan Wang [Thu, 20 Oct 2016 19:59:32 +0000 (19:59 +0000)]
Add RTTController and corresponding aidl interface to wificond
am: eb59d4dd54

Change-Id: I299e49d7159fb3a61baa0485666626626ee9c030

7 years agoAdd RTTController and corresponding aidl interface to wificond
Ningyuan Wang [Mon, 10 Oct 2016 18:16:59 +0000 (11:16 -0700)]
Add RTTController and corresponding aidl interface to wificond

This add RttController interface as a lazy initialization object.
User can get an instance of RttController while register a RttClient
through wificond.

Currently HAL RttController has an optional parameter for choosing
on which network interface will RTT run. However, in order to
hide interface concept from RTT framework as well as keep simplicity,
we don't expose this interface choice via aidl to framework for now.

Bug: 31756849
Test: compile

Change-Id: I2a13374254fd8c6bd7911e5cfbe3297cde25e9e7

7 years agoMerge "Add internal API for handling scheduled scan results" am: 57e0bf7dd5 am: 3d3a9...
Ningyuan Wang [Mon, 17 Oct 2016 21:25:17 +0000 (21:25 +0000)]
Merge "Add internal API for handling scheduled scan results" am: 57e0bf7dd5 am: 3d3a97c829
am: 8fdfa65f74

Change-Id: I761e9509600d50f7b5875465f0060c947d6a6332

7 years agoMerge "Add internal API for handling scheduled scan results" am: 57e0bf7dd5
Ningyuan Wang [Mon, 17 Oct 2016 21:17:46 +0000 (21:17 +0000)]
Merge "Add internal API for handling scheduled scan results" am: 57e0bf7dd5
am: 3d3a97c829

Change-Id: Ib6faf0036ab7a0a2f19947fbcb256bb7d1b25f35

7 years agoMerge "Add internal API for handling scheduled scan results"
Ningyuan Wang [Mon, 17 Oct 2016 21:11:16 +0000 (21:11 +0000)]
Merge "Add internal API for handling scheduled scan results"
am: 57e0bf7dd5

Change-Id: I6312a3669bd8442739fd096f9f46eb3da1a2445f

7 years agoMerge "Add internal API for handling scheduled scan results"
Treehugger Robot [Mon, 17 Oct 2016 21:04:52 +0000 (21:04 +0000)]
Merge "Add internal API for handling scheduled scan results"

7 years agoMerge "Stop system_server for wificond integration test DevMode" am: c64f5270cd am...
Ningyuan Wang [Mon, 17 Oct 2016 17:25:00 +0000 (17:25 +0000)]
Merge "Stop system_server for wificond integration test DevMode" am: c64f5270cd am: a7ab4ce5f4
am: 17acdf4954

Change-Id: I9d7e70838026f2476143500b5b446c6084624f88

7 years agoMerge "Stop system_server for wificond integration test DevMode" am: c64f5270cd
Ningyuan Wang [Mon, 17 Oct 2016 17:18:30 +0000 (17:18 +0000)]
Merge "Stop system_server for wificond integration test DevMode" am: c64f5270cd
am: a7ab4ce5f4

Change-Id: Id5578f1e8853b34a3a5a186ee8d9ab3e41636ba9

7 years agoMerge "Stop system_server for wificond integration test DevMode"
Ningyuan Wang [Mon, 17 Oct 2016 17:12:00 +0000 (17:12 +0000)]
Merge "Stop system_server for wificond integration test DevMode"
am: c64f5270cd

Change-Id: Id70109a2563450e5e5f7c558fe7c5e164636cd28

7 years agoAdd internal API for handling scheduled scan results
Ningyuan Wang [Thu, 29 Sep 2016 23:41:22 +0000 (16:41 -0700)]
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

7 years agoMerge "Stop system_server for wificond integration test DevMode"
Treehugger Robot [Mon, 17 Oct 2016 17:01:37 +0000 (17:01 +0000)]
Merge "Stop system_server for wificond integration test DevMode"

7 years agoStop system_server for wificond integration test DevMode
Ningyuan Wang [Wed, 12 Oct 2016 01:52:48 +0000 (18:52 -0700)]
Stop system_server for wificond integration test DevMode

For integration tests, now we use "adb shell stop" to get rid of
framework control, instead of  starting wificond service with a
new name.

Bug: 32097569
Test: comipile, integration test
Change-Id: I725e33e05052fd813f1f7f8c92b7ed1d75c8e187

7 years agoFix misleading wificond NL80211 logging messages am: e779ee36c4 am: 02f9c4a17a am...
Ningyuan Wang [Wed, 12 Oct 2016 02:44:25 +0000 (02:44 +0000)]
Fix misleading wificond NL80211 logging messages am: e779ee36c4 am: 02f9c4a17a am: b83eecfb65
am: 731cd7df20

Change-Id: I6cef7562db9f3a7de5d3779121297107404c8e3c

7 years agoFix misleading wificond NL80211 logging messages am: e779ee36c4 am: 02f9c4a17a
Ningyuan Wang [Wed, 12 Oct 2016 02:38:08 +0000 (02:38 +0000)]
Fix misleading wificond NL80211 logging messages am: e779ee36c4 am: 02f9c4a17a
am: b83eecfb65

Change-Id: I0b57c709dd7438ec78ad333249b22a23d10b272b

7 years agoFix misleading wificond NL80211 logging messages am: e779ee36c4
Ningyuan Wang [Wed, 12 Oct 2016 02:33:17 +0000 (02:33 +0000)]
Fix misleading wificond NL80211 logging messages am: e779ee36c4
am: 02f9c4a17a

Change-Id: I5db8a1e259ef37de226d71603c06850afb434233

7 years agoFix misleading wificond NL80211 logging messages
Ningyuan Wang [Wed, 12 Oct 2016 02:24:20 +0000 (02:24 +0000)]
Fix misleading wificond NL80211 logging messages
am: e779ee36c4

Change-Id: I91874b732813792c2db7dcffb91b09b34b9c2292

7 years agoFix misleading wificond NL80211 logging messages
Ningyuan Wang [Tue, 11 Oct 2016 22:33:58 +0000 (15:33 -0700)]
Fix misleading wificond NL80211 logging messages

Some of them are typos, some of them are just misleading.

For example SendMessageAndGetSingleResponse() failure may result
from either sending failure or invalid response.
It is less confusing to simply point out that a specific NL80211
command failed.

Bug: None
Change-Id: I195653c99f9b914959e880b79daa3352a414455b
Test: Compile

7 years agoAdd ANQP query binder interface to wificond am: e5d0d670dc am: 838b2eec21 am: 76453f6fda
Ningyuan Wang [Mon, 10 Oct 2016 18:20:55 +0000 (18:20 +0000)]
Add ANQP query binder interface to wificond am: e5d0d670dc am: 838b2eec21 am: 76453f6fda
am: 00f4447063

Change-Id: I7e0ee0bf0c9b19c1b3dee2ee53a955d2abd731a0

7 years agoAdd ANQP query binder interface to wificond am: e5d0d670dc am: 838b2eec21
Ningyuan Wang [Mon, 10 Oct 2016 17:17:58 +0000 (17:17 +0000)]
Add ANQP query binder interface to wificond am: e5d0d670dc am: 838b2eec21
am: 76453f6fda

Change-Id: Id6155f33b22838d0ba00b7ffcf51b5b8e3ad2d8e

7 years agoAdd ANQP query binder interface to wificond am: e5d0d670dc
Ningyuan Wang [Mon, 10 Oct 2016 17:12:25 +0000 (17:12 +0000)]
Add ANQP query binder interface to wificond am: e5d0d670dc
am: 838b2eec21

Change-Id: I4807b0fcf8a67951d8c89637334345bcc40c185d

7 years agoAdd ANQP query binder interface to wificond
Ningyuan Wang [Mon, 10 Oct 2016 17:07:30 +0000 (17:07 +0000)]
Add ANQP query binder interface to wificond
am: e5d0d670dc

Change-Id: I1ba3217a87cb83495cf89a23ddbbd22ed7dfef82

7 years agoAdd ANQP query binder interface to wificond
Ningyuan Wang [Thu, 29 Sep 2016 18:13:45 +0000 (11:13 -0700)]
Add ANQP query binder interface to wificond

Bug: 31813700
Test: compile

Change-Id: I6d049a7e367f59ae71f52d24df70e3b038932ee2

7 years agoMerge "Always set interface down in object destruction" am: c022e6399a am: 5f39189a56...
Christopher Wiley [Tue, 27 Sep 2016 23:16:43 +0000 (23:16 +0000)]
Merge "Always set interface down in object destruction" am: c022e6399a am: 5f39189a56 am: 39bb199c16
am: 54927bb872

Change-Id: Ida9141c8ba0ce9c23e2eb047c14aecd79aa50b10

7 years agoMerge "Always set interface down in object destruction" am: c022e6399a am: 5f39189a56
Christopher Wiley [Tue, 27 Sep 2016 23:04:43 +0000 (23:04 +0000)]
Merge "Always set interface down in object destruction" am: c022e6399a am: 5f39189a56
am: 39bb199c16

Change-Id: Ib2acda371172df89475d87c1deb9b3ce2e558f81

7 years agoMerge "Always set interface down in object destruction" am: c022e6399a
Christopher Wiley [Tue, 27 Sep 2016 23:00:02 +0000 (23:00 +0000)]
Merge "Always set interface down in object destruction" am: c022e6399a
am: 5f39189a56

Change-Id: Ibc30ee18a3805569641a2f6b8c5b9a979a12ef67

7 years agoMerge "Always set interface down in object destruction"
Christopher Wiley [Tue, 27 Sep 2016 22:57:02 +0000 (22:57 +0000)]
Merge "Always set interface down in object destruction"
am: c022e6399a

Change-Id: Ia9130ceb14aefe64da84c6caf1c1b7b570035e66

7 years agoMerge "Always set interface down in object destruction"
Treehugger Robot [Tue, 27 Sep 2016 22:54:20 +0000 (22:54 +0000)]
Merge "Always set interface down in object destruction"

7 years agoMerge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc am: 1b6b972487...
Ningyuan Wang [Tue, 27 Sep 2016 00:19:06 +0000 (00:19 +0000)]
Merge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc am: 1b6b972487 am: 2c003fb4da
am: d0c0667115

Change-Id: I968b4fb546c160eac82a1f3b888e538ebb3f3f5d

7 years agoMerge "Add AIDL method to retrieve network interface name" am: ced07e8491 am: dc4ff81...
Christopher Wiley [Tue, 27 Sep 2016 00:18:58 +0000 (00:18 +0000)]
Merge "Add AIDL method to retrieve network interface name" am: ced07e8491 am: dc4ff8114c am: 9367bb50ed
am: 1c920994c0

Change-Id: I5bb93ef2d8b60c7b34f9ff2c72cdea54768ad799

7 years agoMerge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc am: 1b6b972487
Ningyuan Wang [Tue, 27 Sep 2016 00:11:21 +0000 (00:11 +0000)]
Merge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc am: 1b6b972487
am: 2c003fb4da

Change-Id: I6ed04d16bee4106b09f2eeb9355cd32e2d02ee27

7 years agoMerge "Add AIDL method to retrieve network interface name" am: ced07e8491 am: dc4ff8114c
Christopher Wiley [Tue, 27 Sep 2016 00:11:12 +0000 (00:11 +0000)]
Merge "Add AIDL method to retrieve network interface name" am: ced07e8491 am: dc4ff8114c
am: 9367bb50ed

Change-Id: If20141b365931d7a140e92655c3b10626930b28f

7 years agoMerge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc
Ningyuan Wang [Mon, 26 Sep 2016 23:54:34 +0000 (23:54 +0000)]
Merge "Fix bssid printing in ScanResult::DebugLog()" am: 8ed87986dc
am: 1b6b972487

Change-Id: I8ef72079a2fb1fd3457304653c1a39e5567e39f5

7 years agoMerge "Fix bssid printing in ScanResult::DebugLog()"
Ningyuan Wang [Mon, 26 Sep 2016 23:52:33 +0000 (23:52 +0000)]
Merge "Fix bssid printing in ScanResult::DebugLog()"
am: 8ed87986dc

Change-Id: Ic774a8babfc417c04e06c60126e6385a6a055e6d

7 years agoMerge "Fix bssid printing in ScanResult::DebugLog()"
Treehugger Robot [Mon, 26 Sep 2016 23:29:23 +0000 (23:29 +0000)]
Merge "Fix bssid printing in ScanResult::DebugLog()"

7 years agoMerge "Add AIDL method to retrieve network interface name" am: ced07e8491
Christopher Wiley [Mon, 26 Sep 2016 22:58:18 +0000 (22:58 +0000)]
Merge "Add AIDL method to retrieve network interface name" am: ced07e8491
am: dc4ff8114c

Change-Id: I5122a025a958124cc2452293a9f83f8913f9f9b8

7 years agoMerge "Add AIDL method to retrieve network interface name"
Christopher Wiley [Mon, 26 Sep 2016 22:53:19 +0000 (22:53 +0000)]
Merge "Add AIDL method to retrieve network interface name"
am: ced07e8491

Change-Id: I9f5f9bad8e9aa616e273a322d0d285b185ab3dd1

7 years agoAlways set interface down in object destruction
Christopher Wiley [Thu, 22 Sep 2016 15:57:40 +0000 (08:57 -0700)]
Always set interface down in object destruction

We would like to reason about our interfaces as being up
when they are configured and ready for use, and down otherwise.
This helps when switching modes. For example, when setting up a SoftAP,
you can expect that the interface starts in a down state, and
transitions to up when hostapd is ready for business.  Note that we
cannot do this after firmware reload, because this may cause driver
de-initialization (see c#6 in b/31205821).

Bug: 31337216
Test: Integration tests pass

Change-Id: I03a71ea623e29ef9b023d97afc81cf836ebfb1ff

7 years agoMerge "Add AIDL method to retrieve network interface name"
Treehugger Robot [Mon, 26 Sep 2016 22:44:09 +0000 (22:44 +0000)]
Merge "Add AIDL method to retrieve network interface name"

7 years agoAdd AIDL method to retrieve network interface name
Christopher Wiley [Mon, 26 Sep 2016 17:21:16 +0000 (10:21 -0700)]
Add AIDL method to retrieve network interface name

This is necessary to watch for interface up/down events
in SoftApManager.

Bug: 31337216
Test: unit/integration tests pass
Test: upcoming integration tests use this method
Change-Id: I7d246b83058bd3d68970f3f72eeeb834d7dba309

7 years agoWrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39 am...
Ningyuan Wang [Mon, 26 Sep 2016 16:28:31 +0000 (16:28 +0000)]
Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39 am: bf1b67e210 am: aa21192384
am: e3660a5fac

Change-Id: Id3137f3ce778934cf8fc397752282ba00621af4a

7 years agoWrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39 am...
Ningyuan Wang [Mon, 26 Sep 2016 16:26:39 +0000 (16:26 +0000)]
Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39 am: bf1b67e210
am: aa21192384

Change-Id: I44512968b49deeebe915125174a3b71b26a5ddde

7 years agoWrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39
Ningyuan Wang [Mon, 26 Sep 2016 16:24:31 +0000 (16:24 +0000)]
Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse| am: f4bed1cc39
am: bf1b67e210

Change-Id: Ibac15f0c21deae2f99ce4ec7d5e514a987759ee3

7 years agoWrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse|
Ningyuan Wang [Mon, 26 Sep 2016 16:22:10 +0000 (16:22 +0000)]
Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse|
am: f4bed1cc39

Change-Id: I65bcd96370b84443d2e37b55d77fda41d251fbaa

7 years agoFix bssid printing in ScanResult::DebugLog()
Ningyuan Wang [Thu, 22 Sep 2016 22:07:11 +0000 (15:07 -0700)]
Fix bssid printing in ScanResult::DebugLog()

Bug: None
Change-Id: I9ae90c2ed56c08af88cd6d246a51c40591e0a010
Test: compile, manual tests

7 years agoWrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse|
Ningyuan Wang [Tue, 20 Sep 2016 20:37:10 +0000 (13:37 -0700)]
Wrap NLMSG_ERROR handling into |SendMessageAndGetSingleResponse|

This also fixes a typo.

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

Change-Id: I802487deedc219a6ad1ed78ea1a6b94e876e4d67

7 years agoMerge "Support signal poll for wificond" am: 5abb163c9f am: a3fa0eb48e am: ac42b7edc6
Ningyuan Wang [Wed, 21 Sep 2016 15:18:04 +0000 (15:18 +0000)]
Merge "Support signal poll for wificond" am: 5abb163c9f am: a3fa0eb48e am: ac42b7edc6
am: fa89ff0930

Change-Id: Id1d5a4a6a57dc533ab425c5a53c7307d47152ff6

7 years agoMerge "Support signal poll for wificond" am: 5abb163c9f am: a3fa0eb48e
Ningyuan Wang [Wed, 21 Sep 2016 15:08:03 +0000 (15:08 +0000)]
Merge "Support signal poll for wificond" am: 5abb163c9f am: a3fa0eb48e
am: ac42b7edc6

Change-Id: I427282dcc762a609836e3a090bcf66d9607a4b69

7 years agoMerge "Support signal poll for wificond" am: 5abb163c9f
Ningyuan Wang [Wed, 21 Sep 2016 15:05:01 +0000 (15:05 +0000)]
Merge "Support signal poll for wificond" am: 5abb163c9f
am: a3fa0eb48e

Change-Id: Icb4b9797e64a215cb52e007a6c17b18ac65fa27d

7 years agoMerge "Support signal poll for wificond"
Ningyuan Wang [Wed, 21 Sep 2016 15:02:31 +0000 (15:02 +0000)]
Merge "Support signal poll for wificond"
am: 5abb163c9f

Change-Id: I13bd13802a8b13a01a27d82dfe191755b232e4f5

7 years agoMerge "Support signal poll for wificond"
Ningyuan Wang [Wed, 21 Sep 2016 14:54:37 +0000 (14:54 +0000)]
Merge "Support signal poll for wificond"

7 years agoMerge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e am...
Josh Gao [Wed, 21 Sep 2016 07:32:21 +0000 (07:32 +0000)]
Merge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e am: d147a5b683 am: 5f9bf03b34
am: 4a52d13d68

Change-Id: I2f77017f6e64fcbad334df55de87d56c130beeaf

7 years agoMerge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e am...
Josh Gao [Wed, 21 Sep 2016 01:12:47 +0000 (01:12 +0000)]
Merge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e am: d147a5b683
am: 5f9bf03b34

Change-Id: I8a2a22ec177eac2e7a94d054538d6d4eb2be70e4

7 years agoMerge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e
Josh Gao [Wed, 21 Sep 2016 01:10:15 +0000 (01:10 +0000)]
Merge "Rename base::unique_fd::clear to base::unique_fd::reset." am: ef84b9296e
am: d147a5b683

Change-Id: I8549f63fc0e6bd371d6edb58756c22a695f63c57

7 years agoMerge "Rename base::unique_fd::clear to base::unique_fd::reset."
Josh Gao [Wed, 21 Sep 2016 01:07:32 +0000 (01:07 +0000)]
Merge "Rename base::unique_fd::clear to base::unique_fd::reset."
am: ef84b9296e

Change-Id: I2ccda2b5861fd7a2801ba9eb81e966cbcfcd4666

7 years agoMerge "Rename base::unique_fd::clear to base::unique_fd::reset."
Josh Gao [Wed, 21 Sep 2016 01:03:06 +0000 (01:03 +0000)]
Merge "Rename base::unique_fd::clear to base::unique_fd::reset."

7 years agoAdd getMacAddress() to wificond binder interface am: cc77f636f4 am: e393743f4e am...
Ningyuan Wang [Tue, 20 Sep 2016 22:54:16 +0000 (22:54 +0000)]
Add getMacAddress() to wificond binder interface am: cc77f636f4 am: e393743f4e am: 3d19526ce7
am: 2356a49e9d

Change-Id: Id8b5ecdcc31a58b41810ed6943d98dad25cff385

7 years agoMerge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3 am: ad0f6f4be6...
Ningyuan Wang [Tue, 20 Sep 2016 22:54:06 +0000 (22:54 +0000)]
Merge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3 am: ad0f6f4be6 am: 1f28239e29
am: 7dbcbacdea

Change-Id: I0765c4b2279e4158b90631c8762d87b14b41aca7

7 years agoNotify scan aborted events am: c9566b1dc5 am: bba5bcde7b am: d01a60efa5
Ningyuan Wang [Tue, 20 Sep 2016 22:53:57 +0000 (22:53 +0000)]
Notify scan aborted events am: c9566b1dc5 am: bba5bcde7b am: d01a60efa5
am: aed3ad5751

Change-Id: Id5511145eb54aa3797805363a0b59937bee3ba70

7 years agoAdd getMacAddress() to wificond binder interface am: cc77f636f4 am: e393743f4e
Ningyuan Wang [Tue, 20 Sep 2016 22:09:15 +0000 (22:09 +0000)]
Add getMacAddress() to wificond binder interface am: cc77f636f4 am: e393743f4e
am: 3d19526ce7

Change-Id: Iffcdacd4eb10a8747942c988461be0bc29061132

7 years agoMerge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3 am: ad0f6f4be6
Ningyuan Wang [Tue, 20 Sep 2016 22:09:04 +0000 (22:09 +0000)]
Merge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3 am: ad0f6f4be6
am: 1f28239e29

Change-Id: I4124843257cae8eb0f8f9141022523c3e5c7d8fc

7 years agoNotify scan aborted events am: c9566b1dc5 am: bba5bcde7b
Ningyuan Wang [Tue, 20 Sep 2016 22:08:53 +0000 (22:08 +0000)]
Notify scan aborted events am: c9566b1dc5 am: bba5bcde7b
am: d01a60efa5

Change-Id: I9433172d9dfd471923c2c3bfb14eba3412a6859f

7 years agoAdd getMacAddress() to wificond binder interface am: cc77f636f4
Ningyuan Wang [Tue, 20 Sep 2016 21:50:58 +0000 (21:50 +0000)]
Add getMacAddress() to wificond binder interface am: cc77f636f4
am: e393743f4e

Change-Id: I5a089505d7a65a5d7afeb990f8f171f0cbb0a6ce

7 years agoMerge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3
Ningyuan Wang [Tue, 20 Sep 2016 21:50:48 +0000 (21:50 +0000)]
Merge "Add bool field |associated| to ScanResult class" am: 12bfcf9bb3
am: ad0f6f4be6

Change-Id: I060544402dc5d51db671c3bf8ab9c0b330bcd645

7 years agoNotify scan aborted events am: c9566b1dc5
Ningyuan Wang [Tue, 20 Sep 2016 21:50:37 +0000 (21:50 +0000)]
Notify scan aborted events am: c9566b1dc5
am: bba5bcde7b

Change-Id: Ib2497a4acaa6fb1e111a4e4e36ca535289e9e388

7 years agoAdd getMacAddress() to wificond binder interface
Ningyuan Wang [Tue, 20 Sep 2016 21:45:31 +0000 (21:45 +0000)]
Add getMacAddress() to wificond binder interface
am: cc77f636f4

Change-Id: Id109422dd756fae49b281dbf8ee17e12eed2eefe

7 years agoMerge "Add bool field |associated| to ScanResult class"
Ningyuan Wang [Tue, 20 Sep 2016 21:45:21 +0000 (21:45 +0000)]
Merge "Add bool field |associated| to ScanResult class"
am: 12bfcf9bb3

Change-Id: Ide8cc70e6ae8ec7df31cfd27719633c810d09ee9

7 years agoNotify scan aborted events
Ningyuan Wang [Tue, 20 Sep 2016 21:45:06 +0000 (21:45 +0000)]
Notify scan aborted events
am: c9566b1dc5

Change-Id: I4e9340e637b529edcd38d86f14743c8f928a9db9

7 years agoRename base::unique_fd::clear to base::unique_fd::reset.
Josh Gao [Tue, 20 Sep 2016 21:44:02 +0000 (14:44 -0700)]
Rename base::unique_fd::clear to base::unique_fd::reset.

Change-Id: Ie9e55628cb7baa062325c55af37732aedcebf244
Test: TreeHugger

7 years agoSupport signal poll for wificond
Ningyuan Wang [Fri, 16 Sep 2016 22:39:41 +0000 (15:39 -0700)]
Support signal poll for wificond

This adds the NL80211 implementation as well as the binder interface for
signal polling function.
In order to accommodate the existing usage of java framework, this also
returns the parameter link speed(transmission rate in Mbps).

Bug: 30978872
Test: compile, manual tests

Change-Id: I69ca8e0e2dbe52f57f1a5ad19b2cacc940f2a91a

7 years agoAdd getMacAddress() to wificond binder interface
Ningyuan Wang [Wed, 14 Sep 2016 20:47:38 +0000 (13:47 -0700)]
Add getMacAddress() to wificond binder interface

Bug: 31042306
Test: compile, integration test

Change-Id: Ic8b510aa761b4e79bf903f2d90af680b7cb5ca24

7 years agoMerge "Add bool field |associated| to ScanResult class"
Treehugger Robot [Tue, 20 Sep 2016 21:28:08 +0000 (21:28 +0000)]
Merge "Add bool field |associated| to ScanResult class"

7 years agoNotify scan aborted events
Ningyuan Wang [Tue, 20 Sep 2016 18:00:11 +0000 (11:00 -0700)]
Notify scan aborted events

Bug: 31495091
Test: compile, manual tests

Change-Id: I94c50f44449bd1f0c7c445775434a34d5ca7390a

7 years agoAdd bool field |associated| to ScanResult class
Ningyuan Wang [Tue, 20 Sep 2016 17:41:30 +0000 (10:41 -0700)]
Add bool field |associated| to ScanResult class

Once we have the knowledge if this BSS is associated or not,
we can update our local cache of connection frequency.
wificond can provide this cached frequency upon polling instead of
sending a costly NL80211_CMD_GET_SURVEY message.

Bug: 31595463
Test: compile, manual test

Change-Id: Ic0188a82da4643e9a9c3c6751b5863b1797a732e

7 years agoSupport fetching packet counters for wificond am: a12253e46c am: b04e955e16 am: e6390...
Ningyuan Wang [Mon, 19 Sep 2016 17:51:07 +0000 (17:51 +0000)]
Support fetching packet counters for wificond am: a12253e46c am: b04e955e16 am: e639025818
am: 7d545f2dfc

Change-Id: Icfc98ecdfd6a8fa36f0c1969eb700cd3e21b5a56

7 years agoSupport fetching packet counters for wificond am: a12253e46c am: b04e955e16
Ningyuan Wang [Mon, 19 Sep 2016 17:42:56 +0000 (17:42 +0000)]
Support fetching packet counters for wificond am: a12253e46c am: b04e955e16
am: e639025818

Change-Id: If89a26d270a7c0ae9ca5f38294060acd9815b227

7 years agoSupport fetching packet counters for wificond am: a12253e46c
Ningyuan Wang [Mon, 19 Sep 2016 17:39:55 +0000 (17:39 +0000)]
Support fetching packet counters for wificond am: a12253e46c
am: b04e955e16

Change-Id: I315610705b2d62093642a20e00abaebd82cfa1c6

7 years agoSupport fetching packet counters for wificond
Ningyuan Wang [Mon, 19 Sep 2016 17:36:54 +0000 (17:36 +0000)]
Support fetching packet counters for wificond
am: a12253e46c

Change-Id: Ibd67b45d41da194bbb4b160872fbfb80c246ea7e

7 years agoSupport fetching packet counters for wificond
Ningyuan Wang [Thu, 15 Sep 2016 17:53:07 +0000 (10:53 -0700)]
Support fetching packet counters for wificond

BUG=30978872
TEST=compile, manual tests

Change-Id: Ifa0dd9ce794a1cdb6da7e357d6873992091e3ea0

7 years agoMerge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580 am: b2de52e...
Ningyuan Wang [Fri, 16 Sep 2016 00:06:49 +0000 (00:06 +0000)]
Merge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580 am: b2de52e555 am: a8d7ebb212
am: cd0229e8a3

Change-Id: Icdba8de882f53758718d16e359948508a589bf1f

7 years agoMerge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580 am: b2de52e555
Ningyuan Wang [Fri, 16 Sep 2016 00:04:04 +0000 (00:04 +0000)]
Merge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580 am: b2de52e555
am: a8d7ebb212

Change-Id: Ia3c6c9e0c0cee802440daa2b6529b9ab7f3eba62

7 years agoMerge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580
Ningyuan Wang [Fri, 16 Sep 2016 00:01:04 +0000 (00:01 +0000)]
Merge "Add 'get interfaces' to wificond Binder interface." am: 4e7a07d580
am: b2de52e555

Change-Id: I1d65e76f60c5b8802a6cc335aa600bc1f0dd00c2

7 years agoMerge "Handle 0 nla_len for DebugLog()" am: 96b5919172 am: 5c20508090 am: 8c195fdf08
Ningyuan Wang [Thu, 15 Sep 2016 23:59:37 +0000 (23:59 +0000)]
Merge "Handle 0 nla_len for DebugLog()" am: 96b5919172 am: 5c20508090 am: 8c195fdf08
am: c686ce6eb8

Change-Id: Ifc22619a8ba5ec1962e123a032bedba42b7ec929

7 years agoMerge "Add 'get interfaces' to wificond Binder interface."
Ningyuan Wang [Thu, 15 Sep 2016 23:59:03 +0000 (23:59 +0000)]
Merge "Add 'get interfaces' to wificond Binder interface."
am: 4e7a07d580

Change-Id: Ifcff8af9880f5f2761777ad7fbda38d3c2ef637a