OSDN Git Service

android-x86/system-connectivity-wificond.git
7 years agoTemporarily disable wificond integration test am: dd0ecbe499
Ningyuan Wang [Tue, 7 Mar 2017 03:00:18 +0000 (03:00 +0000)]
Temporarily disable wificond integration test am: dd0ecbe499
am: a5b86eefa8

Change-Id: I119f6decc38211884fec40de90d9572275276c13

7 years agoTemporarily disable wificond integration test
Ningyuan Wang [Tue, 7 Mar 2017 02:52:16 +0000 (02:52 +0000)]
Temporarily disable wificond integration test
am: dd0ecbe499

Change-Id: Id55e54b5eb458b7ae6bc1ff9ae42f8335d62a918

7 years agoMerge "wificond: Use Vendor HAL for mode change" am: a056ab1fb2
Roshan Pius [Tue, 7 Mar 2017 02:45:24 +0000 (02:45 +0000)]
Merge "wificond: Use Vendor HAL for mode change" am: a056ab1fb2
am: 2761ba84ad

Change-Id: I8b04f5c31b240cf639b4629c261ccb6ff63add21

7 years agoMerge "wificond: Use Vendor HAL for mode change"
Roshan Pius [Tue, 7 Mar 2017 02:43:00 +0000 (02:43 +0000)]
Merge "wificond: Use Vendor HAL for mode change"
am: a056ab1fb2

Change-Id: Icecb191368e41e4890f8a1b78aa5c58d3eb74ddd

7 years agoTemporarily disable wificond integration test
Ningyuan Wang [Tue, 7 Mar 2017 00:57:10 +0000 (16:57 -0800)]
Temporarily disable wificond integration test

Bug: 35923520
Test: Run this script

Change-Id: I43c6bc73af5d5547b38947b028a817a7987cb163

7 years agoMerge "wificond: Use Vendor HAL for mode change"
Roshan Pius [Tue, 7 Mar 2017 00:37:50 +0000 (00:37 +0000)]
Merge "wificond: Use Vendor HAL for mode change"

7 years agoExplicitly returns false on IsValid() failure am: 6d6e3a3ed9
Ningyuan Wang [Tue, 7 Mar 2017 00:22:02 +0000 (00:22 +0000)]
Explicitly returns false on IsValid() failure am: 6d6e3a3ed9
am: d5d3f08a5e

Change-Id: Icb378cd3a0ea14a3d63424c84f67959461b7df7e

7 years agoExplicitly returns false on IsValid() failure
Ningyuan Wang [Tue, 7 Mar 2017 00:19:31 +0000 (00:19 +0000)]
Explicitly returns false on IsValid() failure
am: 6d6e3a3ed9

Change-Id: Ibed236da75b42cac6d112bf15e7e1e0bcc2a04d4

7 years agoExplicitly returns false on IsValid() failure
Ningyuan Wang [Mon, 6 Mar 2017 19:21:51 +0000 (11:21 -0800)]
Explicitly returns false on IsValid() failure

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

7 years agoMerge "Do not return failure if scan results is empty" am: b2ab66f39f
Ningyuan Wang [Fri, 3 Mar 2017 16:43:26 +0000 (16:43 +0000)]
Merge "Do not return failure if scan results is empty" am: b2ab66f39f
am: 175758ab06

Change-Id: Id9c4f06dc19ea660f2505eb0327464694a49920e

7 years agoDo not log if NL80211_FREQUENCY_ATTR_FREQ is missing am: b9b35ddd26
Ningyuan Wang [Fri, 3 Mar 2017 16:43:19 +0000 (16:43 +0000)]
Do not log if NL80211_FREQUENCY_ATTR_FREQ is missing am: b9b35ddd26
am: 9240b12bd0

Change-Id: I8b47266e9d6ac2a6aedd34aa1b39cd7cc9ffb002

7 years agoMerge "Do not return failure if scan results is empty"
Ningyuan Wang [Fri, 3 Mar 2017 16:39:57 +0000 (16:39 +0000)]
Merge "Do not return failure if scan results is empty"
am: b2ab66f39f

Change-Id: Ia66047bdc66521efc42913a6d432856ccb6128df

7 years agoDo not log if NL80211_FREQUENCY_ATTR_FREQ is missing
Ningyuan Wang [Fri, 3 Mar 2017 16:39:49 +0000 (16:39 +0000)]
Do not log if NL80211_FREQUENCY_ATTR_FREQ is missing
am: b9b35ddd26

Change-Id: I00e7999974aa73b0ba66e4901bc3e8f5af8641ca

