OSDN Git Service

android-x86/system-connectivity-wificond.git
7 years agoRemove extra writing of array length in HiddenNetwork
Ningyuan Wang [Wed, 18 Jan 2017 00:04:28 +0000 (16:04 -0800)]
Remove extra writing of array length in HiddenNetwork

Bug: 34359597
Test: compile, unit tests
Change-Id: If543f3bb3f8ec4e5a9a5bcbe9f7ff524998d215d

7 years agoAdd netlink helper function to request a full scan
Ningyuan Wang [Thu, 1 Dec 2016 00:14:22 +0000 (16:14 -0800)]
Add netlink helper function to request a full scan

Bug: 33251936
Test: compile, unit tests, and manual test
Change-Id: I724adc9cd3a3a439f3d4ccbfb389e6752b6dc2d6

7 years agoAdd interfaces for getting available channels to WifiScannerImpl
Ningyuan Wang [Mon, 5 Dec 2016 21:25:28 +0000 (13:25 -0800)]
Add interfaces for getting available channels to WifiScannerImpl

This adds the following three aidl interfaces to wificond ScannerImpl:

int[] getAvailable2gChannels();
int[] getAvailable5gNonDFSChannels();
int[] getAvailableDFSChannels();

This also adds the corresponding integration tests.

Bug: 33297764
Test: compile, unit tests, integration tests

Change-Id: Idb14740769aa2ab368f311ae099b53005382a007

7 years agoMerge changes I16fab137,I528112cf
Ningyuan Wang [Thu, 8 Dec 2016 23:10:06 +0000 (23:10 +0000)]
Merge changes I16fab137,I528112cf

* changes:
  Add parcelable class PnoSettings
  Add parcelable class PnoNetwork

7 years agoAdd parcelable class PnoSettings
Ningyuan Wang [Wed, 7 Dec 2016 23:01:56 +0000 (15:01 -0800)]
Add parcelable class PnoSettings

Bug: 33011588
Test: compile, unit tests

Change-Id: I16fab137cd6a9d60bea96955997a43b0674ed709

7 years agoAdd parcelable class PnoNetwork
Ningyuan Wang [Wed, 7 Dec 2016 21:22:36 +0000 (13:22 -0800)]
Add parcelable class PnoNetwork

Bug: 33011588
Change-Id: I528112cf4483313511380fd13daf0e7ac0237d19
Test: compile, unit tests

7 years agoAdd unit tests for NetlinkUtils::GetWiphyInfo()
Ningyuan Wang [Fri, 2 Dec 2016 04:29:05 +0000 (20:29 -0800)]
Add unit tests for NetlinkUtils::GetWiphyInfo()

Bug: 33279651
Test: compile, unit test

Change-Id: Id67fd10ceb3058a0792aa81fce112d4cd5778ba2

7 years agoMerge "Fix some typos"
Ningyuan Wang [Tue, 6 Dec 2016 21:17:03 +0000 (21:17 +0000)]
Merge "Fix some typos"
am: a4932a137c

Change-Id: Ifd038dc7719ea8372983ec8a00a3192aa608cb2d

7 years agoMerge "Fix some typos"
Ningyuan Wang [Tue, 6 Dec 2016 21:12:36 +0000 (21:12 +0000)]
Merge "Fix some typos"

7 years agoExpose wiphy capabilities to ScannerImpl
Ningyuan Wang [Mon, 5 Dec 2016 20:09:12 +0000 (20:09 +0000)]
Expose wiphy capabilities to ScannerImpl
am: 2c74cae9b5

Change-Id: I46a389483f8b6ca23c58712a0793c7449146fa1b

7 years agoAdd parcelable class SingleScanSettings
Ningyuan Wang [Mon, 5 Dec 2016 18:08:27 +0000 (18:08 +0000)]
Add parcelable class SingleScanSettings
am: 3afd158172

Change-Id: I4a2f9f8a1d4057fd10cd1c1f5967998375c5f8b0

7 years agoAdd parcelable class HiddenNetwork
Ningyuan Wang [Mon, 5 Dec 2016 18:08:26 +0000 (18:08 +0000)]
Add parcelable class HiddenNetwork
am: 941064744e

Change-Id: Ie3b8ca5d5d7c71ebc0df37b77fcfe1cce8b62692

7 years agoAdd parcelable class ChannelSettings
Ningyuan Wang [Mon, 5 Dec 2016 18:08:25 +0000 (18:08 +0000)]
Add parcelable class ChannelSettings
am: cbdd2d05eb

Change-Id: I5d43185b985779d4e88c6e9ba2d76581a122cdd5

7 years agoCreate parcelable_utils.h for helper macros
Ningyuan Wang [Mon, 5 Dec 2016 18:08:24 +0000 (18:08 +0000)]
Create parcelable_utils.h for helper macros
am: fa1a494f56

