OSDN Git Service

android-x86/system-connectivity-wificond.git
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"
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"
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
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
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: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: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: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
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 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
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
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: 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 "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

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

Change-Id: I99d81f7bccfa954c1aee3cf6a9abe475d562cef8

7 years agoMerge "Add 'get interfaces' to wificond Binder interface."
Treehugger Robot [Thu, 15 Sep 2016 23:55:09 +0000 (23:55 +0000)]
Merge "Add 'get interfaces' to wificond Binder interface."

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

Change-Id: If79e558c01edeb8e12b49173023eeeac4ea8b0fe

7 years agoMerge "Handle 0 nla_len for DebugLog()"
Ningyuan Wang [Thu, 15 Sep 2016 23:51:02 +0000 (23:51 +0000)]
Merge "Handle 0 nla_len for DebugLog()"
am: 96b5919172

Change-Id: I6961a4151a934757fb3c2eeec2c76f2760398600

7 years agoMerge "Handle 0 nla_len for DebugLog()"
Treehugger Robot [Thu, 15 Sep 2016 23:43:12 +0000 (23:43 +0000)]
Merge "Handle 0 nla_len for DebugLog()"

7 years agoAdd 'get interfaces' to wificond Binder interface.
Ningyuan Wang [Mon, 12 Sep 2016 17:49:45 +0000 (10:49 -0700)]
Add 'get interfaces' to wificond Binder interface.

This also adds the missing 'override' to enableSupplicant() and
disableSupplicant().

BUG=31430211
TEST=compile, manual tests

Change-Id: I23db45a41d1dcbf5d3294b50e94961eb2de6bf4a

7 years agoAdd a nl80211 helper function to get band info and scan capabilities am: e9a13390cb...
Ningyuan Wang [Thu, 15 Sep 2016 19:44:22 +0000 (19:44 +0000)]
Add a nl80211 helper function to get band info and scan capabilities am: e9a13390cb am: 5e24556e6e
am: 6b209bdb14

Change-Id: I7bd775d150226ff7fec0d689dc0e524501ed4f1d

7 years agoAdd a nl80211 helper function to get band info and scan capabilities am: e9a13390cb
Ningyuan Wang [Thu, 15 Sep 2016 19:41:51 +0000 (19:41 +0000)]
Add a nl80211 helper function to get band info and scan capabilities am: e9a13390cb
am: 5e24556e6e

Change-Id: I0046ec3694afd29c5f33a0b32402c6eb3ff50dfc

7 years agoAdd a nl80211 helper function to get band info and scan capabilities
Ningyuan Wang [Thu, 15 Sep 2016 19:39:52 +0000 (19:39 +0000)]
Add a nl80211 helper function to get band info and scan capabilities
am: e9a13390cb

Change-Id: I5dcd28a119216a2dd0dcae75764fb5db14176456

7 years agoAdd a nl80211 helper function to get band info and scan capabilities
Ningyuan Wang [Mon, 12 Sep 2016 23:33:31 +0000 (16:33 -0700)]
Add a nl80211 helper function to get band info and scan capabilities

This also fixes a few lines of logging.

BUG=31458138
BUG=31429695
TEST=compile, manual tests

Change-Id: I309d9ce82eb80e79a97149bd16e1caf5e13d674b

7 years agoHandle 0 nla_len for DebugLog()
Ningyuan Wang [Tue, 13 Sep 2016 22:20:01 +0000 (15:20 -0700)]
Handle 0 nla_len for DebugLog()

This fixes the infinite loop caused by 0 nla_len.
This also fixes a typo.

BUG=None
TEST=compile, manual tests

Change-Id: I903d5d3f179a96f1105e0d66f26b59d473996dfe

7 years agoMerge "Broadcast interface changes through binder" am: 4086519433 am: f341c268dd
Ningyuan Wang [Mon, 12 Sep 2016 23:57:56 +0000 (23:57 +0000)]
Merge "Broadcast interface changes through binder" am: 4086519433 am: f341c268dd
am: a3e7c4baa1

Change-Id: Ifc73839639f3ecbbe0fd1095ee92e107325b6f38

