summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/hotspot2/PasspointEventHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* WifiNative: Use iface name for WifiNative methodsRoshan Pius2018-01-221-1/+3
| | | | | | | | | | | | | | | | | | | | Remove any hardcoded interface name throughout the wifi framework codebase. Interface name will now be retrieved from the HAL using the WifiNative.setupInterfaceFor*Mode() methods. All interface specific operations in WifiNative will now accept the interface name as handle. The clients (WifiStateMachine, SoftApManager, etc) should use the appropriate interface name retrieved fom the setup method. The only exception is external clients like RttService, WifiScanningService, WifiDiagnostics, etc which will retrieve the active client interface name from WifiNative. Bug: 69426063 Test: Manually toggled wifi/softap/airplane mode on/off multiple times. Test: Unit tests. Test: Will send for regression tests Change-Id: If7b34f9c7714fcab8482e6f2cad9078d78229fe2
* PasspointEventHandler: Stop creating wpa_supplicant string commandsRoshan Pius2017-02-171-50/+23
| | | | | | | | | | Add new WifiNative API's for Anqp-query/Icon requests. This API will internally create the string commands needed for now. Will be hooked up to the HIDL interface method soon. Bug: 35393853 Test: Unit tests Change-Id: Ie93a318abd7bf5d1d94ea01d072fd6e0551d0354
* Passpoint: Change ICON response handlingRoshan Pius2017-02-161-64/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Currently, the ICON done notification from WifiMonitor is used as a trigger to fetch icon data in PasspointEventHandler. In the HIDL interface, the callback itself will contain all the necessary icon data. So, change the currently handling to prepare for integration with HIDL interface. Changes in the CL: 1. Move the icon data fetching to WifiMonitor away from PasspointEventHandler. 2. Change the params of the icon done event to include the icon data. 3. Add a new public method in WifiMonitor to send the notification out from WifiMonitor, which will be used by the HIDL interface in the future. Note: There are no unit tests for any of these changes because this CL is just moving things around and most of it is going to be removed when we integrate with HIDL. Bug: 35393853 Test: Connects to passpoint networks. Test: Will send for regression tests. Change-Id: I197180c8a8ec8673e5e8fa29ba8bb51b026d44fb
* Passpoint: Change ANQP response handlingRoshan Pius2017-02-161-122/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the ANQP done notification from WifiMonitor is used as a trigger to fetch anqp data in PasspointEventHandler. In the HIDL interface, the callback itself will contain all the necessary ANQP data. So, change the currently handling to prepare for integration with HIDL interface. Changes in the CL: 1. Move the ANQP data fetching to WifiMonitor away from PasspointEventHandler. 2. Change the params of the ANQP done result to include a newly created struct (AnqpResult) which would contain the bssid and the ANPQ results. 3. Add a new public method in WifiMonitor to send the notification out from WifiMonitor, which will be used by the HIDL interface in the future. 4. Remove the redundant PasspointEventHandler.parsANQPLines(). Note: There are no unit tests for any of these changes because this CL is just moving things around and most of it is going to be removed when we integrate with HIDL. Bug: 35393853 Test: Connects to passpoint networks. Test: Will send for regression tests. Change-Id: I7fdf8fbdba13d267eb986db3f8a5854c606bcd4c
* hotspot2: cleanup ANQPParserPeter Qiu2016-12-221-3/+3
| | | | | | | | | | | | | Below is the list of cleanups: - removed unused function - cleaned up parsing of vendor specific element - only support Hotspot 2.0 elements, since these are the only elements that we cared about - added unit tests Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I2e492525dfa5e28c12336e2bbec2f2882e0af57c
* hotspot2: ANQP elements cleanup Part 1Peter Qiu2016-12-151-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup and add unit tests for the following ANQP elements (and the underlying classes used by those elements): - HSFriendNameElement - IPAddressTypeAvailabilityElement - RoamingConsortiumElement - VenueNameElement The cleanup included using a static #parse function for parsing raw bytes into an element object, the new ByteBufferReader APIs for reading integer and string from ByteBuffer, and documented possible runtime exceptions. Additional changes include: - remove the unnecessary setting of byte order for the ByteBuffer, since we're not using the ByteBuffer's APIs for reading integer values (all reads are either byte or byte array). - remove the unused functions in ANQPFactory More ANQP elements cleanup will be done in the upcoming CLs. Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I6da918c83722d5c0ca7a2374ff5fa5f630cdea6d
* hotspot2: anqp: update package name to reflect the updated locationPeter Qiu2016-12-011-3/+3
| | | | | | Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: If842197a027a2c8381aacf5b256191f81bcbd1bb
* passpoint: refactor PasspointEventHandlerPeter Qiu2016-09-071-194/+182
| | | | | | | | | | | | | Changes include: - cleanup the callback interface - remove dependency for ScanDetail - remove unused code - add unit tests BUG: 31264540 TEST: build and run unit tests Change-Id: Idab62a6e12bef7807e2ef8bc5aec4e46fbf965dc
* Passpoint: rename SupplicantBridge to PasspointEventHandlerPeter Qiu2016-09-071-0/+379
Also move WnmData to hotspot2/ since it is passpoint specific. BUG: 31264540 TEST: Build and test in the follow-on CL Change-Id: I8cf5d30ad3a3041569e845c75a4c6d3338db54d3