OSDN Git Service

android-x86/system-connectivity-wificond.git
7 years agoPlumb through scan failure events
Ningyuan Wang [Wed, 25 Jan 2017 00:06:22 +0000 (00:06 +0000)]
Plumb through scan failure events
am: 11ddcb073b

Change-Id: I92bf40ca695f9cb36b767a66514edc1f26839ba8

7 years agoMerge "Support PNO scan for wificond scanner"
Ningyuan Wang [Tue, 24 Jan 2017 22:36:07 +0000 (22:36 +0000)]
Merge "Support PNO scan for wificond scanner"
am: d44ea6ff89

Change-Id: I69441cd777961b5e296c080bb8394d9be88585e4

7 years agoMerge "Support PNO scan for wificond scanner"
Ningyuan Wang [Tue, 24 Jan 2017 22:32:35 +0000 (22:32 +0000)]
Merge "Support PNO scan for wificond scanner"

7 years agoHandle leading number before an object in parcel
Ningyuan Wang [Tue, 24 Jan 2017 22:30:45 +0000 (22:30 +0000)]
Handle leading number before an object in parcel
am: 08882f8250

Change-Id: I1ce7de83e6ad68dd4c4ee494fad5fe17ef510dde

7 years agoHandle leading number before an object in parcel
Ningyuan Wang [Tue, 24 Jan 2017 19:23:54 +0000 (11:23 -0800)]
Handle leading number before an object in parcel

Java writeTypedList() implementation uses a leading number
with either 0 or 1 before an object in parcel.
0 means this object is null.
1 means this object is not null.
C++ code should handle it accordingly.

Bug: 34359499
Change-Id: I2e107ffa00573d4ffa31041a14dbec581e09a23a
Test: compile, unit tests, manual tests.

7 years agoPlumb through scan failure events
Ningyuan Wang [Mon, 23 Jan 2017 21:30:19 +0000 (13:30 -0800)]
Plumb through scan failure events

Bug: 34611323
Change-Id: I72046b93c1c8270d96d2ead595220cd1ffc6f28a
Test: compile, unit tests

7 years agoSupport PNO scan for wificond scanner
Ningyuan Wang [Sat, 10 Dec 2016 00:35:49 +0000 (16:35 -0800)]
Support PNO scan for wificond scanner

This also fixes the aidl file naming.
Functions should start with lower case alphabet.

Bug: 33398008
Test: compile

Change-Id: Icb401d398c819ce1f54fb32da116e21fb835ec2b

7 years agoAdd a hidden flag to PnoNetwork
Ningyuan Wang [Mon, 23 Jan 2017 19:13:27 +0000 (19:13 +0000)]
Add a hidden flag to PnoNetwork
am: 28a1923d15

Change-Id: If0bb84fa268f42cbf48a027c0c33460dd314eda4

7 years agoAdd support of randomized mac address to wificond ScanUtils
Ningyuan Wang [Sat, 21 Jan 2017 01:54:37 +0000 (01:54 +0000)]
Add support of randomized mac address to wificond ScanUtils
am: 13b4064f88

Change-Id: I7fe9e49690faa2bdcf8f2a48bda1b971d1ab43c3

7 years agoAdd a hidden flag to PnoNetwork
Ningyuan Wang [Sat, 21 Jan 2017 00:27:51 +0000 (16:27 -0800)]
Add a hidden flag to PnoNetwork

We need to specify are the requested networks are hidden when
requesting a PNO scan.

Bug: 33398008
Change-Id: Iab773c59cb4d4ee95bd038eb0445606c8cfdd09e
Test: compile, unit tests

7 years agoAdd scan result notification interfaces to wificond scanner
Ningyuan Wang [Fri, 20 Jan 2017 20:43:14 +0000 (20:43 +0000)]
Add scan result notification interfaces to wificond scanner
am: 48fa2dc030

Change-Id: Ie06a551dc2653014863aabddbae0bebaacc54cbe

