Commit Graph

2789 Commits

Author SHA1 Message Date
Etan Cohen
29dca17d8b Merge "[AWARE] Allow setPMK API" 2019-11-15 01:12:37 +00:00
TreeHugger Robot
772aaff3c4 Merge "wifi: remove @Deprecated APIs" 2019-11-15 00:06:15 +00:00
Etan Cohen
35f1fcdc8d [AWARE] Allow setPMK API
Allowing configuration of the PMK is required for any PK-based protocols
which operate OOB.

Bug: 143956273
Bug: 111446262
Test: test android.net.wifi.aware
Change-Id: Iccd9739901116399518f278e7d9c9992c1507f3f
2019-11-14 08:55:50 -08:00
lesl
0790456494 wifi: remove saePasswordId from getBytesForBackup
getBytesForBackup is used for Softap. Don't need saePasswordId

Bug: 0
Test: unit test, atest frameworks/base/wifi/tests/

Change-Id: Ia85fa65d6a1f939ebd57c20d4c432b6303107b81
2019-11-13 08:39:13 +00:00
Hugo Benichi
651135848d wifi: remove @Deprecated APIs
Bug: 122431221
Test: Compiled.
Change-Id: Iec44112618f3bd57e3e8047edff512f741779766
2019-11-13 16:28:45 +09:00
Nate(Qiang) Jiang
ee9a5ae15c [WifiAware] fix creator from parcel
creator should read all content from parcel before verify available

Bug: 144286370
Test: atest android.net.wifi
Change-Id: Ie0f4954f5ca6cdb0ae1f77bfd4420b75f302c0f3
2019-11-11 11:13:16 -08:00
Philip P. Moltmann
889043a661 Merge "Pipe through featureId from calling context to wifi location checking code" 2019-11-09 00:56:14 +00:00
Sunil Ravi
34fc421d5f Merge "wifi: MBO-OCE feature support (phase 1)" 2019-11-08 22:57:25 +00:00
Philip P. Moltmann
dcb850c580 Pipe through featureId from calling context to wifi location checking
code

Bug: 136595429
Test: atest FrameworksWifiTests FrameworksWifiApiTests
Change-Id: I7e1090e6e618dcd9e67b64c0f4c29934c8e1a69e
2019-11-08 14:54:57 -08:00
James Mattis
80c86d5c08 Marking SoftApCallback methods as SystemAPI
Making SoftApCallback methods available to @SystemAPI including
the API for registration of a SoftApCallback. This includes updating
registration to use an executor now vs a handler.

Bug: 143564153
Test: atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
Also tested manually on a Hawk.

Change-Id: I22b5029a8dbd7a50ad6faf0bb3b15269af839956
2019-11-08 09:39:00 -08:00
Sunil Ravi
a4b01b2a8f wifi: MBO-OCE feature support (phase 1)
Define feature flags for MBO and OCE.

Bug: 139474288
Test: atest com.android.server.wifi
Test: Manual
Change-Id: If713da6500c1d511972b9a84bd0c37b36148d92c
2019-11-07 21:01:10 -08:00
TreeHugger Robot
77e3859ab9 Merge "[Suggestion API] add network callback API" 2019-11-08 00:09:16 +00:00
Roshan Pius
80f368738d Merge changes from topic "wifi_overlay"
* changes:
  WifiManager: Add @SystemApi for STA/AP MAC randomization
  wifi: Formalize wifi resource usages
2019-11-07 23:17:53 +00:00
Nate(Qiang) Jiang
d076cbcd8d [Suggestion API] add network callback API
Add new API that allow apps to get connection event.

Bug: 142062781
Test: atest android.net.wifi
Test: atest com.android.server.wifi

Change-Id: I387f620901621feb2b15dff7c696d5d3f9a068b9
2019-11-07 14:35:02 -08:00
TreeHugger Robot
c85d13af6b Merge "WifiScanner: check nullness of bundle extra" 2019-11-07 19:50:30 +00:00
Roshan Pius
b55ba05c10 WifiManager: Add @SystemApi for STA/AP MAC randomization
This ensures that we don't use wifi overlays in settings.

Bug: 143464763
Test: Verfied MAC randomization setting toggle via Wifi picker.
Change-Id: I24ec509be579ec9c1a3d5e18fdc8d5709d83886c
2019-11-07 11:08:04 -08:00
Ahmed ElArabawy
34d53974d4 Merge "Wifi: Add 802.11ax support to RTT" 2019-11-07 04:35:54 +00:00
David Su
d09d44ec4f WifiScanner: check nullness of bundle extra
In WifiScanner#getAvailableChannels(), check if the
extra is null and return an empty list if that is the
case to ensure that the API upholds its @NonNull
guarantee.

Bug: 143985829
Test: compiles
Change-Id: I5abc2e6362469f77db0fa386adbe06b445aa799c
2019-11-05 21:41:48 -08:00
Les Lee
3c7989bfdc Merge "wifi: Add SoftApInfo Callback support" 2019-11-06 05:18:26 +00:00
lesl
3fd4b647f7 wifi: Add SoftApInfo Callback support
Bug: 142752869

