History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
016ca1ae5e33eb9529ae10c2510a56fa5c7fec4d 03-Jun-2016 Randy Pan <zpan@google.com> WCM: Periodic scan interval policy adjustment

Allow immediate single scan for scenarios such as user allows
untrusted networks, user forces a connectivity scan, and etc.
The minimum scan interval is enforced only for the screen state
change and connection state change cases.

Also removed the scan started by WCM for user selected network.
We connect to the user selected network by directly invoking
the wpa_supplicant select_network. Now WCM always sets the
'forceSelectNetwork' parameter to false when calling into
WifiQualifiedNetworkSelector.selectQualifiedNetwork(). So deleted
the unused variable mForceSelectNetwork.

Bug: 29103349
Change-Id: I1dd77af0cf7de85a96afac63de1344daab192968
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
f5dba8eb5e660932367fc650a2e2ca724df3734e 27-May-2016 Randy Pan <zpan@google.com> Reset single scan timestamp when disabling Wifi

This timestamp needs to be reset when WiFi is disabled. When WiFi
is enabled again, a connectivity scan starts immediately.
Otherwise it can be delayed because of the minimum periodic single
scan interval rule.

Bug: 28986330
Change-Id: I5a01dc267a05791eba34c87e6d9301bd998bf377
Tests: Wifi unit tests, manual test
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
3126f8d5394f8790e9c4ed4ab5c47fcc686e6803 25-May-2016 Randy Pan <zpan@google.com> Merge "Wifi: local log size reduction" into nyc-dev
15941215e85f924765f00779e9b5daff9ed6f118 24-May-2016 Randy Pan <zpan@google.com> Wifi: local log size reduction

Cut down the max number of lines allowed in Wifi LocalLogs.
Currently LocalLog checks the number of lines in its buffer
instead of total size in number of bytes. The buffer being
used can grow really big if some lines are lengthy.

Bug: 28865103
Change-Id: I7f77de1048bb465b79265b3ecb3a925e3a2659d9
Test: Wifi Framework Unit Tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
c2963eb07660a06592c60224279685166390217d 23-May-2016 Randy Pan <zpan@google.com> WifiConnectivityManager: enforce minimum single scan interval

Instead of always starting a single scan when the device enters
screen on state, we now keep track of how long it has been since
last periodic single scan and defer the new scan request.

Bug: 28887789
Tests: Wifi Unit Tests, manual tests
Change-Id: Iba5b5b7db897d3227d87f8d989246a1942525b9c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
9d6a7a1b5f9e9ea194fc6b15044c9d14d6aefabf 21-May-2016 Roshan Pius <rpius@google.com> Merge changes Ie64c11f3,I91272aa5 into nyc-dev

* changes:
WifiNetworHistory: Don't persist QNS blacklist
Change clock for time interval/elapsed measurments
fb196453c07daad5e525520cecad84cec5d89fb7 20-May-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Fall back to full band scan

Fall back to full band scan when the currently connected network is not
present in scan result cache. This could be a transient problem, but we
don't want to cause an error by sending an invalid scan request.

Changes needed for unit-testing this change:
1. Make WifiInfo a real instance so that we can set the values for the
public members directly accessed like tx/rx success rate.
2. Make |getCurrentWifiConfiguration| public so that it can be stubbed
out.

BUG: 28845855
TEST: Compiles & unit-test passes
Change-Id: I6cb2b7ad762b3f8f2ab36d66c4b1fcc39fafffed
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
ee0ab818341d44614ffe56ae73ecc08b974c2cbb 20-May-2016 Roshan Pius <rpius@google.com> Change clock for time interval/elapsed measurments

1. Use the clock retrieved from WifiInjector in more modules: QNS,
Scanner, WifiConfigManager.
2. Use |elapsedRealtime| for time interval/elapsed measurments. Things
like scan results, config elements still continue to use
|currentTimeMillis|

Also,
1. Had to make |tryEnableQualifiedNetwork| public to prevent mockito from
calling the real method in WifiConfigManager.
2. Move keystore also into WifiInjector.

