History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4e45fd9302b4ed943732ad85c0a88c7d7830be1d 21-Jan-2018 pkanwar <pkanwar@google.com> TelephonyUtil changes to support Carrier Wifi.

Changes to comply with spec. Also allows for passing both identies
back to the supplicant.

Bug: 30988281
Test: All the tests are passed
./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

OK (2261 tests)

Change-Id: I24cf85ba0c042f14682e512ccaa2677f065243f7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
3f66639f7ac36c35675b7ef1d67e9e5b26b22959 30-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove supplicantStatusCodeToString method"
faa7b78948484112197d68655625ce1d079eef7e 05-Jan-2018 Steven Moreland <smoreland@google.com> Use new common Mutable<E> class.

Bug: N/A
Test: boot walleye, toggle and use wifi
Change-Id: Iae6a7178ab91614e793e851e97c575355558ea7d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
215bba1b6106bd16e76f8f4364c011fcced1bfbe 12-Dec-2017 Glen Kuhne <kuh@google.com> Remove supplicantStatusCodeToString method

Now that SupplicantStatus .hal code compiles a toString() method, this
can go away.

Bug: 34811152
Test: builds
Change-Id: I57ab6a47bfbf35a33ff483578e821c4e8e099673
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
e5f9b2bbc9f9c5f34d6ad9d290bfb63e48b79587 15-Aug-2017 Roshan Pius <rpius@google.com> NativeUtil: Use UTF-8 decoder

Most of the string/hex fields that is exposed in WifiConfiguration
wrongly state that the field neeeds to be a quoted ASCII string or hex.
It turns out that the fields could be any UTF-8 encoded string.

Bug: 64586263
Test: Unit tests
Change-Id: I3c761d10018ccb944c0623935cfa6b60cedcbfd8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
c0203e2c4ffeae355c88939fb180c2e1913c108d 02-Jun-2017 Roshan Pius <rpius@google.com> SupplicantHal: Add locks to all methods

Make the use of locks consistent across all the methods in
SupplicantStaIfaceHal & SupplicantStaNetworkHal.

Bug: 62097169
Test: Device boots up and connects to wifi networks.
Test: Unit tests
Test: Passed regression tests
Change-Id: I8558245c3bd3819f956224e1b8afe920fed82369
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
a1da73ea4926ce8a5689594ff3685b0fe033d99f 02-May-2017 Ningyuan Wang <nywang@google.com> Update anonymous identity upon EAP network connection

This allows wifi framework to update anonymous identity
provided by authenticator to network configuration.
With this, supplicant can use pseudonym instead of
permanent identity for EAP-SIM/AKA/AKA' networks.

Bug: 37530183
Test: compile, unit tests, manual test

Change-Id: Iaf9d709cbcaabb5b183ee14a23982bd99188b91e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
45a984619e338090981499e4823e0177649e3c28 22-Mar-2017 Roshan Pius <rpius@google.com> Add try/catch blocks for incoming HAL params

Add try/catch blocks for handling exceptions raised during handling
incoming params to the HAL calling code.

While there,
Rename SupplicantStaIfaceHal.addNetwork to
SupplicantStaIfaceHal.addNetworkAndSaveConfig

Bug: 36510794
Bug: 36510113
Test: Compiles & able to connect to wifi networks
Change-Id: Idc52d6ea63c4c23e9a3c8f12827f7b6ef1ea07b8
Merged-In: Idc52d6ea63c4c23e9a3c8f12827f7b6ef1ea07b8
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
a21bea22a9d442b5886207855ddf63ffee972f0b 14-Mar-2017 Roshan Pius <rpius@google.com> WifiStateMachine: Fix WPS handling

Since wpa_supplicant is no longer our config store, we need to read the
network params out of it add it to WifiConfigManager after WPS network
addition.

