Commit Graph

2263 Commits

Author SHA1 Message Date
xshu
4e775ebf0d Deprecate supplicant related stuff in WifiManager
Bug: 71866976
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I66d17cae7bb8c1942409d6cb5b5895ad1990defa
2018-02-14 17:38:42 -08:00
TreeHugger Robot
e4cf2564c6 Merge "[RTT][AWARE] Update documentation for direct ranging to an Aware peer" 2018-02-09 05:41:26 +00:00
Etan Cohen
1f974c4638 [RTT][AWARE] Update documentation for direct ranging to an Aware peer
Update documentation with references to (now) public API specifying
the ranging configuration of Aware devices.

Bug: 73088768
Test: builds
Change-Id: Iedb69550cfb249050bb9e92f3e698f8f7db2ff85
2018-02-08 16:13:55 -08:00
Etan Cohen
af018ce387 Merge "[RTT] Deprecate legacy RTT API" 2018-02-08 19:03:27 +00:00
TreeHugger Robot
7db7bff014 Merge "Remove wifi/ScanResult.averageRssi method" 2018-02-08 08:43:37 +00:00
Etan Cohen
035d8af171 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc am: 0d2044af4b am: f1ff948671
am: 8fb67cb883

Change-Id: Ica58c7112b460e39f8b469201a054a420f04c35d
2018-02-08 01:44:30 +00:00
Etan Cohen
8fb67cb883 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc am: 0d2044af4b
am: f1ff948671

Change-Id: Ia9ca0839e05779d02560b07e1ab7103d9779c06e
2018-02-08 01:11:51 +00:00
Etan Cohen
f1ff948671 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc
am: 0d2044af4b

Change-Id: I7f622c50449e231d3bcf32dc3fee5ba2f14f8da1
2018-02-08 00:03:07 +00:00
Jong Wook Kim
83c5ff1b79 Merge "Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig" 2018-02-07 23:45:37 +00:00
Etan Cohen
0d2044af4b Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev
am: d05a3078fc

Change-Id: I446c693cfd86954f789db4fbc6d11d6954c6d343
2018-02-07 23:43:32 +00:00
Etan Cohen
d0acccdf25 [RTT] Deprecate legacy RTT API
Bug: 65108579
Test: unit tests pass
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: Ifa90acf8bb358657785b42222e68c537658c85e2
2018-02-07 12:36:09 -08:00
Etan Cohen
9accbba1b7 [RTT] Remove the legacy RTT service
Remove the legacy RTT service. RTT requests are already directed to
the new API by a previous CL.

Bug: 65108579
Test: unit tests
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I436e8bcd2f4e2ba6056870d887eea141fbebae85
2018-02-07 12:36:05 -08:00
Jong Wook Kim
4f10fb95de Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig
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
2018-02-07 19:31:19 +00:00
Michael Plass
ee84871fda Merge "WifiConfiguration validation improvement" 2018-02-04 23:19:50 +00:00
Michael Plass
7508e5cf2f WifiConfiguration validation improvement
Prevent WifiConfiguration.mIpConfiguration from ever being null