7 years agoMerge "Do not return failure if scan results is empty"
Ningyuan Wang [Fri, 3 Mar 2017 16:36:41 +0000 (16:36 +0000)]
Merge "Do not return failure if scan results is empty"

7 years agoDo not return failure if scan results is empty
Ningyuan Wang [Thu, 2 Mar 2017 20:18:29 +0000 (12:18 -0800)]
Do not return failure if scan results is empty

It may happen if there is no AP in the environment.
In this case we only need to log instead of returning
error.

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

7 years agoDo not log if NL80211_FREQUENCY_ATTR_FREQ is missing
Ningyuan Wang [Thu, 2 Mar 2017 18:37:21 +0000 (10:37 -0800)]
Do not log if NL80211_FREQUENCY_ATTR_FREQ is missing

Bug: None
Test: compile
Change-Id: I2648883013ceb6daa37f13303bc704478c9e9222

7 years agowificond: Use Vendor HAL for mode change
Roshan Pius [Thu, 2 Mar 2017 01:13:40 +0000 (17:13 -0800)]
wificond: Use Vendor HAL for mode change

Also,
Removed the usage of DriverTool & HalTool from wificond.

Bug: 35765841
Test: Will send for integration tests.
Change-Id: Ie029816bec5b168e34b3b18892b9da82285c66c0

7 years agoMerge "Get NL80211_BSS_BEACON_TSF for wificond" am: 58271c3933
Ningyuan Wang [Wed, 1 Mar 2017 23:05:04 +0000 (23:05 +0000)]
Merge "Get NL80211_BSS_BEACON_TSF for wificond" am: 58271c3933
am: 80cfa22860

Change-Id: I56716b617a304e99922e5d50b2a78b5f4113201d

7 years agoMerge "Get NL80211_BSS_BEACON_TSF for wificond"
Ningyuan Wang [Wed, 1 Mar 2017 23:00:33 +0000 (23:00 +0000)]
Merge "Get NL80211_BSS_BEACON_TSF for wificond"
am: 58271c3933

Change-Id: I38ff0dbfa0864ea9d26cfafd5697b21dce789b14

7 years agoMerge "Get NL80211_BSS_BEACON_TSF for wificond"
Treehugger Robot [Wed, 1 Mar 2017 22:51:53 +0000 (22:51 +0000)]
Merge "Get NL80211_BSS_BEACON_TSF for wificond"

7 years agoCleanup AP logic after Hostapd is down am: 9136ae3b1e
Ningyuan Wang [Wed, 1 Mar 2017 21:03:30 +0000 (21:03 +0000)]
Cleanup AP logic after Hostapd is down am: 9136ae3b1e
am: 3dac7b0df7

Change-Id: Iaf5398ac6278e6318d19401a8bb58b77d6177cf3

7 years agoCleanup AP logic after Hostapd is down
Ningyuan Wang [Wed, 1 Mar 2017 21:01:15 +0000 (21:01 +0000)]
Cleanup AP logic after Hostapd is down
am: 9136ae3b1e

Change-Id: Icfa4ff4a38e59c847e7059771165d68f3aeeb1a9

7 years agoCleanup AP logic after Hostapd is down
Ningyuan Wang [Tue, 28 Feb 2017 23:49:08 +0000 (15:49 -0800)]
Cleanup AP logic after Hostapd is down

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

Change-Id: Ic7e6c593ded19955da7a85d60730bf8e9afd679a

7 years agoGet NL80211_BSS_BEACON_TSF for wificond
Ningyuan Wang [Wed, 1 Mar 2017 19:17:11 +0000 (11:17 -0800)]
Get NL80211_BSS_BEACON_TSF for wificond

Bug: 35872043
Change-Id: I68d9dcd2c6cf44efdf4dd843c1ef051e58f142c6
Test: compile, unit tests, manual test

7 years agoMerge "Fix wificiond scanner integration test" am: 4cdf87972f
Ningyuan Wang [Tue, 28 Feb 2017 20:55:57 +0000 (20:55 +0000)]
Merge "Fix wificiond scanner integration test" am: 4cdf87972f
am: aa4aaa94bd

Change-Id: Ia3a615d231ad29fdf8af6b620db359241be028e1

7 years agoMerge "Fix wificiond scanner integration test"
Ningyuan Wang [Tue, 28 Feb 2017 20:54:23 +0000 (20:54 +0000)]
Merge "Fix wificiond scanner integration test"
am: 4cdf87972f

Change-Id: I4efaff07d22ac02f197e7778429d10af874a975a