Bug: 34714021
Test: Manual tests. Able to connect to wps networks now.
Test: Some unit tests. It can be better, but need to figure out how to
extract the message reply from WSM.
Change-Id: I41231698c7e99ec46d34a60a70c04a6ee25ebfe4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
b8b3fb8228a1f90106bad8c59ce006b81ef7921c 09-Mar-2017 Roshan Pius <rpius@google.com> Remove all legacy HAL usage from framework

WifiNative now just becomes a module to route calls into the appropriate
native module: WifiVendorHal, WificondControl, SupplicantStaIfaceHal,
SupplicantP2pIfaceHal.

Changes in the CL:
1. Cleanup WifiNative to remove the legacy HAL usage.
2. Remove the |HIDL*| flags in WifiNative.
3. Remove static instance of WifiNative/WifiMonitor.
4. Remove WifiMonitor code parsing the string events from
wpa_supplicant.
5. Remove all unused jni code used for legacy HAL interactions.
6. Remove dependency of libwifi-hal & libwifi-system from framework.

Notes:
a) We can now potentially split up WifiNative into separate chunks:
WifiStaNative, WifiP2pNative, WifiRttNative, etc instead of having a
monolithic WifiNative instance.
b) We may have to add back the local log in WifiNative (b/36059665).

Bug: 35702893
Bug: 34457880
Bug: 34884202
Bug: 35421721
Test: Compiles, existing unit tests pass.
Test: Device boots up and connects to wifi networks.
Test: Verified with wifi regression (b/36068282)

Change-Id: I3e13522c912242af8023471e029edb1ce47fd3e9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
f50550926a7bddc24adf822876f35812d7d8c7be 07-Mar-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Add support for raw psk

|config.preSharedKey| can either be a quoted ascii passphrase or a raw
psk hexstring. Handle these 2 scenarios and call the corresponding HIDL
methods.

Bug: 36013886
Test: Added Unit tests
Test: Connected to networks with both raw psk and passphrase.
Change-Id: Ifaf31a7ce864aa0f6e86020ec5207ea8dee09205
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
6a8908d2bc0367397eb92444ac78cc8d43160ef6 03-Mar-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Fix wep key handling

According to our public documentation, the wep keys can either be a
quoted ASCII string or a hex string. Since this is similar to the SSID
field, rename the helper function in NativeUtil to reuse for both.

Bug: 35907939
Test: Fixed unit test input for wep networks and validated existing
WEP related tests pass.
Change-Id: I180b9261252dc5745fa3e30e4bc980cde054ba2a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
dd685b34596b790c76e2cc03fc825c1249c9174f 27-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetwork: EAP sim fixes

Bug fixes for EAP sim handling:
1. The network response for EAP sim sent by TelephonyUtil does not have
prefixes like "ck", "ik". It's just a string of values separated by
colons.
2. Umts SIM request data sent to TelephonyUtil needs to be in reverse
order: Rand first and then autn.

Bug: 33383725
Test: Unit tests
Test: Able to connect to EAP sim networks.
Change-Id: I5a5122da75412c5cf39eb660b0ba4e6059623645
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
1f5dee32716a2709ca2e1e491cbc2f09ca35a2fa 22-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Use private "key_id"

"private_key" field is not used in Android, we instead use the "key_id"
field. So, change the setter/getter to reflect that.

Bug: 35663125
Test: Unit tests
Change-Id: I5c22edbbc14a3de531d6dd7f3e862b680de45fec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
67bbcdc2c81824ff671a5a1d8475a598199e342e 22-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Remove enclosing quotes from psk

The settings app seems to be quoting psk passphrase. So, remove those
when we add it to wpa_supplicant.

Bug: 33383725
Test: Unit tests
Test: Able to connect to psk networks now.
Change-Id: I68e9d377a97d7ad1393e14e6e5371ef9f9fab439
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
b70d1e046a5eb7e87c6b96beec30bcb985ee9c3c 22-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaHal: Store callback objects