7 years agoMerge "Broadcast interface changes through binder" am: 4086519433
Ningyuan Wang [Mon, 12 Sep 2016 23:55:50 +0000 (23:55 +0000)]
Merge "Broadcast interface changes through binder" am: 4086519433
am: f341c268dd

Change-Id: I1e3e75a996c2efb4130e9bdd18ba5e3fdf3eb156

7 years agoMerge "Broadcast interface changes through binder"
Ningyuan Wang [Mon, 12 Sep 2016 23:52:52 +0000 (23:52 +0000)]
Merge "Broadcast interface changes through binder"
am: 4086519433

Change-Id: I69e95b893a89926a2f855bbe66a899b7a66f7272

7 years agoMerge "Broadcast interface changes through binder"
Ningyuan Wang [Mon, 12 Sep 2016 23:47:29 +0000 (23:47 +0000)]
Merge "Broadcast interface changes through binder"

7 years agoMerge "Retrieve list of attributes from a nested attribute" am: fc3c67a237 am: 7452dcd4c3
Ningyuan Wang [Mon, 12 Sep 2016 21:40:01 +0000 (21:40 +0000)]
Merge "Retrieve list of attributes from a nested attribute" am: fc3c67a237 am: 7452dcd4c3
am: 64358fef74

Change-Id: Ib100c26c3605f728d4e0414d3df6c321d2a43e00

7 years agoMerge "Retrieve list of attributes from a nested attribute" am: fc3c67a237
Ningyuan Wang [Mon, 12 Sep 2016 21:37:30 +0000 (21:37 +0000)]
Merge "Retrieve list of attributes from a nested attribute" am: fc3c67a237
am: 7452dcd4c3

Change-Id: Ie52036b44e153a1070d6abce87b026d6dbd994e0

7 years agoMerge "Retrieve list of attributes from a nested attribute"
Ningyuan Wang [Mon, 12 Sep 2016 21:35:00 +0000 (21:35 +0000)]
Merge "Retrieve list of attributes from a nested attribute"
am: fc3c67a237

Change-Id: I447559a6faa4a53a54ff9457453fd3779a948155

7 years agoMerge "Retrieve list of attributes from a nested attribute"
Ningyuan Wang [Mon, 12 Sep 2016 21:23:05 +0000 (21:23 +0000)]
Merge "Retrieve list of attributes from a nested attribute"

7 years agoBroadcast interface changes through binder
Ningyuan Wang [Fri, 9 Sep 2016 20:15:37 +0000 (13:15 -0700)]
Broadcast interface changes through binder

This broadcasts interface ready/towndown events after we
create/remove an interface.

BUG=31349441
TEST=compile, unit tests
Change-Id: I8d4f20ddb82db1bb53d12f3feeb06d4e761be689

7 years agoMerge "Make failure to take ownership of firmware path fatal" am: 47d4d3437d am:...
Christopher Wiley [Sat, 10 Sep 2016 00:55:09 +0000 (00:55 +0000)]
Merge "Make failure to take ownership of firmware path fatal" am: 47d4d3437d am: 00cb4dcaee
am: a24f184922

Change-Id: I636f2a3c16a641a4a5c5b63a56853153100bd13e

7 years agoMerge "Make failure to take ownership of firmware path fatal" am: 47d4d3437d
Christopher Wiley [Sat, 10 Sep 2016 00:52:00 +0000 (00:52 +0000)]
Merge "Make failure to take ownership of firmware path fatal" am: 47d4d3437d
am: 00cb4dcaee

Change-Id: I5a2a206b3768f900c90a54e0e681e3280890b8b4

7 years agoMerge "Make failure to take ownership of firmware path fatal"
Christopher Wiley [Sat, 10 Sep 2016 00:48:30 +0000 (00:48 +0000)]
Merge "Make failure to take ownership of firmware path fatal"
am: 47d4d3437d

Change-Id: Ib69c5a183725614ce7b9e9c17dd7df9938c476a7

7 years agoMerge "Make failure to take ownership of firmware path fatal"
Treehugger Robot [Sat, 10 Sep 2016 00:33:09 +0000 (00:33 +0000)]
Merge "Make failure to take ownership of firmware path fatal"