7 years agoMerge "Fix wificiond scanner integration test"
Ningyuan Wang [Tue, 28 Feb 2017 20:50:47 +0000 (20:50 +0000)]
Merge "Fix wificiond scanner integration test"

7 years agoMerge "Revert "Temrorily disable mac address randomization"" am: fd2bd4ab24
Ningyuan Wang [Tue, 28 Feb 2017 02:29:54 +0000 (02:29 +0000)]
Merge "Revert "Temrorily disable mac address randomization"" am: fd2bd4ab24
am: 7adf862531

Change-Id: I8e062e7a5657f881d9924610fd1129e147b43b04

7 years agoMerge "Revert "Temrorily disable mac address randomization""
Ningyuan Wang [Tue, 28 Feb 2017 02:27:23 +0000 (02:27 +0000)]
Merge "Revert "Temrorily disable mac address randomization""
am: fd2bd4ab24

Change-Id: I01b594da595fb48e404a194929443ec604e5f957

7 years agoMerge "Revert "Temrorily disable mac address randomization""
Treehugger Robot [Tue, 28 Feb 2017 02:24:05 +0000 (02:24 +0000)]
Merge "Revert "Temrorily disable mac address randomization""

7 years agoFix wificiond scanner integration test
Ningyuan Wang [Mon, 27 Feb 2017 23:52:28 +0000 (15:52 -0800)]
Fix wificiond scanner integration test

This fixes the misuse of unique_ptr.

Bug: None
Change-Id: Ia10ff2e081256b3233b16436b5e3c99db2a5c4dc
Test: compile, unit tests, integration test

7 years agoMerge "Do not request MAC address randomization when associated" am: cd9ee43fd7
Ningyuan Wang [Tue, 28 Feb 2017 01:04:47 +0000 (01:04 +0000)]
Merge "Do not request MAC address randomization when associated" am: cd9ee43fd7
am: e1f203891c

Change-Id: I78ff39f9a356a9138e46b11cd38f5f12e0f98faa

7 years agoMerge "Do not request MAC address randomization when associated"
Ningyuan Wang [Tue, 28 Feb 2017 01:02:48 +0000 (01:02 +0000)]
Merge "Do not request MAC address randomization when associated"
am: cd9ee43fd7

Change-Id: Ib4a513637b54d2be0611ef26b11f12dc7c51e9fe

7 years agoMerge "Do not request MAC address randomization when associated"
Treehugger Robot [Tue, 28 Feb 2017 00:59:01 +0000 (00:59 +0000)]
Merge "Do not request MAC address randomization when associated"

7 years agoDo not request MAC address randomization when associated
Ningyuan Wang [Mon, 27 Feb 2017 21:10:32 +0000 (13:10 -0800)]
Do not request MAC address randomization when associated

This CL includes the following changes:
1. Enables netlink manager to monitor NL80211_CMD_DISCONNECT and
NL80211_CMD_DISASSOCIATE events
2. Makes ClientInterfaceImpl listen to these additional MLME events.
3. Makes clientInterfaceImpl keep tracking of the association state.
4. Exposes the association state to ScannerImpl, and makes ScannerImpl
only request MAC address randomization when interface is not associated.

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

Change-Id: I7a5eeaf6329e1142a0012f27e0f72e6514ba7f94

7 years agoRevert "Temrorily disable mac address randomization"
Ningyuan Wang [Mon, 27 Feb 2017 23:19:44 +0000 (23:19 +0000)]
Revert "Temrorily disable mac address randomization"

This reverts commit 92ab3a7162786698c4309f13c497d91a0836f606.

Change-Id: I75346143aa8935857aad34695ce9bd0d9854199a

7 years agoTemrorily disable mac address randomization am: 92ab3a7162
Ningyuan Wang [Mon, 27 Feb 2017 21:37:34 +0000 (21:37 +0000)]
Temrorily disable mac address randomization am: 92ab3a7162
am: 39794cb06f

Change-Id: If2f732c9b188faeeaff2710ce8d1ffc1769f229d

7 years agoTemrorily disable mac address randomization
Ningyuan Wang [Mon, 27 Feb 2017 21:35:34 +0000 (21:35 +0000)]
Temrorily disable mac address randomization
am: 92ab3a7162

Change-Id: Ibbc41b3e3d8a5222ec4031d8bc94a893518613f8

7 years agoTemrorily disable mac address randomization
Ningyuan Wang [Mon, 27 Feb 2017 19:31:08 +0000 (11:31 -0800)]
Temrorily disable mac address randomization

Bug: 35800644
Test: compile, unit tests