Test: unit test, atest frameworks/base/wifi/tests/
Test: Manual test - checked by log.
Change-Id: I9fe7a18654721f98026680711685c06add3da264
2019-11-05 13:39:13 +08:00
Ahmed ElArabawy
b0e56cb592 Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.

Bug: 139354972
Test: atest com.android.wifi.server
Change-Id: I3d07509b27c4be83ea7c59ee4d1f0e404db5a04d
2019-11-03 00:07:14 -07:00
Ahmed ElArabawy
dbe3883155 Wifi: Add AP wifi technology to ScanResult
This CL adds to ScanResult structure information about the Wifi
technology.

Bug: 143382822
Test: atest com.android.wifi.server
Change-Id: Ibe1d30e2efc4693be22148443b26446b90d89179
2019-11-02 22:52:58 -07:00
Ahmed ElArabawy
1e13ad6574 Wifi: Change "Technology" to "Standard" in API
This commit is to change the naming from Wifi Technology to Wifi
Standard. This is to comply with the API council review.

Bug: 143551314
Test: atest com.android.wifi.server
Change-Id: I0584f9b791dd14119af199cb14d4caf4ffbf54ab
2019-11-02 22:20:19 -07:00
Ahmed ElArabawy
b746c431e7 Wifi: Support of HE Operation handling for Wifi-6
This Commit adds support for handling of HE Operation Information
element as part of the support for 11ax

Bug: 139354972
Test: atest com.android.wifi.server
Change-Id: I5e8319c4065e57eef1b89f21be2725b6bab3ad4d
2019-10-31 18:23:32 -07:00
Nate(Qiang) Jiang
0f8fa20848 add support for multiple listeners from same package
Bug: 143138047
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ia1ce78bf8fd540869f74308c1d25a358ea344e58
2019-10-31 10:37:54 -07:00
TreeHugger Robot
3d955d9a60 Merge "WifiScanner.getAvailableChannels(): throw exception instead of returning null" 2019-10-31 01:14:33 +00:00
Patrik Fimml
052a83953b Merge "Configurable SoftAP: Add System API." 2019-10-30 14:03:18 +00:00
David Su
070fb4411a WifiScanner.getAvailableChannels(): throw exception instead of returning null
On RemoteException, rethrow as RuntimeException
instead of returning null.

Bug: 143550768
Test: compiles
Change-Id: Ia4ab148e4fc9efbd19c37abb244a5d3360d40fa0
2019-10-29 18:16:44 -07:00
Steven Liu
48b101f5a0 Add carrier ID field for WifiConfiguration and PasspointConfiguration
This is only for the load and save Carrier ID field.

Bug: 130875004
Test: build, bootup, unit test

Change-Id: Id48587ca26fc9dc0f7678b5a449e2d39a2e90dae
2019-10-29 14:53:33 -07:00
Oscar Shu
43c8bb0f86 Merge "[MAC rand] Repurpose existing field" 2019-10-29 19:54:58 +00:00
Patrik Fimml
c7c962f3fc Configurable SoftAP: Add System API.
This adds a facility for system apps (with NETWORK_SETUP_WIZARD
or NETWORK_SETTINGS permission) to have more control over hotspot
parameters, while allowing them to use local-only mode and the LOHS
callback API for status updates.

Linters give conflicting advice about parameter ordering. With
startLocalOnlyHotspot(config, executor, callback), we satisfy
    (+) put callback last (enforced at compile time)
    (+) use Executor instead of Handler
    (+) put most meaningful argument first
while we're not satisfying
    (-) put executor last as it is a SAM (doesn't seem to make much
    sense to instantiate executor as SAM anyway, users are more likely
    to get an instance from elsewhere)
    (-) for overloads, add new arguments at the end.

Bug: 132705022
Test: atest SoftApConfigurationTest android.net.wifi.WifiManagerTest
Test: atest android.net.wifi.cts.WifiManagerTest (not tested due to
failures on emulator b/143120756)
Change-Id: Ia189b3664b47a253e160acb71eafab4f217649eb
2019-10-29 15:36:42 +01:00
Sunil Ravi
26ac48bcd7 wifi: Change WIFI_FEATURE_XXX type from int to long
This change is to avoid issues in assigning signed integer
feature (WIFI_FEATURE_DPP) to long featureSet. The
assignement was resulting in large, signed integer.

Bug: 143363031
Test: atest com.android.wifi.server
Test: Wifi ON/OFF, Connect and data transfer
Test: Added logs and verified feature set saved in iface.
Change-Id: Ic3828e675e49a8c1628368a7e6cf7f01e420bd96
2019-10-28 05:27:14 +00:00
James Mattis
aefe78c409 Support for hotspot client visibility.
Adding support for visibility into clients that connect to an active hotspot.

Bug: 137309578
Test: atest FrameworksNetTests:com.android.server.connectivity.TetheringTest
atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
atest FrameworksWifiApiTests:android.net.wifi.WifiClientTest
Tested manually on Hawk.

