History log of /system/connectivity/wificond/tests/scan_utils_unittest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9d096b2f0027b91e5eed40c0e2482d238cdf7c8a 31-Jan-2018 Roshan Pius <rpius@google.com> wificond: Send DBS scan flags if supported

If the device supports the new DBS scan params then,
a) For single scans, set the scan flag attribute corresponding to the
incoming scan type.
b) For PNO scans, always set the low power scan flag attribute.

Bug: 68335251
Test: ./system/connectivity/wificond/runtests.sh
Change-Id: I9bca3c0dfc4217f9b9c2b9e625863978967ccdbe
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
4a10da1c100160f2ab357e108bfd602e4421bdb1 31-Jan-2018 Roshan Pius <rpius@google.com> wificond: Keep a local copy of the latest nl80211.h

The libc version of nl80211.h is in sync with stable kernel version
supported by Android. This inhibits us from using any new upstream
nl80211 APIs, until the oldest supported Android kernel includes
those APIs. So keep a local copy of the nl80211.h inside wificond's
source tree. This header file need to be manually updated from the latest
Pixel kernel tree for new features. Since the nl80211 command set itself is
backward compatible, these new features should silently fail on devices
runnning older kernels.

The current nl80211.h file was picked from `p-dev-msm-bluecross-4.9`
kernel branch.

Bug: 72709703
Test: wificond compiles with the new headers.
Test: Device boots up and connects to wifi networks.
Test: Will send for regression tests along with the incoming DBS changes.
Change-Id: I0621c78747d4bcca8e1dd198209f86f8ebb802bb
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
c6ecdf8ea59f7de47edfd6161f059b8ab45d1f8f 10-Aug-2017 Ningyuan Wang <nywang@google.com> Support different rssi thresholds for 2g and 5g bands

Bug: 36121542
Test: compile, unit tests
Test: will do integration test

Change-Id: Ia4528cd30eed5e45a661224fd948fad52eb43ac1
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
dfbe7e4e12824527fac840391f31d2b4a4578e3e 19-Jul-2017 Ningyuan Wang <nywang@google.com> Support scan plan attribute for scheduled scan

This adds the support of the scan plan attribute.
With kernel updates, driver can no longer diffrentiate interval
attribute from single scan plan attribute, so driver's pno scan
back off logic cannot be triggered in that case.
To solve the PNO back-off problem, this CL allows wificond to explicitly
specify scan plans (if the driver supports it). With explicit scan
plans, the driver will have the information it needs to back-off PNO
scans.

Bug: 63837760
Test: compile, unit tests
Test: Manually test that pno scan works on multiple devices
Test: Integration sanity test

Change-Id: Ic7e38caa482a2d72f45bf3c8177fa656e534db08
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
1aadd2c3781ee882e77dae2f4dc38fe3574fdca7 09-Jun-2017 Ningyuan Wang <nywang@google.com> Use new netlink attribute for scan result timestamp

Bug: 37758502
Test: compile, manual test
Test: integration test
Test: manually test that on new and old devices, there should
be only a small portion of scan results filtered out.

Change-Id: I2cbcb6f4c5b58b6a56a746de97afe491a9e338ac
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
793978cb7f2f227f1ab28135caeb75dd4ed48e6c 15-Jun-2017 Ningyuan Wang <nywang@google.com> Restart wificond on ENODEV scan failure

ENODEV scan failure implies that driver entered a bad state.
In order to recover wificond, we should treat it as an fatal
error. The crashing of wificond will trigger the restarting
of framework, bringing everything back to work.

Bug: 36894921
Test: compile, unit tests
Test: manual test:
Use "iw wlan0 del" to remove kernel interface.
Observe that wificond restarts and wifi continues to work.

Change-Id: I89f4403bcb570d7f413fa4cc9ca50378de428d3d
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
ecb6bb205f5263c06570f14b148d6b171b1f74ad 20-Jun-2017 Ningyuan Wang <nywang@google.com> Revert "Use new netlink attribute for scan result timestamp"

This reverts commit 74db77ecd5314fa28ac2b78ccc3ca18788eeef60.

Bug: 62818212
Bug: 37758502


Change-Id: Icd93d4caffab92a5bf79c8d6aa8fe4dceca3ec06
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
74db77ecd5314fa28ac2b78ccc3ca18788eeef60 09-Jun-2017 Ningyuan Wang <nywang@google.com> Use new netlink attribute for scan result timestamp

This CL prioritize the new netlink attribute
NL80211_BSS_LAST_SEEN_BOOTTIME to the old NL80211_BSS_TSF
because if driver supports the new attribute, the new
attribute will carry more accurate data. If not, we still
can fall back to NL80211_BSS_TSF.

Bug: 37758502
Test: compile, unit tests, integration test
Test: manual tests:
1. Test devices which have new kernel/driver supporting this attribute.
Test that most APs still consistantly show up in scan result.
1. Test devices which don't support this attribute. Insert logs to test
that wificond can fall back to the old attributes.

Change-Id: I14226b77e8bf50f4e035679fff3313affb800e86
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
8f62fdd7479506aa865560941d74dc4e4c77e1b3 08-Feb-2017 Ningyuan Wang <nywang@google.com> Remove StartFullScan()

Bug: 35103495
Change-Id: I2004de17898b5c8f59eea88679fe60e6cb57dc87
Test: compile, unit tests
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
13b4064f889935091b0d55bbb056ec143972a9a4 10-Dec-2016 Ningyuan Wang <nywang@google.com> Add support of randomized mac address to wificond ScanUtils

Bug: 33218723
Change-Id: I81e3507f4cc46894b8ae35f0df0814006ddc1ead
Test: compile
/system/connectivity/wificond/tests/scan_utils_unittest.cpp
65b365fe4b6a99f9dab98515c1b96bd725cb56a8 08-Dec-2016 Ningyuan Wang <nywang@google.com> Add unit tests for wificond ScanUtils

Bug: 30915875
Test: compile, unit tests

Change-Id: Ic8f913663110f64dfb0387502e60afdfb130b0b5
/system/connectivity/wificond/tests/scan_utils_unittest.cpp