BUG: 28299258
BUG: 28824635
Change-Id: I91272aa5665abb741da7530d8920d09c8c5ea41f
TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
ee9329dc901d59b8ae1e39edac99bd9d91306d2f 18-May-2016 Randy Pan <zpan@google.com> WifiConnectivityManager: partial scan only when connected

Starts partial scan only when Wifi is connected and traffic
is heavy. This is to work around an issue that WifiInfo
tx/rx rate is not updated to reflect the Wifi state. Ideally
the tx/rx rate should have been reset to 0 when Wifi is
disconnected.

Bug: 28831562
Change-Id: Ifa415b14e2b216654ddd8a2a0c885754da489bef
Test: Wifi Framework Unit Tests, manual tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
304d3451b9245f7c7bb5e81465561f0eb63b2473 16-May-2016 Randy Pan <zpan@google.com> WifiConfigManager: clean up makeChannelList()

Removed the unused input paramater 'restrict'. Updated its
callers.

Bug: 28786277
Change-Id: I44dc870ce3f353698187f76e8996cc77395b17d3
Tests: Wifi Framework Unit Tests, manual tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
46604d0d8d27c9dbdf986032de6e906e331f80ce 16-May-2016 Randy Pan <zpan@google.com> WifiStateMachine: clean up dead code

Cleaned up the dead code from the original exponential back off
scan implementation.

Bug: 28750989
Bug: 28070598

Change-Id: I8abf82cdaa3530fb514794b4004c5d3f15950672
Tests: Wifi Unit Tests, manual test
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
b32b649c815b0b50fd0127d9d4a4563c54a536fb 16-May-2016 Randy Pan <zpan@google.com> WifiConnectivityManagerTest: exponential backoff periodic scan

Add a couple of unit tests to cover the periodic scan exponential
backoff feature.

Extended MockAlarmManager class such that users can query a
pending alarm's trigger time.

Bug: 28750989
Change-Id: I9520477180786fce2937e5fa87f790f60f12a3da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
ae9e0ef3efdd579fab8d89b5c653f4069e7ac883 13-May-2016 Randy Pan <zpan@google.com> Restrict connectivty periodic scan

When the phone screen is on, the periodic scan interval is setup
in an exponential backoff fashion. Also, if the traffic is higher
than certain threshold, perform scan on certain channels only
instead of full band.

Bug: 28627603
Change-Id: I95b686d7835265d843edac7c005f661393ae5383
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
1d7d62393181cc36b6f87c3cf2151adc54275f9c 04-May-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Unit tests for metrics

Add couple of unit-tests for metrics. Had to migrate the unit-tests to use
mock alarm manager.

BUG: 27479439
BUG: 27704599
BUG: 28480516
Change-Id: I1424053c35799905612b37edeb679e7556568ca5
TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
bacd0dca59fbba9f650a421a3d3b0dc5fa2eb606 04-May-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Increment metrics

Make changes to increment the watchdog related metrics in
WifiConnectivityManager.

PS: Will need to add mock alarm manager to add unit-tests here. This is
done in the next CL.

BUG: 27479439
BUG: 27704599
Change-Id: I96e35e06d222056ec29488666619486a65746b38
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
00f5ad8bafa58232b799e5195783a444fa9168fe 02-May-2016 Randy Pan <zpan@google.com> Merge "WifiConnectivityManager: PNO retry for low RSSI network" into nyc-dev
3d09b9117df33608a43c1fbe0135123e2de9aea2 27-Apr-2016 Randy Pan <zpan@google.com> WifiConnectivityManager: PNO retry for low RSSI network

Added an exponential back off retry mechanism for networks
found by PNO scan but rejected by QNS due to their low RSSI
values.

Bug: 28402107
Change-Id: I8a69afb3d22fbd2f479073e6087893c24e5a5d39
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
50abba06efa7834b5309df561375e4a2e2df630d 29-Apr-2016 Randy Pan <zpan@google.com> Fix check on current connected/connecting network