Change-Id: I2b44a4b2de64dea72ec09b0fa756bbaee88851de

7 years agoGet up-to-date channel info from kernel am: 0513378db6
Ningyuan Wang [Fri, 24 Feb 2017 22:51:55 +0000 (22:51 +0000)]
Get up-to-date channel info from kernel am: 0513378db6
am: 4d407554ac

Change-Id: I6ac8e4494f0216998dc83221da68a2f3cd59496b

7 years agoGet up-to-date channel info from kernel
Ningyuan Wang [Fri, 24 Feb 2017 22:49:25 +0000 (22:49 +0000)]
Get up-to-date channel info from kernel
am: 0513378db6

Change-Id: I7583ef18de5b39114fb23f927bac20ab247f75ea

7 years agoGet up-to-date channel info from kernel
Ningyuan Wang [Thu, 23 Feb 2017 22:35:24 +0000 (14:35 -0800)]
Get up-to-date channel info from kernel

Bug: 35707768
Test: compile, unit tests, integration test

Change-Id: Ifb0beb9321d632ec76df3d368c10e4531743e4c3

7 years agoChange some wificond aidl interfaces to oneway am: 4a4dfe51f4
Ningyuan Wang [Fri, 24 Feb 2017 20:03:55 +0000 (20:03 +0000)]
Change some wificond aidl interfaces to oneway am: 4a4dfe51f4
am: dc33a52de1

Change-Id: Iae0d7b2871f0568949747d9acc674133d11eb94b

7 years agoChange some wificond aidl interfaces to oneway
Ningyuan Wang [Fri, 24 Feb 2017 20:01:24 +0000 (20:01 +0000)]
Change some wificond aidl interfaces to oneway
am: 4a4dfe51f4

Change-Id: I60513eedc3394ea675507fe18e6463c7b67b04a8

7 years agoChange some wificond aidl interfaces to oneway
Ningyuan Wang [Fri, 24 Feb 2017 17:50:19 +0000 (09:50 -0800)]
Change some wificond aidl interfaces to oneway

Some interfaces does not require synchrounous behavior.
We can mark them as oneway.

Bug: 35726133
Change-Id: I7cc9ad5c27b812bc0105c8c52b1e8e25db9721e6
Test: compile, manual test

7 years agoDo not rely on the destructor of shared object ScannerImpl am: 8759e74833
Ningyuan Wang [Thu, 23 Feb 2017 01:14:10 +0000 (01:14 +0000)]
Do not rely on the destructor of shared object ScannerImpl am: 8759e74833
am: a765184b45

Change-Id: I5337324173ca5cc1dfcc268ae8060656f555a889

7 years agoDo not rely on the destructor of shared object ScannerImpl
Ningyuan Wang [Thu, 23 Feb 2017 01:12:10 +0000 (01:12 +0000)]
Do not rely on the destructor of shared object ScannerImpl
am: 8759e74833

Change-Id: I86825da03b0926da0bac10f6f2cb5479dc5e1f4e

7 years agoMore logging for wificond scanner am: 844d7c58aa
Ningyuan Wang [Thu, 23 Feb 2017 00:43:37 +0000 (00:43 +0000)]
More logging for wificond scanner am: 844d7c58aa
am: c4398ada87

Change-Id: I7ccbda8cd4a3f410e46a490643c751d9e4abd330

7 years agoMore logging for wificond scanner
Ningyuan Wang [Thu, 23 Feb 2017 00:41:01 +0000 (00:41 +0000)]
More logging for wificond scanner
am: 844d7c58aa

Change-Id: I5a112d8f3e77fc14a80e6154902ea4d6152bdd1e

7 years agoDo not rely on the destructor of shared object ScannerImpl
Ningyuan Wang [Thu, 23 Feb 2017 00:26:11 +0000 (16:26 -0800)]
Do not rely on the destructor of shared object ScannerImpl

We should control the life time of these shared object instead
of relying on java garbage collection.
This will ensure the correct order to avoid race conditions.

Bug: 35664767
Change-Id: I415da1e70c93ceeb79b78c4ce9e833e86313c505
Test: compile, unit tests, manual tests

7 years agoMore logging for wificond scanner
Ningyuan Wang [Wed, 22 Feb 2017 17:54:41 +0000 (09:54 -0800)]
More logging for wificond scanner

Bug: 35664772
Change-Id: I6b3bb4fc01e3c06dea246e3cd55c23f27d3a2195
Test: compile, manual test

