History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.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/tests/wifitests/src/com/android/server/wifi/SupplicantStaNetworkHalTest.java