Keep track of the network BSSID of the last connection attempt.
This BSSID is checked in case the phone is still in the process of
connecting to that network. mWifiInfo is checked for the currently
connected network. This is for the case that firmware performed
roaming automatically.

While there, addressed a checkstyle issue.

Bug: 28462151
Change-Id: Ia9316048e0549036de1c20bf1f3099cfcda9a75e
Test: WiFi unit tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
c8a21e495dfaa5c44e87fda330621a1ed6c8aace 26-Apr-2016 Randy Pan <zpan@google.com> WifiConnectivityManager: Run AlarmManager on WifiStateMachine thread

With WifiScanner also running on the WifiStateMachine thread,
WifiConnectivityManager is now exectued on a single thread context.

While there, fixed a few checkstyle issues.

Bug: 28369823
Change-Id: Ibf2b65be42d243deb61a68380a9011f4acc663b4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
d54ddacc42d9cd929d40b1df391895293bacafe2 22-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Add stats for rate limiting

BUG: 28242396
Change-Id: I53c0e91d2b9ee2731c0f74ef6376f4fb4e67f2e9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
c7338605251ff62f6e21737b1cfca865ce6f3dd9 22-Apr-2016 Roshan Pius <rpius@google.com> Merge changes I2bfae3a9,I3e247667 into nyc-dev

* changes:
WifiConnectivityManager: Unit tests for rate limit
WifiConnectivityManager: Connection rate limit
fa2ac2743307559e8dcc5aaf54873536315fbe62 19-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Unit tests for rate limit

Adding unit tests to verify the connection attempt rate limiting
functionality. Had to change the way system time is being fetched in
WifiConnectivityManager to achieve this.

BUG: 28242396
Change-Id: I2bfae3a9ea60cba1c3c1405dd5eb58208f12c2db
TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
4f5054647a2f4cac54a78d6e3bf3efa0727b488a 18-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Connection rate limit

Implement a rate limit for connection attempts to prevent us flapping
between networks.

While there,
Cleanup all the static time values to be more readable.

BUG: 28242396
Change-Id: I3e2476674e7239e000b93b95751acec3ea7bc8ce
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
7ce0f144104c68da40c196c16f73e2d0bcc50cc7 21-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Turn off ePno/Gscans

There is a lot of instability/unknowns for using ePno/Gscans for
connectivity purposes. Unless we've all of them hashed out, turn them
off.

BUG: 28300874
BUG: 28278197
Change-Id: Ifd650032237ac510687f0d374d31f7c9f13d18bd
TEST: Compiles & unit-test passes (Will send for ACTS testing).
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
14ef58beaf5c3ca9d3909ff67bbbc109521e29bf 19-Apr-2016 Roshan Pius <rpius@google.com> Merge "WifiConnectivityManager: Clear scan details after results" into nyc-dev
1e5ceb7ad228e29bf0f6b4706df49c684880c6e0 19-Apr-2016 Roshan Pius <rpius@google.com> Merge "WifiConnectivityManger: Enable background/ePNO scan" into nyc-dev
224198c8ba46f362a5df6d25f1b60e56f442b58b 18-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManager: Clear scan details after results

BUG: 28247321
Change-Id: I7913ae97ceb8566d7e0612455096362c661b6969
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
79e3bf8db6b566a5b3c7065cdd43f87f07e73747 08-Apr-2016 Roshan Pius <rpius@google.com> WifiConnectivityManger: Enable background/ePNO scan

Add a new flag to control both background scans & connected PNO scan in
WifiConnectivityManager (We may need to disable connected PNO even if we
enable gscan).
Also, change the disconnected PNO interval to 20 seconds.