7 years agoAdd support of randomized mac address to wificond ScanUtils
Ningyuan Wang [Fri, 9 Dec 2016 23:56:25 +0000 (15:56 -0800)]
Add support of randomized mac address to wificond ScanUtils

Bug: 33218723
Change-Id: I81e3507f4cc46894b8ae35f0df0814006ddc1ead
Test: compile

7 years agoAdd scan result notification interfaces to wificond scanner
Ningyuan Wang [Fri, 9 Dec 2016 22:57:19 +0000 (14:57 -0800)]
Add scan result notification interfaces to wificond scanner

Bug: 33398008
Test: compile

Change-Id: I10eb85b67be4b5b1829c006f92e0cc4d37a9be7d

7 years agoAdd scan() to wificond scanner
Ningyuan Wang [Fri, 20 Jan 2017 03:23:13 +0000 (03:23 +0000)]
Add scan() to wificond scanner
am: a0687c403a

Change-Id: If95052b84e95521d0ddfb9b1bbf4ac5aafa1795b

7 years agoAdd getScanResults() to wificond scanner
Ningyuan Wang [Fri, 20 Jan 2017 03:23:12 +0000 (03:23 +0000)]
Add getScanResults() to wificond scanner
am: 069d339f16

Change-Id: Ie8024bff4688b3888bca5ba065ba7fcc17688e6d

7 years agoAdd scan() to wificond scanner
Ningyuan Wang [Fri, 9 Dec 2016 19:53:12 +0000 (11:53 -0800)]
Add scan() to wificond scanner

Bug: 33398008
Change-Id: Ib2009547ccc8fc368bd92e88a216b61cefe9a8ad
Test: compile

7 years agoAdd getScanResults() to wificond scanner
Ningyuan Wang [Fri, 9 Dec 2016 19:35:00 +0000 (11:35 -0800)]
Add getScanResults() to wificond scanner

Bug: 33398008
Change-Id: I40c456f9b2c4ff4ba971cb09f2b5e3904519a250
Test: compile, manual tests

7 years agoMerge "Add extra comment for length of nested parcelable objects list"
Ningyuan Wang [Thu, 19 Jan 2017 22:42:31 +0000 (22:42 +0000)]
Merge "Add extra comment for length of nested parcelable objects list"
am: 6afb41077a

Change-Id: I16518dd5c3df2690591158bbe2d618f827b6e0eb

7 years agoMerge "Remove extra writing of array length in PnoNetwork"
Ningyuan Wang [Thu, 19 Jan 2017 22:42:22 +0000 (22:42 +0000)]
Merge "Remove extra writing of array length in PnoNetwork"
am: 54ae9c03d1

Change-Id: Id068dc071c786ee92bd2d82b30d8161101e54570

7 years agoMerge "Remove extra writing of array length in ScanResult"
Ningyuan Wang [Thu, 19 Jan 2017 22:42:13 +0000 (22:42 +0000)]
Merge "Remove extra writing of array length in ScanResult"
am: 3dd2fd2a67

Change-Id: Ied4081688d74eee7799f8459c8ae07c0f4446451

7 years agoMerge "Remove extra writing of array length in HiddenNetwork"
Ningyuan Wang [Thu, 19 Jan 2017 22:42:05 +0000 (22:42 +0000)]
Merge "Remove extra writing of array length in HiddenNetwork"
am: 95ff9fc9ac

Change-Id: I027ca450cda0e09126c4e56c508631a8eac4631f

7 years agoMerge "Add extra comment for length of nested parcelable objects list"
Ningyuan Wang [Thu, 19 Jan 2017 22:39:56 +0000 (22:39 +0000)]
Merge "Add extra comment for length of nested parcelable objects list"

7 years agoMerge "Remove extra writing of array length in PnoNetwork"
Ningyuan Wang [Thu, 19 Jan 2017 22:39:43 +0000 (22:39 +0000)]
Merge "Remove extra writing of array length in PnoNetwork"

