History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
73b62544391a0a15d9ca2dd7feb7797751026c0f 07-Jun-2016 Randy Pan <zpan@google.com> QNS: cut down BSSID blacklist time to 5 minutes

Today the association to an AP can be rejected because of either
the rejection from the AP or the STA host driver time-out. The
WiFi framework receives the same ASSOC_REJECT messages for both
scenarios. Cut down the blacklist time value to 5 mins for now.
When we can differentiate these two types of rejections,
the blacklist time for the real AP rejection can go back to
30 minutes.

Bug: 28899826
Change-Id: I785e13140bfdfbefbae17320c247ae1c8134fa92
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
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/WifiQualifiedNetworkSelector.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/WifiQualifiedNetworkSelector.java
4623817eb6b784f160763a22b3e06891ab11cf20 03-May-2016 Glen Kuhne <kuh@google.com> Fix null configs passed to WifiLastResortWatchdog

This CL fixes a bug where scan results were being paired with null
configs instead of their associated WifiConfiguration, and passed to
WifiLastResortWatchdog. This lead to the watchdog trigger potentially
not activating.

BUG=28476482

Change-Id: I0a10fc2309cf2199001dc440ed93ceaa3c891dba
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
1e5f0667515826cdc9c85a63a82c4c48cad446c2 22-Apr-2016 Ningyuan Wang <nywang@google.com> Do not use ANQP when Wifi is connecting or connected

Sending ANQP request when wifi is connecting or connected
may fail the connection.
This CL fixes it by adding a parameter to WifiConfigManager
::updateSavedNetworkWithNewScanDetail(). This boolean value
can indicate that we are connecting or connected.
Link debouncing is also considered as connecting in this case.

BUG=26494190
TEST=runtest frameworks-wifi
Change-Id: Ic4dfd0c0ba0392da68b6705d18fb82d92f44e508
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
ea2048738be95ae9d5367a42ba798503a7039a6b 15-Apr-2016 Jeremy Joslin <jjoslin@google.com> Use external scores on saved networks if requested.

When a saved network has the useExternalScores boolean set to true then
lump it in with the ephemeral networks when considering it as a
candidate.

Externally scored saved networks are only considered if a saved network
candidate cannot be found.

BUG: 25562019
Change-Id: Icdb7318103e14e518536c3179cd30c87cc2c3035
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
a6b66a48b231f5729b8015d3446feb4c2fa0a9d1 06-Apr-2016 Roshan Pius <rpius@google.com> QNS: Skip ephemeral networks deleted by user

Skip ephemeral networks which were explicitly deleted by the user. This
was missed in migration from autojoin to QNS.

BUG: 28026676
Change-Id: Ib663183b29774b851e492ddd170c4b4bef03ae61
TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.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/WifiQualifiedNetworkSelector.java
7429ca2593265cc1b97fb0d616ef3c07364b2931 12-Apr-2016 Samuel Tan <samueltan@google.com> Merge "Rename WifiConfigManager.getConfiguredNetworks()" into nyc-dev
19628835ddf7b7557ff61dfdf00e916abc2c13d2 11-Apr-2016 Randy Pan <zpan@google.com> Remove check for roaming by supplicant from QNS

With network switching and roaming by wpa_supplicant disabled,
QNS does not have to check for that any more.

Bug: 27932378
Change-Id: Iba4639b88e9369148ce3d398203d69c9e9ef8d20
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
030b802722b896b2139e0771a2ceee48bd19699d 11-Apr-2016 Randy Pan <zpan@google.com> Keep QNS local log enabled

While there, changed the local log method name and tags for
log dumping to comply with the Wifi stack naming convention.

Bug: 27765462
Change-Id: Ie07b4730d58a2768c6f6a2d37fc0b20c6852a3ba
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
60969bf2c849011fb585cf6dc914dbd779dfb8cf 11-Apr-2016 Samuel Tan <samueltan@google.com> Rename WifiConfigManager.getConfiguredNetworks()

Rename WifiConfigManager.getConfiguredNetworks() and related methods
to WifiConfigManager.getSavedNetworks, since it better reflects
what this method does (i.e. get all configured networks except
ephemeral networks). While there, add comments for some previously
undocumented helper methods.

BUG: 28088229
Change-Id: I30e144b46277605f5847371d9e65b70306013cf5
TEST: 'runtest frameworks-wifi' passes.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
f1c2e8cc3728f65aee24905ad5c44e84891f0693 08-Apr-2016 Glen Kuhne <kuh@google.com> Merge "Added buffering of filtered ScanDetails to QNS" into nyc-dev
0efd09fea566f4445807b6aff60b18e127e72d38 31-Mar-2016 Glen Kuhne <kuh@google.com> Added buffering of filtered ScanDetails to QNS

Added logic to buffer the scanDetails considered by
QualifiedNetworkSelection as potential candidates (has a saved config,
and signal strength over threshold). And a getter to access these.

BUG=27932650

Change-Id: I4e04194c944f7d8a18719d7dfc7b66cbf42eb5af
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.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/WifiQualifiedNetworkSelector.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/WifiQualifiedNetworkSelector.java
3ab8ec5cfa986b07e1c948af0f45bd333edef24c 21-Mar-2016 Jeremy Joslin <jjoslin@google.com> Allow ephemeral WiFi conns to be marked as metered

Pass through the metered hint from the score cache to the
WifiStateMachine when making an ephemeral connection. The
NetworkPolicyManagerService already looks for the hint after
every NETWORK_STATE_CHANGED_ACTION and takes the correct action.

BUG: 27120794
Change-Id: I3d4a5030724e8e0fb1084c67d74fb768bd9ad2b5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
e5f74b10e5011ffb33739b2ae3d7840db7a5155b 29-Feb-2016 Randy Pan <zpan@google.com> Request score from NetworkScoreManager

Fixed a regression from QNS that scores were never requested
from the NetworkScoreManger.

Bug: 27246174
Change-Id: Ie0795d45264d4d18a9f73669bf28a7475a6cf427
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
2177731ae0a49be7dd66fd05dfb0ca73831b062c 26-Feb-2016 Randy Pan <zpan@google.com> Correct WifiQualifiedNetworkSelection file name

Rename WifiQualifiedNetworkSelection to
WifiQualifiedNetworkSelector to be consistent with the class
name.

Bug: 27296738
Change-Id: I48d21b1361cc2331b09cab84282eb47017be7f23
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java