summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/hotspot2/ANQPMatcherTest.java
Commit message (Collapse)AuthorAgeFilesLines
* [Passpoint] Fix Passpoint matching algorithm for Home networksHai Shalom2020-03-131-51/+76
| | | | | | | | | | | Match Home networks if there is an FQDN match (without realm or method), or if OtherHomePartners element exists and matches the other advertised FQDNs, or if HomeOIList element exists and matches advertised RCOIs. Bug: 151245024 Test: atest PasspointProviderTest ANQPMatcherTest Change-Id: I7bf9c98c853c3973d30ce2651bdea49546dae4b5 Merged-In: I513f83a6d545b9ae7da5577ee163ce7d186f006e
* Passpoint: auto-connection for SIM-based profiles.Ecco Park2019-01-291-0/+96
| | | | | | | | | | | | | | Allow auto-connection of Passpoint for SIM-based configurations - without a profile installed on the device. Restricted to configurations which support encrypted IMSI. Bug: 123202978 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: tested with R2 AP that has NAI realms information matched with MCC/MNC of SIM on the device. Signed-off-by: Ecco Park <eccopark@google.com> Change-Id: Ia4043162d629574d5b3f2637d745566d63d3d6ad
* passpoint: fix the matching logic for EAP-method in NAI realmEcco Park2019-01-101-5/+7
| | | | | | | | | | | | | | | | | | If we can't find matched auth method from authParams with Passpoint credential such as (EAP-TTLS and AuthMethod:PAP), we consider the AP is not matched with the profile. In the case that auth params is empty in NAI realm element, we can't find any matched auth method from the collection. So, It eventually causes the passpoint profile not to match with this AP even if the domain name is already matched. Bug: 122666189 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: tested it with Passpoint AP that has EAP method and no auth params. Signed-off-by: Ecco Park <eccopark@google.com> Change-Id: Iec90ffc64af0cc66870ab290cd374148135cb8e5
* Take 2 of Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-191-1/+2
| | | | | | | | See go/jetpack-test-android-migration Test: atest FrameworksWifiTests Bug: None Change-Id: I76a3394fe1e4f5b268ed2716291b33d1db8f9f85
* Revert "Migrate frameworks/opt/net/wifi to androidx.test"Brett Chabot2018-12-191-2/+1
| | | | | | | | | This reverts commit 560ff95760cd1fc1da022e0972a5e29b739fcc52. Reason for revert: Broke master Exempt-From-Owner-Approval: build fix, pure revert Change-Id: I9f155cff6a712a6831be6af6b4dc671a35cd2ee1
* Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-141-1/+2
| | | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Bug: None Change-Id: I68f37d8eaf20b82a4e26ef7914e13460495e9762
* Wifi: Allow Hotspot 2.0 credential without realm matchingMasashi Honma2018-04-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | The realm node matching is not required when roaming consortium OI exists. Indeed, there is a statement in [1] "2.3 Requirements for Hotspot Operators". "SPs in this situation may find it convenient to be identified by their roaming consortium OI rather than by their realms." [1] Hotspot 2.0 (Release 2) Technical Specification Version 1.0.0 Bug: 77621258 Test: Connect with roaming consortium OI on Nexus 5X with hostapd commit 64624f31cf81dc6164462fa153ee7a5909e21183 "OWE: Fix CONFIG_OWE=y build without CONFIG_IEEE80211R=y". I tested with android-8.1.0_r18 branch and port the patch to master branch because my Nexus 5X does not boot with master branch. Test: All the tests are passed ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I46de90091396d50ec07a91c524074fedf8fd62ff Reported-by: Harada Hiroyuki <infocrafths20@gmail.com> Reported-by: Hideaki Goto <hgot@cc.tohoku.ac.jp> Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* Update SmallTest libraryEtan Cohen2018-01-261-1/+1
| | | | | | | | | | | | android.test.suitebuilder.annotation.SmallTest is deprecated and replaced by android.support.test.filters.SmallTest. Update all test files. No other change (except import order cleaning up to pass preload format check). Bug: 72324160 Test: all unit tests pass Change-Id: Icc4abe3b3b37926d583c0d4ae510a7d7c74c1a03
* hotspot2: add support for matching Passpoint providerPeter Qiu2017-01-071-0/+338
Added support for matching Passpoint provider based on the content of ANQP elements. While there: - updated IMSIParameter and added unit tests for it - added utility class ANQPMatcher for providing ANQP element matching functions Bug: 33246489 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ibdd49aaf44a097c1ee523284888faace6b866485