Bug: 62187840
Test: Unit tests
Change-Id: I6d7c53daad08aa242909c762956093eb135dd6c0
2018-02-02 14:38:24 -08:00
Android Build Merger (Role)
191b47590c [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975 am: 839c0ed22d am: 7ae0c44ca4
Change-Id: Iad48f3c561f94741331a22d4dab5b7a1041fdfd5
2018-02-02 18:16:45 +00:00
Android Build Merger (Role)
7ae0c44ca4 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975 am: 839c0ed22d
Change-Id: If80acece5df0e149bf832970cf4ee1ba60877e71
2018-02-02 18:16:40 +00:00
Android Build Merger (Role)
839c0ed22d [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975
Change-Id: I57936e6a45df8f40d3d1aa7a72d57ea40e9b5909
2018-02-02 18:16:35 +00:00
Android Build Merger (Role)
e016e9c975 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59
Change-Id: I74d9fbe30fd93e43cfa9d5b3d7eae64418163924
2018-02-02 18:16:30 +00:00
Android Build Merger (Role)
d38155fc59 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766
Change-Id: I15d12616e80cfd1b4d03a76ef1030fa2003a83d2
2018-02-02 18:16:25 +00:00
Android Build Merger (Role)
ee65cf4766 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8
Change-Id: I5a6d8519fc77c96d2df7afc58c1d45af57250e8b
2018-02-02 18:16:12 +00:00
Android Build Merger (Role)
5f4d9350f4 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c
Change-Id: I46bbee504ea7a64d39b98a2a8336b3bcf593869a
2018-02-02 18:15:53 +00:00
Etan Cohen
e1e5a2409c [RTT] ParcelableRttResults parcel code fix
ParcelableRttResults was unparceled incorrectly.

Bug: 70398564
Test: exploit provided in bug no longer works
Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
2018-02-02 10:11:47 -08:00
Etan Cohen
a61813e609 [RTT] Route legacy RTT API on top of new RTT API
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
2018-02-01 06:43:15 -08:00
Michael Plass
c3e6cba244 Remove wifi/ScanResult.averageRssi method
This logic belongs in the wifi service, not here.

Bug: 68401944
Test: Unit tests
Change-Id: I22f07254b0f52b4b88f809a624180bab1447e34b
2018-01-31 11:00:43 -08:00
Etan Cohen
64dd7468f3 Merge "[AWARE] Remove ability to accept connections from ANYONE" 2018-01-31 16:05:05 +00:00
Ningyuan Wang
8f405e6686 Remove aggressive handover APIs part 1
Bug: 27877641
Test: compile, unit tests
Change-Id: Ib291988a43d7eb5495fbb42624b434fe799044ab
2018-01-29 13:17:26 -08:00
Rebecca Silberstein
6a278404e3 WifiManager: return errors for WPS API calls
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
2018-01-28 08:25:02 +00:00
Rebecca Silberstein
5703622163 WifiManager: update documentation on factoryReset
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
2018-01-28 08:17:49 +00:00
TreeHugger Robot
8c0731cbb2 Merge "remove logic in saveConfiguration" 2018-01-26 01:38:28 +00:00
xshu
8a78930769 remove logic in saveConfiguration
The API is deprecated and now returns true.

Bug: 72074967
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I83ce6cc8898f7df9fc920675fa669d03fa15f36e
2018-01-25 15:20:58 -08:00
Ningyuan Wang
4a014d8fce Merge "Remove WifiManager 'scanWithTraffic' APIs" 2018-01-25 01:03:15 +00:00
Mukesh Agrawal
5e24057999 Merge changes I72baa5ca,I0366341a
* changes:
  WifiConfiguration: deprecate WPA-1 related fields
  WifiConfiguration: deprecate WEP-related fields
2018-01-25 00:59:47 +00:00
TreeHugger Robot
1266a4f5d5 Merge "MAC Randomization: Store Randomized MAC Address in WifiConfiguration" 2018-01-24 23:57:47 +00:00
Etan Cohen
9b78f8254d [AWARE] Remove ability to accept connections from ANYONE
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
2018-01-24 10:26:50 -08:00
Jong Wook Kim
d4ab45c846 MAC Randomization: Store Randomized MAC Address in WifiConfiguration
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
2018-01-24 10:09:48 -08:00
Peter Visontay
56afa3d5ee Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes).
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
2018-01-24 16:29:58 +00:00
mukesh agrawal
897b1e92c3 WifiConfiguration: deprecate WPA-1 related fields
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
2018-01-24 08:22:15 +00:00
mukesh agrawal
8b055fa374 WifiConfiguration: deprecate WEP-related fields
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
2018-01-23 22:25:36 -08:00
Oscar Shu
1b2ee1b648 Merge "Remove unused fields in ScanResult.java" 2018-01-24 05:41:39 +00:00
Etan Cohen
9c0a08b774 Merge "[RTT] Public LCI and LCR API" 2018-01-23 00:31:50 +00:00
Etan Cohen
a14cde6eb7 Merge "[RTT] Add LCI and LCR structures" 2018-01-22 23:36:25 +00:00
Ningyuan Wang
0c73128715 Remove WifiManager 'scanWithTraffic' APIs
Bug: 72333409
Test: compile, unit tests
Test: manually test wifi works
Change-Id: I8da1e63f610165a01077bef0127b2164f3b23fd0
2018-01-22 15:05:55 -08:00
Oscar Shu
fb0d9a7a8c Merge "WifiManager: mark WPS related API calls deprecated" 2018-01-22 22:35:30 +00:00
Etan Cohen
e54f93907f [RTT] Public LCI and LCR API
Expose the LCI and LCR APIs.

Bug: 65108607
Test: builds
Change-Id: If103dbff349a3f9e951d12dc4cec1d7dc48745ad
2018-01-22 11:23:46 -08:00
Etan Cohen
7c700afcd9 [RTT] Add LCI and LCR structures
Baseline LCI & LCR classes and structure (and planned API).

Bug: 71643239
Test: unit tests
Change-Id: I1ebe4f46d219901761758de58d73815ccfe6e815
2018-01-22 11:23:46 -08:00
Siddharth Ray
b50a684ba8 Wifi: Add scanning, activity time and API
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
2018-01-22 10:45:55 -08:00
Roshan Pius
19916d8b8e Merge "WifiConfiguration: Add support for auto-selecting AP band" 2018-01-19 21:33:47 +00:00
Roshan Pius
0fbb97de1f WifiConfiguration: Add support for auto-selecting AP band
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
2018-01-18 23:24:29 -08:00
xshu
b743503d3a Remove unused fields in ScanResult.java
Deleting some @hide fields

Bug: 67419731
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Id89c4c13e3cf13a3881bee3245740d6248faeff9
2018-01-19 00:15:37 +00:00