7 years agoMerge "Wildcard ssid should be zero-length" am: 5a2e243cf3 am: 2604bf902e
Ningyuan Wang [Fri, 17 Feb 2017 02:26:42 +0000 (02:26 +0000)]
Merge "Wildcard ssid should be zero-length" am: 5a2e243cf3 am: 2604bf902e
am: 38aa836913

Change-Id: Ic54e972531e21179938b6f21c0204532ce65aa5f

7 years agoMerge "Wildcard ssid should be zero-length" am: 5a2e243cf3
Ningyuan Wang [Fri, 17 Feb 2017 02:20:00 +0000 (02:20 +0000)]
Merge "Wildcard ssid should be zero-length" am: 5a2e243cf3
am: 2604bf902e

Change-Id: I5994a07444d75839eccdaf66719c68d3d779fd5b

7 years agoMonitor regulatory domain change am: 495e5b35c9 am: 77d3ba4ddb
Ningyuan Wang [Fri, 17 Feb 2017 02:15:54 +0000 (02:15 +0000)]
Monitor regulatory domain change am: 495e5b35c9 am: 77d3ba4ddb
am: 1ba46f730f

Change-Id: Ib512e2b6110b08d79343b3b4a5c7833e5ba7b62f

7 years agoMerge "Wildcard ssid should be zero-length"
Ningyuan Wang [Fri, 17 Feb 2017 02:15:29 +0000 (02:15 +0000)]
Merge "Wildcard ssid should be zero-length"
am: 5a2e243cf3

Change-Id: Ie919fba9f3db278e79c10baba33fbed30302c858

7 years agoMonitor regulatory domain change am: 495e5b35c9
Ningyuan Wang [Fri, 17 Feb 2017 02:11:22 +0000 (02:11 +0000)]
Monitor regulatory domain change am: 495e5b35c9
am: 77d3ba4ddb

Change-Id: I7c58672d39b0a46159444bf2b9ee57636666a031

7 years agoMerge "Wildcard ssid should be zero-length"
Treehugger Robot [Fri, 17 Feb 2017 02:09:00 +0000 (02:09 +0000)]
Merge "Wildcard ssid should be zero-length"

7 years agoMonitor regulatory domain change
Ningyuan Wang [Fri, 17 Feb 2017 02:07:19 +0000 (02:07 +0000)]
Monitor regulatory domain change
am: 495e5b35c9

Change-Id: Iacb132b89520c5a1ecdcb1ec0d83623dd25d9f68

7 years agoWildcard ssid should be zero-length
Ningyuan Wang [Fri, 17 Feb 2017 00:03:32 +0000 (16:03 -0800)]
Wildcard ssid should be zero-length

Bug: 35441881
Change-Id: I6a1a8683a57a0478330b9b05121cf99481013e3c
Test: compile, unit tests, manual tests

7 years agoMonitor regulatory domain change
Ningyuan Wang [Fri, 2 Dec 2016 23:09:53 +0000 (15:09 -0800)]
Monitor regulatory domain change

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

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

This also adds the corresponding unit tests.

Bug: 35150708
Test: compile, unit tests, manual tests
Change-Id: Idbcf9ebf25f4e7be3b371ec3531b6b52303476e8

7 years agoMerge "Skip scan result with invalid ssid" am: b516002a75 am: 97d13f435d
Ningyuan Wang [Wed, 15 Feb 2017 02:04:48 +0000 (02:04 +0000)]
Merge "Skip scan result with invalid ssid" am: b516002a75 am: 97d13f435d
am: 0876a27270

Change-Id: Ib5f927b9eb906f56c720438156d34f7544972c67

7 years agoMerge "Skip scan result with invalid ssid" am: b516002a75
Ningyuan Wang [Wed, 15 Feb 2017 02:02:17 +0000 (02:02 +0000)]
Merge "Skip scan result with invalid ssid" am: b516002a75
am: 97d13f435d

Change-Id: I6af77253454eade90467938758fb6e558e22f3e9

7 years agoMerge "Skip scan result with invalid ssid"
Ningyuan Wang [Wed, 15 Feb 2017 01:59:18 +0000 (01:59 +0000)]
Merge "Skip scan result with invalid ssid"
am: b516002a75

Change-Id: Ic9a4cd963d33d022dc8d4d9033761e1a22037309

7 years agoMerge "Skip scan result with invalid ssid"
Ningyuan Wang [Wed, 15 Feb 2017 01:56:15 +0000 (01:56 +0000)]
Merge "Skip scan result with invalid ssid"

7 years agoBetter logging for GetWiphyInfo() am: 384f74dea0 am: 9a83da9411
Ningyuan Wang [Tue, 14 Feb 2017 22:42:33 +0000 (22:42 +0000)]
Better logging for GetWiphyInfo() am: 384f74dea0 am: 9a83da9411
am: b4e4ced22d