7 years agoMerge "Remove extra writing of array length in ScanResult"
Ningyuan Wang [Thu, 19 Jan 2017 22:39:12 +0000 (22:39 +0000)]
Merge "Remove extra writing of array length in ScanResult"

7 years agoMerge "Remove extra writing of array length in HiddenNetwork"
Ningyuan Wang [Thu, 19 Jan 2017 22:38:59 +0000 (22:38 +0000)]
Merge "Remove extra writing of array length in HiddenNetwork"

7 years agoAdd unit tests for wificond ScanUtils
Ningyuan Wang [Thu, 19 Jan 2017 02:34:34 +0000 (02:34 +0000)]
Add unit tests for wificond ScanUtils
am: 65b365fe4b

Change-Id: I4fd84872cf0f40b87c34c409373c7e0934f6c2e8

7 years agoRemove extra writing of array length in PnoNetwork
Ningyuan Wang [Wed, 18 Jan 2017 18:01:15 +0000 (10:01 -0800)]
Remove extra writing of array length in PnoNetwork

Bug: 34359597
Change-Id: Ibceb624de48000852ee6dc406ec1a9bdbae70ee9
Test: compile, unit test

7 years agoAdd extra comment for length of nested parcelable objects list
Ningyuan Wang [Wed, 18 Jan 2017 01:39:02 +0000 (17:39 -0800)]
Add extra comment for length of nested parcelable objects list

Bug: 34359499
Change-Id: Ic7f2da47e14d78e61a3211bc3f54cb73c081ef49
Test: compile

7 years agoRemove extra writing of array length in ScanResult
Ningyuan Wang [Wed, 18 Jan 2017 00:18:24 +0000 (16:18 -0800)]
Remove extra writing of array length in ScanResult

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

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 unit tests for wificond ScanUtils
Ningyuan Wang [Thu, 8 Dec 2016 17:58:20 +0000 (09:58 -0800)]
Add unit tests for wificond ScanUtils

Bug: 30915875
Test: compile, unit tests

Change-Id: Ic8f913663110f64dfb0387502e60afdfb130b0b5

7 years agoAdd netlink helper function to request a full scan
Ningyuan Wang [Tue, 10 Jan 2017 21:48:58 +0000 (21:48 +0000)]
Add netlink helper function to request a full scan
am: 72312e2e46

Change-Id: I4eecb9c5d5373cfccb640801a26e23967a28de07

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, 9 Jan 2017 23:04:54 +0000 (23:04 +0000)]
Add interfaces for getting available channels to WifiScannerImpl
am: 87a24f50bf

Change-Id: I5f8003d6bae383f7fa0b9a50822c573441470084

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:17:57 +0000 (23:17 +0000)]
Merge changes I16fab137,I528112cf
am: 3b94529d89

Change-Id: I0361b708d22ae0d1c78f48c398c8cc9ec8dcf2c8

7 years agoAdd parcelable class PnoSettings
Ningyuan Wang [Thu, 8 Dec 2016 23:17:56 +0000 (23:17 +0000)]
Add parcelable class PnoSettings
am: 072c61998e

Change-Id: I4593fce6fa7a4119e49f405a8819b830951c877e

7 years agoAdd parcelable class PnoNetwork
Ningyuan Wang [Thu, 8 Dec 2016 23:17:55 +0000 (23:17 +0000)]
Add parcelable class PnoNetwork
am: f00a90959a

Change-Id: I654114fb8eec7e384cd2dad1ece40f1d78bc22cc

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 unit tests for NetlinkUtils::GetWiphyInfo()
Ningyuan Wang [Thu, 8 Dec 2016 17:40:33 +0000 (17:40 +0000)]
Add unit tests for NetlinkUtils::GetWiphyInfo()
am: 38632b29f9

Change-Id: I590370a09e17f2a2049417bd7bceabca7a4191ca

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