7 years agoAdd binder interface for registering/unregistering interface changes am: dea7ebe307...
Ningyuan Wang [Fri, 9 Sep 2016 22:38:05 +0000 (22:38 +0000)]
Add binder interface for registering/unregistering interface changes am: dea7ebe307 am: faf95f77f2
am: 2136f020f5

Change-Id: Iaecc14317343bde3ef81cd812c9cc1f843e1a17a

7 years agoAdd binder interface for registering/unregistering interface changes am: dea7ebe307
Ningyuan Wang [Fri, 9 Sep 2016 22:35:05 +0000 (22:35 +0000)]
Add binder interface for registering/unregistering interface changes am: dea7ebe307
am: faf95f77f2

Change-Id: I65b894d1d44743fe5f921e1c5bf1c10f13434b28

7 years agoAdd binder interface for registering/unregistering interface changes
Ningyuan Wang [Fri, 9 Sep 2016 22:32:35 +0000 (22:32 +0000)]
Add binder interface for registering/unregistering interface changes
am: dea7ebe307

Change-Id: I1650a2ee1443f9141f5e828a1057917c3b4ee482

7 years agoAdd binder interface for registering/unregistering interface changes
Ningyuan Wang [Fri, 9 Sep 2016 17:31:17 +0000 (10:31 -0700)]
Add binder interface for registering/unregistering interface changes

BUG=31349441
TEST=compile, unit tests
Change-Id: I0fa00ecdeec46246875f7de2479dab1470d102e5

7 years agoMake failure to take ownership of firmware path fatal
Christopher Wiley [Fri, 9 Sep 2016 20:29:44 +0000 (13:29 -0700)]
Make failure to take ownership of firmware path fatal

Bug: 31225859
Test: Can connect to wifi networks after this change.
Test: unit, integration tests pass
Change-Id: I79a2657d0a6898dc6db581b4c10d98adcb907bb1

7 years agoMerge "Add capability field to wificond scan result" am: 5811a5ac46 am: 23baf302a5
Ningyuan Wang [Fri, 9 Sep 2016 00:25:15 +0000 (00:25 +0000)]
Merge "Add capability field to wificond scan result" am: 5811a5ac46 am: 23baf302a5
am: 8ff75c6b8f

Change-Id: I9f07c08837e37349ef4eae241b472a0de9cee0d6

7 years agoMerge "Add capability field to wificond scan result" am: 5811a5ac46
Ningyuan Wang [Fri, 9 Sep 2016 00:22:45 +0000 (00:22 +0000)]
Merge "Add capability field to wificond scan result" am: 5811a5ac46
am: 23baf302a5

Change-Id: I048c6f8823345a38a198b4374a450c952b639115

7 years agoMerge "Add capability field to wificond scan result"
Ningyuan Wang [Fri, 9 Sep 2016 00:20:15 +0000 (00:20 +0000)]
Merge "Add capability field to wificond scan result"
am: 5811a5ac46

Change-Id: Ie7b537ee9a22cc98c8aecbf2857abe804c174f45

7 years agoMerge "Add capability field to wificond scan result"
Ningyuan Wang [Fri, 9 Sep 2016 00:13:13 +0000 (00:13 +0000)]
Merge "Add capability field to wificond scan result"

7 years agoRetrieve list of attributes from a nested attribute
Ningyuan Wang [Tue, 6 Sep 2016 18:48:15 +0000 (11:48 -0700)]
Retrieve list of attributes from a nested attribute

This adds helper functions to retrieve a list of attribute
values or nested attributes from a nested attribute.
This helps us get all sub-attributes in one pass.

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

Change-Id: I3f9090b65f8e08c2a2643b35ec6db3340e1effd2

7 years agoMerge "Return on invalid attribute length for DebugLog()" am: 3a6630a841 am: 6f103e177f
Ningyuan Wang [Thu, 8 Sep 2016 22:12:07 +0000 (22:12 +0000)]
Merge "Return on invalid attribute length for DebugLog()" am: 3a6630a841 am: 6f103e177f
am: cc517adfe7

Change-Id: Icbfc9cca281fa851d54d8cc7e0bd5458bd211525