Change-Id: Ie0f25a14e169a9d0db7228d552b681bb0c23bc86

7 years agoBetter logging for GetWiphyInfo() am: 384f74dea0
Ningyuan Wang [Tue, 14 Feb 2017 22:39:19 +0000 (22:39 +0000)]
Better logging for GetWiphyInfo() am: 384f74dea0
am: 9a83da9411

Change-Id: I0ea994dc6565ac380c5f9040b6c598df7affdedd

7 years agoBetter logging for GetWiphyInfo()
Ningyuan Wang [Tue, 14 Feb 2017 22:37:45 +0000 (22:37 +0000)]
Better logging for GetWiphyInfo()
am: 384f74dea0

Change-Id: Ib4b081c40a94312ed71d149893c040933ad59d84

7 years agoSkip scan result with invalid ssid
Ningyuan Wang [Tue, 14 Feb 2017 18:27:59 +0000 (10:27 -0800)]
Skip scan result with invalid ssid

Bug: 35349025
Change-Id: I05c6d2f524c1b5e8ea5e3fd80443c7e7ff63ed44
Test: compile, unit tests, integration tests

7 years agoBetter logging for GetWiphyInfo()
Ningyuan Wang [Fri, 10 Feb 2017 02:08:40 +0000 (18:08 -0800)]
Better logging for GetWiphyInfo()

NL80211_ATTR_WIPHY_BANDS contains a list of anonymous attributes.
Each anonymous attribute represents a band.
NL80211_BAND_ATTR_FREQ is expected to be included in every anonymous
attribute to specifying supported channels for this band.

However, sometimes one of the anonymous attribute provided by kernel is
empty, where NL80211_BAND_ATTR_FREQ is not included. This always happens
on some type of devices. We should not log an error for this.

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

Change-Id: I0ef953266744713af627a17e7d10f04b937e0648

7 years agoRemove StartFullScan() am: 8f62fdd747 am: e1cb995af5
Ningyuan Wang [Thu, 9 Feb 2017 02:38:24 +0000 (02:38 +0000)]
Remove StartFullScan() am: 8f62fdd747 am: e1cb995af5
am: 947368b24e

Change-Id: I793f89e86765f444c46d9a57a4a32fd42e3fac0f

7 years agoRemove StartFullScan() am: 8f62fdd747
Ningyuan Wang [Thu, 9 Feb 2017 02:33:54 +0000 (02:33 +0000)]
Remove StartFullScan() am: 8f62fdd747
am: e1cb995af5

Change-Id: I9a6b4759c78be0bd28c43a5e228746136ce7c6dc

7 years agoRemove StartFullScan()
Ningyuan Wang [Thu, 9 Feb 2017 02:31:32 +0000 (02:31 +0000)]
Remove StartFullScan()
am: 8f62fdd747

Change-Id: I9522a915183c7fada157c7e778f606a2f7929041

7 years agoRemove StartFullScan()
Ningyuan Wang [Wed, 8 Feb 2017 18:43:30 +0000 (10:43 -0800)]
Remove StartFullScan()

Bug: 35103495
Change-Id: I2004de17898b5c8f59eea88679fe60e6cb57dc87
Test: compile, unit tests

7 years agoRemove is_full_scan_ from SingleScanSettings am: 05aa181bfe am: 8e2318bc2c
Ningyuan Wang [Wed, 8 Feb 2017 03:28:27 +0000 (03:28 +0000)]
Remove is_full_scan_ from SingleScanSettings am: 05aa181bfe am: 8e2318bc2c
am: 7da356fbd1

Change-Id: I176306b69ea2c8f29e38e96960e6ab8321aadd78

7 years agoRemove is_full_scan_ from SingleScanSettings am: 05aa181bfe
Ningyuan Wang [Wed, 8 Feb 2017 03:25:59 +0000 (03:25 +0000)]
Remove is_full_scan_ from SingleScanSettings am: 05aa181bfe
am: 8e2318bc2c

Change-Id: I81dd61b9cdc1d033df14b6465d2bd48f77ce7b5e

7 years agoRemove is_full_scan_ from SingleScanSettings
Ningyuan Wang [Wed, 8 Feb 2017 03:23:29 +0000 (03:23 +0000)]
Remove is_full_scan_ from SingleScanSettings
am: 05aa181bfe

Change-Id: I1a8cb428faa5676e57ad9218fca3f9f3cc750250