Changes in the CL:
1. Store the callback object reference in SupplicantStaIfaceHal &
SupplicantStaNetworkHal.
2. Add a log method for callbacks.
3. Move the body of the callback inside the lock.

Bug: 33383725
Test: Unit tests
Change-Id: Ie5cfc1a3c30e24a43082108caa17bf029f73c69c
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
511c6a204fefd7d295cb3728e6d4665106a29ae7 18-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIface/NetworkHal: Enable verbose logging

Add method to support setting the verbose logging flag.

Bug: 35435098
Test: Compiles
Change-Id: Ifafb6a2f6bf37f0de39d6cbea6f762d516726437
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
b850a6ae6fe8470fd9338bbc9978caadc7ca2c4b 18-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIface/NetworkHal: Clean up logging

Remove unnecessary DBG logs and use common methods for logging status.
This is a prelude to turning on verbose logging using the settings menu
for these modules.

Bug: 35435098
Test: Existing unit tests
Change-Id: I3e0c80828e8d96dbf4975c20a498faa5686ee67a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
c3d81dbf035c205ca1baf16b84a41b67eda9ae4a 17-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Handle callbacks

Handle the hidl callbacks and trigger wifimonitor broadcasts.

Bug: 33383725
Test: Unit tests
Change-Id: Ifd3374ef1465682010dc2fe15736d3eafe707168
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
03fea88ccab149c07391d38f3c406bb04ab0a3a9 17-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIface/Network: Store the iface name

Retrieve and store the associated iface name during initialization.

While there,
Remove the calling code for the unnecessary iface name retrieval
HIDL methods.

Bug: 33383725
Test: Unit tests
Change-Id: I7cc921299e249d516fa68c21b6bab3ce79d1afcc
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
cb9565f0cb8fa92346549bcacdfbf91cdf8e6bd3 16-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIface: Expose the 2 ISupplicant methods

These are 2 methods exposed in the top level ISupplicant object, which
needs to be exposed to WifiNative.

While there,
Add the new EAP phase 2 method conversions in SupplicantStaNetworkHal.

Bug: 33383725
Test: Unit tests
Change-Id: I46abd77b0616e4e3da7e9bbe3d2751e0783e93fe
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
5f39baacf16b55c5551574bd1d973cdb14f70c45 14-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIfaceHal: Expose WPS public methods

Expose public methods for performing WPS operations. Most of these
public methods accept string params and perform the necessary conversions
to the HIDL methods.

While there,
Tighten the regex'es used in SupplicantStaNetworkHal.

Bug: 33383725
Test: Added Unit tests for any non trivial param conversions.
Change-Id: I95ccb41f9624cc46b91b61c39bfbf0a321ea4eb2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
0a3dcd72290481cb1fcbaaec268cccf343e4ff48 14-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIfaceHal: Expose current network methods

Expose methods to set bssid of the currently configured network and
retrieve the NFC token of the network.

While there,
Add unit test for the removal of all networks from wpa_supplicant.

Bug: 33383725
Test: Unit tests.
Change-Id: Ibfff7a3349967c851a3cde62e082aa5d6ec2ee91
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
7651e69b6f5e2b28a4fee7284ac2522faa002c9f 14-Feb-2017 Roshan Pius <rpius@google.com> SupplicantHal: Add the calling code for remaining methods

Adding wrapper methods for all the remaining methods in
SupplicantStaIfaceHal & SupplicantStaNetworkHal. Will add public methods
to access these in subsequent CL's along with tests.

Bug: 33383725
Test: Existing unit tests
Change-Id: I4d1982ba760043b2742c0bffe10f25e8a6136458
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
c7a4b6706fa09042bb36a64036d86d88eb6e4126 11-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Add FT flags

