History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/util/NativeUtil.java
5bf1c66cfc5099801abe53fd54cef661740b24b5 02-Aug-2017 Glen Kuhne <kuh@google.com> Restore WifiP2pDevice.primaryDeviceType formatting

This CL restores the formatting of the primaryDeviceType string in
WifiP2pDevice, which was broken when the HAL moved to Treble instead of
wpa_supplicant ctrl-iface (which was applying the appropriate
formatter).

Bug: 63657840
Test: Manually verified, & unit tests updated
Change-Id: Ia86d74801020bf9098a3b7721e464201f99047f5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.java
7e9eafab778c3920732a965ca9a0b330c6c676d6 04-May-2017 Glen Kuhne <kuh@google.com> P2P: handle null p2p_dev_address sta auth/deauth

This fixes an issue introduced with the HIDL interface, legacy STA
devices have a null p2p device address, and only use a src address.
The pre-HIDL behaviour was to use the srcAddress if the p2pDeviceAddress
was unavailable, this CL restores that.

Bug: 37961262
Test: Manual verification with LINKS app, added unit test
Change-Id: Ib270228e8a2d1f90423c7057052623115f586f64
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.java
2a1078dc3729bab248bbd28c8336749481e045cf 16-Mar-2017 Roshan Pius <rpius@google.com> SupplicantP2pIfaceHal: Support for P2P client list and save config

Also,
Moved mac address to long conversion methods to NativeUtil to help with
unit tests.

Bug: 36042785
Test: Added unit tests.
Change-Id: I6c1a78abf8c0f8159195c2542dfe217a7b954df0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.java
d19743b66ba214a8c4a5166d1fe7d938f97a3f03 14-Mar-2017 Roshan Pius <rpius@google.com> SupplicantHal: Fix Wps PBC/Display setup

For Wps PBC/Display the app can choose to send a null bssid to indicate
that we want to indicate wildcard. So, add support for it.

Change NativeUtil.macAddressToByteArray to allow null/empty strings
which would return all zero'ed bssid.

Bug: 34714021
Test: Unit tests
Test: WPS setup can now be initiated via settings app.
Change-Id: I223eb9666163a0f02fe6b68480b1a05895563803
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.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/util/NativeUtil.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/util/NativeUtil.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/util/NativeUtil.java
82c5c5f2ee520a1066cf5d6421885bb53bbfe269 17-Feb-2017 Roshan Pius <rpius@google.com> SupplicantStaIfaceHal: Handle state change callbacks

This should invoke associated/connected broadcasts along with the state
change broadcast depending on the state.

While there,
Change NativeUtil to return lower case hex string since that is what is
being used everywhere else.

Bug: 33383725
Test: Unit tests
Change-Id: I87cbd33819ec05bc529af76d17a3e1be84a304da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.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/util/NativeUtil.java
99ee64591d5d0ac986b1dbd676382b8a1409a36f 09-Feb-2017 Roshan Pius <rpius@google.com> NativeUtil: Create utility for native modules

This class will contains helper functions for converting data format for
modules interacting with native daemons (WifiVendorHal,
SupplicantStaIfaceHal, WifiCondControl).

SSID is encoded/decoded differently based on whether it represents an
ASCII string or not.

Bug: 35154749
Test: Unit tests
Change-Id: I466ca7bc1fe14720a922715d31376a1ca7d6c988
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/NativeUtil.java