History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4e1f32efceee1db37bfb1e2624b434dbfb055686 07-Sep-2016 Mitchell Wills <mwills@google.com> Add a flag to indicate if a ScanData is for a scan for all channels

BUG=30897947

Change-Id: I989a25dd3df3f473090b76b4e3cb798a2d513490
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
1bf983a4211f547593a60523e43112ecdb5c8997 15-Aug-2016 Roshan Pius <rpius@google.com> SupplicantWifiScannerImpl: Restart PNO on settings change

When a new network is added, ConnectivityManager will stop/restart PNO
scans. However because of the 5 second debounce logic in HwPnoDebouncer,
this toggle will not be sent to wpa_supplicant. So, force restart PNO in
SupplicantWifiScannerImpl whenever there is a change in the network list .

PS: wpa_supplicant already has some internal logic to handle network
additions when PNO scans are running. But, not sure if this is working
as intended.

BUG: 30833790
Change-Id: Ib328abd866298a8a672a2f19fc863ee515dcbe74
TEST: Added unit tests
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
e483fd4a3151e59b3d0a596572b4d9f035fa8424 09-Aug-2016 Roshan Pius <rpius@google.com> SupplicantWifiScannerImpl: Ignore PNO stop failure

Ignore PNO stop failures when resetting the |mCurrentPnoState| flag. The
stop PNO command failure indicates that wpa_supplicant has already
stopped PNO scan internally. So, we should reset our flag to reflect that.
Otherwise, the next attempt to turn on PNO scans will be silently ignored by
|SupplicantWifiScannerImpl|.

BUG: 30764879
Change-Id: If75993ebe3bfc853628a96a698bb5806f0da5962
TEST: Unit tests
TEST: `act.py -c connectivity_basic.config -tb basic_wifi_tethering -tc
TelLiveDataTest:test_lte_wifi_switching`
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
0d0a4c339b3950ad6d882e89223dc21a89ef3953 02-Jun-2016 John Eckerdal <john.eckerdal@sonymobile.com> Stop the recurring alarm if no scansettings are available

This will fix an NPE whenever no scansettings are available.
The stop of the recurring alarm should not introduce a permanent
stop though since the whole processPendingScans function is dependant
on mPendingBackgroundScanSettings != null.

Anyway, as soon as mPendingBackgroundScanSettings is changed,
the processPendingScans function will be called, either directly
or indirectly through handleScanPeriod().

Crash call stack:
java.lang.NullPointerException: Attempt to read from field
'int com.android.server.wifi.WifiNative$ScanSettings.base_period_ms'
on a null object reference

at com.android.server.wifi.scanner.SupplicantWifiScannerImpl.processPendingScans
(SupplicantWifiScannerImpl.java:395)

Bug: 29113658
Author: Ola Olsson <ola.olsson@sonymobile.com>
Change-Id: Ibf08c9d6c5e476052449ef11d82ce005e50bd4fd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.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/scanner/SupplicantWifiScannerImpl.java
ab3adbcced14ec2ae5cf8f8a75f2ef9c9224f2a3 17-May-2016 Roshan Pius <rpius@google.com> SupplicantScannerImpl: Change PNO scan log location

Since PNO scans are started by the PNO debouncer (which debounces PNO state
change for 5 seconds), the log message stating that we have started PNO
scan should be moved to the location where the scan is actually started.

This removes the confusion from the logs in the below case:
05-16 16:51:40.135 D/SupplicantWifiScannerImpl( 876): Change PNO state
from false to true
05-16 16:51:42.356 D/SupplicantWifiScannerImpl( 876): Change PNO state
from true to false
05-16 16:51:45.109 D/SupplicantWifiScannerImpl( 876): Start PNO timer
with delay 2247
05-16 16:51:45.116 D/SupplicantWifiScannerImpl( 876): Starting wifi PNO
scan
05-16 16:51:50.111 D/SupplicantWifiScannerImpl( 876): Change PNO state
from false to true
05-16 16:51:52.368 D/SupplicantWifiScannerImpl( 876): Change PNO state
from true to false
05-16 16:51:55.143 D/SupplicantWifiScannerImpl( 876): Start PNO timer
with delay 2225
05-16 16:51:55.148 D/SupplicantWifiScannerImpl( 876): Starting wifi PNO
scan

BUG: 28800979
Change-Id: Ib4cc7c59fde83a02a2b938fb334a85f0c046cd87
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
362fad8eddd674d7cf19ffcc1fec38d2d2ee2f53 06-May-2016 Roshan Pius <rpius@google.com> SupplicantScanner: Truncate hidden network list

Truncate the hidden network id list if it goes beyond wpa_supplicant's
max value. wpa_supplicant has a hard coded value of 16 for the max
number of networks that can be specified for each scan.

There is currently no way to query this value from wpa_supplicant, so
hardcoding this value in SupplicantScanner.

BUG: 28632556
Change-Id: I31a338b91c221c1686437b738894e13abb897474
TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
5cdc80d103ebd2935693a8d855162d55bed2821c 04-May-2016 Mitchell Wills <mwills@google.com> Suppress some Supplicant WifiScanner logs

Fixes: 28452172
Change-Id: I99a1c11f15adf615b13496aec63642bfc2e552de
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
a85fc1b07490d3ff194a98fe7389f6697ace5801 13-Apr-2016 Roshan Pius <rpius@google.com> SupplicantWifiScanner: Increase single scan timeout

Increase single scan timeout to 15 seconds to account for delays in scan
processing when there is a parallel gscan running.

BUG: 28005679
Change-Id: I5efd2c547f1ffb12ea026f2e289cb7e83e6f3021
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java
a8367288377cbaed6371256ca837b7aa22280706 11-Apr-2016 Mitchell Wills <mwills@google.com> Move WifiScanner related code to scanner package

Change-Id: I73d01fe4d0de99a4e9758353cacf1d7a790cf040
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/SupplicantWifiScannerImpl.java