This is a port of the existing logic in WifiSupplicantControl. Need to
add the FT flags when adding the network to wpa_supplicant when the
device supports it (specified in device config.xml). Changed the input
arguments to SupplicantStaNetworkHal & SupplicantStaIfaceHal so that it
takes an instance of the Context and use WifiMonitor to trigger
callbacks instead of directly sending events using WifiStateMachine
handler.

Bug: 33383725
Test: Unit tests
Change-Id: Id266835ef5dc3038057cab5b8f8da3a327f39ce2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
7c0ec884188660f72977c8a80366049705c48ffa 10-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIfaceHal: Implement connect/roam to network

This is the port of the existing methods from WifiSupplicantControl.

Bug: 33383725
Test: Unit tests

Change-Id: Icd0f23c1239beae05769ec99c93f84a4c1db16c4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
727ba04029935d4faee3c7fce8a5a0ba6ed0a4ea 10-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Load network ID

This is needed during migration of networks. So, populate the network ID
when loading network config from wpa_supplicant.

Bug: 33383725
Test: Unit tests
Change-Id: I2385e29b98fd9f950cdd4f353b9d7c1429f5d7ec
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
d95fa596d07855b70ff18a50a48e773155a919f5 09-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIfaceHal: Expose public methods

a) Expose public methods for all the needed HIDL calls.
b) Add javadocs for all of these public docs.
c) Corrected a few other nits.

There isn't any logic changes in this CL and hence no unit tests added.

Bug: 33383725
Test: Existing unit tests
Change-Id: I308e2632d7c870540641f838c5cd8bedaedcc4f4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
2104cc5eaf4ed7b9047ca1de460838a8ca6d0fe1 09-Feb-2017 Roshan Pius <rpius@google.com> SupplicantHal: Use the new NativeUtil methods

Bug: 33383725
Test: Unit tests
Change-Id: I2deb19d6cbdc7422c9157a2d515daaff7e17fe66
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
445b5f46264af0a2e9c043c9badb2b4f38044f11 08-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaNetworkHal: Network Response handling

Bug: 33383725
Test: Unit tests
Change-Id: I748ade8a1b65405fb56fd0fa80611d46fe19ef6b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
64950d46f5469e5e6ce32ccc81a1f751c40f4202 07-Feb-2017 Roshan Pius <rpius@google.com> ISupplicantStaNetwork save & load WifiEnterpriseConfigs

Methods to set/get network variables from wpa_supplicant to
WifiEnterpriseConfiguration & vice versa.

Test: Unit tests
Bug: 33383725
Change-Id: I82ce772db84ebdeadbd54e8ac5b11f4a4b10cb14
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
66e9f4ab597136cbf4accadb8e009fc68ff071a7 03-Feb-2017 Glen Kuhne <kuh@google.com> ISupplicantStaNetwork save & load WifiConfigs

Methods to set/get network variables from wpa_supplicant to
WifiConfiguration & vice versa.

TODO: Enterprise config params will be added in a further CL.

Test: Unit tests
Bug: 33383725
Change-Id: Ib002266a93b4738d0634cd1bbc925b61a86c1df7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
b4419d876beda78c29836726e43d80203b4a656c 04-Feb-2017 Roshan Pius <rpius@google.com> WifiSupplicantHal: Rename to StaSupplicantIfaceHal

Bug: 33383725
Test: Compiles
Change-Id: Icfe37705c3f053aa46f410a6c11e71fb93733a05
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java
96013ebe01c095e2bac5ff7a490a2f9b69876e3c 02-Feb-2017 Glen Kuhne <kuh@google.com> ISupplicantStaIface & ISupplicantStaNetwork calls

Adds unused wrappers over the ISupplicantXXXX methods, checking for
RemoteExceptions, failure codes & managing invalidating the
WifiSupplicantHal if necessary.
Lots of boilerplate

Bug: 33383725
Test: Existing Unit Tests
Change-Id: I9a44e532817667b8d6dae05e8f549d70bf9a0d77
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/SupplicantStaNetworkHal.java