7 years agoRemove is_full_scan_ from SingleScanSettings
Ningyuan Wang [Tue, 7 Feb 2017 22:01:08 +0000 (14:01 -0800)]
Remove is_full_scan_ from SingleScanSettings

Bug: 35103495
Change-Id: Id4cef15484790cb3ad684cc683903b31996d592b
Test: compile, unit tests

7 years agoEnforce wificond scanner capability checks am: 4adb05f87e am: 25d2f8694b
Ningyuan Wang [Wed, 1 Feb 2017 00:15:01 +0000 (00:15 +0000)]
Enforce wificond scanner capability checks am: 4adb05f87e am: 25d2f8694b
am: 4351214342

Change-Id: Id98e1a5ad5838c1d0045df173b4bff8c06f6a010

7 years agoEnforce wificond scanner capability checks am: 4adb05f87e
Ningyuan Wang [Wed, 1 Feb 2017 00:12:35 +0000 (00:12 +0000)]
Enforce wificond scanner capability checks am: 4adb05f87e
am: 25d2f8694b

Change-Id: I44d743e4a2e424e7780725289b69f2a3254468f9

7 years agoEnforce wificond scanner capability checks
Ningyuan Wang [Wed, 1 Feb 2017 00:10:32 +0000 (00:10 +0000)]
Enforce wificond scanner capability checks
am: 4adb05f87e

Change-Id: Ia7132582066131f26368749a69d5192089906a42

7 years agoMerge "Avoid unnecessary copies of scan result" am: f34611c778 am: f3975e836a
Ningyuan Wang [Tue, 31 Jan 2017 21:24:47 +0000 (21:24 +0000)]
Merge "Avoid unnecessary copies of scan result" am: f34611c778 am: f3975e836a
am: 8ccad0d3a5

Change-Id: I917c90ad0d48c13195ce3424fb1386bb54ece427

7 years agoMerge "Avoid unnecessary copies of scan result" am: f34611c778
Ningyuan Wang [Tue, 31 Jan 2017 21:22:21 +0000 (21:22 +0000)]
Merge "Avoid unnecessary copies of scan result" am: f34611c778
am: f3975e836a

Change-Id: I69f310c987be8310291bb35ac7e72d8e4d333c06

7 years agoMerge "Avoid unnecessary copies of scan result"
Ningyuan Wang [Tue, 31 Jan 2017 21:20:19 +0000 (21:20 +0000)]
Merge "Avoid unnecessary copies of scan result"
am: f34611c778

Change-Id: I4414dabc080dd1ae5c1afb517df3865b4b7efe35

7 years agoEnforce wificond scanner capability checks
Ningyuan Wang [Wed, 25 Jan 2017 00:44:30 +0000 (16:44 -0800)]
Enforce wificond scanner capability checks

Wiphy reports its capabilities for handling scan requests.
This enables wificond scanner to trim incoming scan request
if request exceeds the wiphy capabilities.
E.g. Framework requests more scanning ssids than the
number wiphy can handle.

This also fixes a few code formatting issues.

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

Change-Id: I96d76df13f287f8bf873d9f7818e75604cab3149

7 years agoMerge "Avoid unnecessary copies of scan result"
Ningyuan Wang [Tue, 31 Jan 2017 21:14:48 +0000 (21:14 +0000)]
Merge "Avoid unnecessary copies of scan result"

7 years agoMaintain scanning status correctly for wificond scanner am: 6befb90430 am: e1f265fc68
Ningyuan Wang [Tue, 31 Jan 2017 19:44:20 +0000 (19:44 +0000)]
Maintain scanning status correctly for wificond scanner am: 6befb90430 am: e1f265fc68
am: 193577e2c4

Change-Id: I88f9bd5337012ede223b4d97d94ff1d6353f7388

7 years agoMaintain scanning status correctly for wificond scanner am: 6befb90430
Ningyuan Wang [Tue, 31 Jan 2017 19:41:55 +0000 (19:41 +0000)]
Maintain scanning status correctly for wificond scanner am: 6befb90430
am: e1f265fc68

Change-Id: I39a3170c4627bd38e478dba9359a75d323a060f0

7 years agoMaintain scanning status correctly for wificond scanner
Ningyuan Wang [Tue, 31 Jan 2017 19:39:21 +0000 (19:39 +0000)]
Maintain scanning status correctly for wificond scanner
am: 6befb90430

Change-Id: Ia4783da82248f0f75ad32b83ae14d84bba8917e5

7 years agoMaintain scanning status correctly for wificond scanner
Ningyuan Wang [Wed, 25 Jan 2017 20:56:46 +0000 (12:56 -0800)]
Maintain scanning status correctly for wificond scanner