Change-Id: I1caeb10bc50202873e760a76b346bccd941e2574
2019-10-24 17:18:50 -07:00
Quang Luong
6812e7e84d Merge "Add @SystemApi allowAutojoin(int, boolean) to WifiManager" 2019-10-24 20:22:00 +00:00
TreeHugger Robot
73aa38f27a Merge "Clarify JavaDoc for SoftAP APIs" 2019-10-24 03:01:25 +00:00
David Su
f62fe1b72e Clarify JavaDoc for SoftAP APIs
Add more documentation to WifiManager's
EXTRA_WIFI_AP_INTERFACE_NAME, EXTRA_WIFI_AP_MODE,
and startSoftAp().

Bug: 143138160
Test: compiles
Change-Id: I15a22ca8d0718e02e606ba6e19d20b1727aa93d2
2019-10-23 16:50:04 -07:00
David Su
b9fcffe6cb Merge "Make WifiScanner#getAvailableChannels() @SystemApi" 2019-10-23 23:41:19 +00:00
Hai Shalom
2f5062a19b Merge "[Passpoint] Add API to indicate OSU profile and expiration" 2019-10-23 17:14:32 +00:00
Hai Shalom
06f9041220 [Passpoint] Add API to indicate OSU profile and expiration
Add an API to indicate if a profile was provisioned by an OSU
(subscription) server. This is necessary for the settings app
to handle profile expiration date use cases, which are different
between R1 (non-OSU) cases and R2 cases.
Make the getSubscriptionExpirationTimeInMillis API public.

Bug: 141474717
Test: atest PasspointConfigurationTest
Test: atest ConfigParserTest
Test: Complete OSU registration, verify API returns true
Test: Install R1 profile, verify API returns false
Change-Id: I788108f973a47716c5d7c9353eafedd5fb06cb8e
2019-10-22 12:14:40 -07:00
David Su
5e1280017a Make WifiScanner#getAvailableChannels() @SystemApi
While here removed some redundant comments.

Bug: 129008573
Test: atest FrameworksWifiApiTests
Change-Id: Id6ca5cf4547ff7321805ad671b9e25dab9953cd3
2019-10-22 11:52:25 -07:00
Ahmed ElArabawy
924d989e85 Merge "Wifi: Settings to have access to Wifi technology" 2019-10-22 17:06:47 +00:00
TreeHugger Robot
77b5bf2845 Merge "Fix checkNotNull(a, b) usages" 2019-10-21 23:52:55 +00:00
Quang Luong
1074029528 Add @SystemApi allowAutojoin(int, boolean) to WifiManager
WifiManager.allowAutojoin(int, boolean) lets a user toggle whether a
saved network should be allowed to be auto-joined. This "allowAutojoin"
bit is stored within the WifiConfiguration of a saved network.

Bug: 139199957
Test: atest FrameworksWifiApiTests
Change-Id: Ia8650abb59dc53a010accc44bd7b6e28facce992
2019-10-21 14:27:38 -07:00
David Su
9c8649e513 Merge "Promote @hide APIs to @SystemApi for tethering" 2019-10-21 20:31:04 +00:00
David Su
511ed1f6ac Fix checkNotNull(a, b) usages
checkNotNull(a, b) does not check nullness of b,
instead b is the error message. Fix these usages.

Bug: 143084514
Test: compiles
Change-Id: Icd9e9a213141ad50be888b3afd17a69fe3215282
2019-10-21 13:29:00 -07:00
Ahmed ElArabawy
7aad3c84ed Wifi: Settings to have access to Wifi technology
This CL adds to WifiInfo structure information about the Wifi
technology.
This makes it available to Settings app to use to present in
user interface.

Bug: 138634524
Bug: 140168755
Test: atest com.android.wifi.server
Change-Id: I8aae8e8928462be7729c85fc15e0e7bdd97c1e6e
2019-10-21 10:37:39 -07:00
David Su
dd6e10977e Promote @hide APIs to @SystemApi for tethering
Bug: 142372871
Test: compiles
Change-Id: I91f143cdc23c6dce8921931a591298ee0c1a1c00
2019-10-18 17:15:50 -07:00
Nate Jiang
31654058d3 Merge "[WifiManager] add public API to register callback on scan result" 2019-10-18 05:55:47 +00:00
Nate(Qiang) Jiang
ee434e8194 [WifiManager] add public API to register callback on scan result
Bug: 142680108
Test: atest android.net.wifi
Test: atest com.android.server.wifi

Change-Id: I370a972c166242d31d21672c9d8023258664968a
2019-10-17 15:48:06 -07:00
Nate Jiang
a100fb4841 [NetworkSuggestion] add public API to support passpoint in suggestion
Allow apps suggest passpoint network in NetworkSuggestionAPI

Bug: 141378137
Test: atest android.net.wifi
Test: atest com.android.server.wifi

Change-Id: Ibca75b0de758e3dfa78b7939851c8dda2eb3d696
2019-10-17 09:51:17 -07:00