BUG: 28020168
BUG: 27877781
Change-Id: I6e7224b02456573070a68dbe8f5a5b0d49f37fdc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
33e62df1fd2d065f6d626d800350e2063978a0ab 15-Apr-2016 Glen Kuhne <kuh@google.com> Merge "Created LastResortWatchdog class" into nyc-dev
eeb1a3c3cb4c09f925496000392d63b2b28301f7 14-Apr-2016 Randy Pan <zpan@google.com> Condition on if the phone is connected to an AP

In addition to check if the BSSID of the candidate network
recommended by QNS matches the one tracked by WifiStateMachine's
WifiInfo, check if the phone is in one of the supplicant
connecting states. This is to take the fact that WifiInfo stores
a diconnected network's BSSID into count.

Bug: 28163444
Change-Id: I682bedc26e9f2ea34cb006b859384a8e414b047d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
09abbe29be6e552a2531b0367bd6d29647d33767 30-Mar-2016 Glen Kuhne <kuh@google.com> Created LastResortWatchdog class

Created the WifiLastResortWatchdog class, that will handle restarting
the wifi stack as a last resort when wifi is failing.
Implemented the logic that tracks failure counts for all available
networks, and the maintaining of that list of available networks.

BUG=27856523

Change-Id: I8c944d033955ad7e5cc9484cce8f20cd3755312e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
329b3a9a9bc32d14649e91c15876ea7f95f148d1 13-Apr-2016 Roshan Pius <rpius@google.com> WifiConfigManager: Remove dead code

BUG: 28164778
Change-Id: I1e09b8039dbf7d220fd699b5be3b29330d02a305
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
48444cb4214a48a3a0bf4bbb93945c2aa68c9980 01-Apr-2016 Mitchell Wills <mwills@google.com> Move single scan blaming from WifiStateMachine to WifiScanningService

Bug: 27247460
Change-Id: Id855329450659b8b762fcb0bf9dba5a0b551604e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
73a52d3336a40903965b946f6d3624a223ad5aac 07-Apr-2016 Samuel Tan <samueltan@google.com> WifiConfigManager: rename member and constant fields

Rename fields in WifiConfigManager to properly reflect that
they are members (m* prefix), and constants (all caps with
underscores). To accomodate this change, also modify uses
of these fields outside WifiConfigManager (e.g. in WifiStateMachine).

Also:
- Remove default values given to WifiConfigManager member fields
that are initialized in its constructor, since the initalization renders
the default values useless.
- Remove member fields and constants that are unused.
- Replace the "*Milli" suffix on fields with "Ms".
- Re-ordered fields in a logical manner (i.e. static, public, then
private).
- Fixed checkstyle issues.

BUG: 27300099
Change-Id: Ifaef76bc04960f12f09267a581b9a02da7c5ab5c
TEST: 'runtest frameworks-wifi' passes.
TEST: Checkstyle returns only missing javadoc errors.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
f37079e3d8f4aca3242a971cbaef732fe1b75bde 07-Apr-2016 Roshan Pius <rpius@google.com> WifiScanner: Remove pnosetting stopPno API (2/2)

BUG: 27532350
Change-Id: I291732cc693b6042ae995194094c4fec774dfbf1
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
466158a6669d51541ce6c5c4e04a71dad36cdb4e 01-Apr-2016 Randy Pan <zpan@google.com> Enable/disable WifiConnectivityManager at runtime

Add support to turn on and off WifiConnectivityManager at
runtime.

Bug: 27968625
Change-Id: I3583d1564a78a6db7227d2fa5a91e859cef83776
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java
84d962ec8f487f824214744498bba505a6db0c59 11-Feb-2016 Randy Pan <zpan@google.com> Wifi Connectivity Manager

Created a submodule which manages all the WiFi connectivity
related operations. It starts a scan when screen turns on/off,
WiFI gets connected/disconnected or on demand. The scan results
are passed to QNS for it to recommend a network to connect to.

Clean up the relevant logic from WifiStateMachine.

Bug: 26666366
Bug: 27227489
Bug: 27677391
Bug: 27364917
Change-Id: I65405506ff55940d0b23f1407e476bff6fce47fa
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiConnectivityManager.java