This enable wificond scanner to track one-shot scan and pno
scan status by maintaning |scan_started| and |pno_scan_started|.

This also allows wificond scanner to subscribe scan events from
kernel all the time even if there is no external subscriber.
This ensures wificond scanner keeps tracks of all scan events so
|scan_started| and |pno_scan_started| can be set correctly.

Bug: 33398008
Test: compile, unit tests, manual tests
Change-Id: Id58a77a975e1199f25e14d6f81a39018513aefeb

7 years agoAvoid unnecessary copies of scan result
Ningyuan Wang [Thu, 26 Jan 2017 00:25:47 +0000 (16:25 -0800)]
Avoid unnecessary copies of scan result

This also fixes some typos.

Bug: None
Test: compile, unit tests, manaul tests
Change-Id: Idd3311bc4c9a9e1483e628d2a3856a876aa9aeaf

7 years agoMerge "Plumb through scheduled scan failures" am: a9060aa81d am: ac656f85b2
Ningyuan Wang [Wed, 25 Jan 2017 00:51:25 +0000 (00:51 +0000)]
Merge "Plumb through scheduled scan failures" am: a9060aa81d am: ac656f85b2
am: 5fc786232b

Change-Id: I46c3defcf5cd318f479b9fde57f97c5bea9e25fa

7 years agoMerge "Plumb through scheduled scan failures" am: a9060aa81d
Ningyuan Wang [Wed, 25 Jan 2017 00:49:24 +0000 (00:49 +0000)]
Merge "Plumb through scheduled scan failures" am: a9060aa81d
am: ac656f85b2

Change-Id: I7ea391dfa59590191813290e2519b5ca15331200

7 years agoMerge "Plumb through scheduled scan failures"
Ningyuan Wang [Wed, 25 Jan 2017 00:47:24 +0000 (00:47 +0000)]
Merge "Plumb through scheduled scan failures"
am: a9060aa81d

Change-Id: I2b3250398a9dc6b0640ace673e17dc8b97124e7f

7 years agoMerge "Plumb through scheduled scan failures"
Treehugger Robot [Wed, 25 Jan 2017 00:44:22 +0000 (00:44 +0000)]
Merge "Plumb through scheduled scan failures"

7 years agoMerge changes I1e9eb842,I72046b93 am: 40658a5b36 am: dc79aa8030
Ningyuan Wang [Wed, 25 Jan 2017 00:10:24 +0000 (00:10 +0000)]
Merge changes I1e9eb842,I72046b93 am: 40658a5b36 am: dc79aa8030
am: a01713fffe

Change-Id: I7045bdbafcfced562e1aa193edccb6175d922397

7 years agoPlumb through scheduled scan results am: cac79589ac am: 687bc19ed1
Ningyuan Wang [Wed, 25 Jan 2017 00:10:23 +0000 (00:10 +0000)]
Plumb through scheduled scan results am: cac79589ac am: 687bc19ed1
am: cb2c944541

Change-Id: I9004dbb3c33ccf26a09cfccaf6ce4e9ad25903bc

7 years agoPlumb through scan failure events am: 11ddcb073b am: 10ebe19006
Ningyuan Wang [Wed, 25 Jan 2017 00:10:22 +0000 (00:10 +0000)]
Plumb through scan failure events am: 11ddcb073b am: 10ebe19006
am: 1204da5d99

Change-Id: I7676e482d72b82cf9570b0626f1abdd1dbc63b6a

7 years agoMerge changes I1e9eb842,I72046b93 am: 40658a5b36
Ningyuan Wang [Wed, 25 Jan 2017 00:08:27 +0000 (00:08 +0000)]
Merge changes I1e9eb842,I72046b93 am: 40658a5b36
am: dc79aa8030

Change-Id: I1fdb3f35059c436eb69161471a8a6f394ec5e9c5

7 years agoPlumb through scheduled scan results am: cac79589ac
Ningyuan Wang [Wed, 25 Jan 2017 00:08:25 +0000 (00:08 +0000)]
Plumb through scheduled scan results am: cac79589ac
am: 687bc19ed1

Change-Id: I7692f16defb5f014061dada20e55a796f948c10f

7 years agoPlumb through scan failure events am: 11ddcb073b
Ningyuan Wang [Wed, 25 Jan 2017 00:08:24 +0000 (00:08 +0000)]
Plumb through scan failure events am: 11ddcb073b
am: 10ebe19006

Change-Id: I79d94d4e6ea2da1e212f9a27c2e081f9702a9c0a