Change-Id: I593cbdd1033f0be4966bbd79deab7682f5ce7e72

7 years agoExpose wiphy capabilities to ScannerImpl
Ningyuan Wang [Tue, 29 Nov 2016 23:50:14 +0000 (15:50 -0800)]
Expose wiphy capabilities to ScannerImpl

This adds a struct WiphyFeatures to save wiphy feature flags
from netlink wiphy message. Currently we only add fields for
randomized mac address support.

This also allows ClientInterfaceImpl to expose channel info, scan
capabilities and wiphy features to ScannerImpl object.

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

Change-Id: Iac9355e45a3cf2011120fc6a91ccfb2dee434951

7 years agoAdd parcelable class SingleScanSettings
Ningyuan Wang [Wed, 30 Nov 2016 23:59:50 +0000 (15:59 -0800)]
Add parcelable class SingleScanSettings

This adds parcelable class SingleScanSettings on wificond side.
Class SingleScanSettings is going to be used for Java framework
to send single scan requests.

This also adds the corresponding unit tests.

Bug: 33011588
Change-Id: I071edfca5680ef39b8fa1998ecf14f33ccafe207
Test: compile, unit test

7 years agoAdd parcelable class HiddenNetwork
Ningyuan Wang [Wed, 30 Nov 2016 23:48:41 +0000 (15:48 -0800)]
Add parcelable class HiddenNetwork

This adds parcelable class HiddenNetwork on wificond side.
Class HiddenNetwork is going to be used for Java framework
to send scan requests. We only add field SSID for now.

This also adds the corresponding unit tests.

Bug: 33011588
Test: compile, unit test

Change-Id: Ia55a409bb815e40264333da7fa71ca32d450af61

7 years agoAdd parcelable class ChannelSettings
Ningyuan Wang [Wed, 30 Nov 2016 23:31:12 +0000 (15:31 -0800)]
Add parcelable class ChannelSettings

This adds parcelable class ChannelSettings on wificond side.
Class ChannelSettings is going to be used for Java framework
to send scan requests. We only add field frequency for single
scan implementaion. We will add more fields to support batched
scan in later CLs.

This also adds the corresponding unit tests.

Bug: 33011588
Test: compile, unit tests

Change-Id: I6ddb6ed2c7958256ea6d4492fc763d05fa8ea89c

7 years agoCreate parcelable_utils.h for helper macros
Ningyuan Wang [Wed, 30 Nov 2016 23:20:04 +0000 (15:20 -0800)]
Create parcelable_utils.h for helper macros

This creates a new file parceable_utils.h for helper macros used in
C++ binder parcelable classes.

Currently this only includes macro RETURN_IF_FAILED.

Bug: None
Change-Id: I02b1e7feecb9c3879961f1bf6ac50458332c1a91
Test: compile, unit tests

7 years agoAdd WifiScannerImpl object stub implementation
Ningyuan Wang [Wed, 23 Nov 2016 20:25:55 +0000 (20:25 +0000)]
Add WifiScannerImpl object stub implementation
am: c2b0dce5c3

Change-Id: I015538b9c792c0c00b4f0fd193b5a9801fafaed2

7 years agoFix some typos
Ningyuan Wang [Wed, 23 Nov 2016 20:11:36 +0000 (12:11 -0800)]
Fix some typos

Bug: None
Change-Id: If062034cdfd023a13544c1f9d02c8e4d1ee200cd
Test: Compile

7 years agoAdd WifiScannerImpl object stub implementation
Ningyuan Wang [Fri, 18 Nov 2016 01:54:02 +0000 (17:54 -0800)]
Add WifiScannerImpl object stub implementation

This includes:
1. Add getWifiScannerImpl() to IClientInterface. This call will
return an IWifiScannerImpl object.

2. Remove scanning result listening functionalities out of the
ClientInterface class. These functionalities will be added back
to ScannerImpl class later.

Bug: 31115360
Test: compile, unit tests, integration tests

Change-Id: Ie4ffcbe0d63b2db61e66093df2dda26493e2cd77

7 years agowificond: return association frequency upon signal poll
Ningyuan Wang [Fri, 11 Nov 2016 23:21:45 +0000 (23:21 +0000)]
wificond: return association frequency upon signal poll
am: 903b9d029c

Change-Id: Idc7b44f8392c404ca4fc72fd2685d85281500c0c

7 years agowificond: return association frequency upon signal poll
Ningyuan Wang [Fri, 11 Nov 2016 19:17:54 +0000 (11:17 -0800)]
wificond: return association frequency upon signal poll

This allows wificond to return a cached frequency upon signal poll.
This frequency is updated upon MLME events.

Bug: 31595463
Test: compile, manual test

Change-Id: Iae82a8143ee87c44bade1c376a55025fae61f490

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
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
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()"