Set the default value of Randomized MAC address as 0:0:0:0:0:0 instead
of null.
Making this change to simplify storing randomized address to XML for
permanent storage. Without this change, will need to manually check if
the value is null during MacAddress<->XML conversion.
Bug: 72753415
Test: Unittest.
Change-Id: I6edf486360e267acec9f8a343386444be2ea99fa
Route legacy RttManager API on top of new WifiRttManager API - but
only support the legacy startRanging call. All others (including
Responder modes) are deprecated and throw an exception.
Note: the deprecation tags will be in a separate CL.
Bug: 65108579
Test: unit tests pass
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I63541fdcaac36f4bb40ed71660bbcfc507693ffc
WPS support in Client mode is deprecated. Trigger onFailed callbacks
for WPS operations. Added unit tests to check for error callbacks.
Bug: 72168432
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I442afd75b6b3ed3d43488cc2185274e9584352d1
Update the documentation on factoryReset to reflect what is actually
done by WifiServiceImpl (removed saved wifi networks).
Bug: 68030936
Test: check documentation
Change-Id: I6958ffb94dec8d86f6a53d4c44504ce16c8a3012
The API is deprecated and now returns true.
Bug: 72074967
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I83ce6cc8898f7df9fc920675fa669d03fa15f36e
Wi-Fi Aware data-path (NDP) setup requires an Initiator and a Responder.
Both Initiator and a Responder are set up with the MAC address of the
peer to which to connect to as well as a security configuration (Open,
PMK, Passphrase).
The original API (27) allowed a Responder to be configured to accept
a connection from anyone (e.g. using a null MAC address). This creates
ambiguous semantics when an NDP already exists. The second Responder
request could refer to the previously setup NDP or to a new one to be
created. We cannot tell the difference up-front.
Remove the "Accept request from ANYONE" API for newer APIs.
Bug: 72175022
Test: unit tests and integration tests
Change-Id: I194cc15402c33c2f1c62834d64646f2489274c35
Store randomized MAC address for each network in mMacAddress field, so
that we don't have to create a new MAC address when connecting to a
saved network.
Bug: 63905794
Bug: 71548300
Test: Unittest
Change-Id: I05a50d3c3bc94e5ac4a0ec7cbd1f192a6d4c0b11
Test: Manually tested that the op is noted. Ran opt/net/wifi/tests/wifitests/runtests.sh and base/wifi/tests/runtests.sh. Manually tested that 'idle' mode is now handled correctly.
Bug: 63907873
Change-Id: I66b20cdaab0f93700cc3fb871ae888ae0a9be32b
WPA-1 provides poor confidentiality, and limits
throughput of multicast traffic. WPA-1 is also
not widely used.
Mark WPA-1 related fields as deprecated, to communicate
our intent to deprecate WPA-1 connections.
This does not affect WPA-2 ("RSN") connections.
Bug: 72332080
Test: m -j8 update-api
Change-Id: I72baa5caa76e3ca0f46861982ed3ae5afcfcd709
WEP provides poor access control, poor
confidentiality, and reduces throughput. (On the
throughput front, WEP connections are limited
to 54 Mbps, even on access points that support
transmitting at speeds 10x as fast.)
Mark WEP-related fields as deprecated, to
communicate our intent to deprecate WEP connections.
Bug: 72332080
Test: m -j8 update-api
Change-Id: I0366341a62711c5f4a2e7d1bbf049a5e058d0ec2
Addition of Wifi Scanning time to Aggregate BatteryStats
Addition of Wifi Active time to BatteryStats (aggregate)
Addition of API to obtain Wifi battery stats for power drain diagnostics.
BUG:67213886
Test: Manual
Change-Id: I4f4c27ba839017d44feca685a4fae2f130d31765
Add new constant indicating the band/channel for SoftAp operation will
be determined during softap initialization.
The term 'ANY' for this option to be consistent with terminology used
in hostapd.
Bug: 68763822
Test: Compiles
Change-Id: I9676caf5188601ca16c9229aaa8be2d0e43404a6
Changes in the CL:
a) Mark startScan() as deprecated so that we can take away this API in
future releases.
b) Modify the documentation regarding scan throttling to indicate that
both foreground & background apps are subject to throttling.
Bug: 68987915
Test: Compiles
Change-Id: I938237b186c39c6b4cfec9dcdbd9b9d196bae0cc
The Responder Configuration is an abstracted specification of the peer
RTT Responder (to which we initiate an RTT operation).
The Responder is abstracted from a ScanResult (for an AP) or a Wi-Fi
Aware PeerHandle or MAC address. Utility methods are provided.
The Responder configuration is the underlying representation used by
the RTT manager and service to communicate infomration on RTT targets.
This API thus does not provide any additional permission or backdoor
hooks to the RTT functionality. It exposes a lower level utility
representation of the data. We may choose to make this more widely
available in the future if necessary.
Bug: 65108607
Test: builds
Change-Id: I620d8e725ad61792b7604ff1355adb1b0ef38ad1
Basic Wi-Fi RTT API for ranging to APs + Wi-Fi Aware peers.
Note: no functional tests, just unhiding/comment fixes.
Bug: 65108607
Test: builds, unit tests, integration tests.
Change-Id: I532ca35c866a7862859a0e64d9f7eccd95baa83d
On devices with multiple radio chains, each scan result could be
received using different combination of the available radio chains
(DBS, MCC). Add a new parameter in the scan result to convey this meta
information about the scan result.
Bug: 68335251
Test: Unit tests
Change-Id: I1fc97745b9e74b768b67b0c80e52ce4a13e69527
Check on the manager side for null callback registration and throw
and exception.
Should be done in addition to service side checks since, in well
behaved apps (which don't bypass the manager), the callback registered
with the service is a proxy wrapper for the user-provided callback.
Bug: 71575804
Test: unit test & integration tests
Change-Id: Ice6585fccb13d842d9518b1f60bff911fb66c48f
The changes are straightforward, the only change outside of BatteryStats
is to use the new WorkSource.isEmpty API to account for WorkChains in a
given WorkSource.
Bug: 62390666
Test: BatteryStatsBackgroundStatsTest, BatteryStatsNoteTest, WifiLockManagerTest
Change-Id: I1dff43b6f2a09877e3af4442bfe8a8fd80b1ba74