diff options
author | Michael Plass <mplass@google.com> | 2019-11-07 14:47:59 -0800 |
---|---|---|
committer | Michael Plass <mplass@google.com> | 2019-11-18 17:48:12 +0000 |
commit | 503e557a87d364b725fd4b7a45a452d5fcb37163 (patch) | |
tree | faec5b022df2a8d2e2d3d0d4533df8d092e55df9 /tests | |
parent | 7703348beff18ed6cfe4abec9e4d8ab227833c85 (diff) |
Only report L2KeyAndGroupHint when connected
Bug: 139531392
Test: atest WifiScoreCardTest
Change-Id: Ib8cebb84fef4c1ee3f2bcf82ba71d8e5f59dd497
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java b/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java index 69ef041d3..5c2fc0a27 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java @@ -144,6 +144,10 @@ public class WifiScoreCardTest extends WifiBaseTest { Pair<String, String> p3 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); assertNull(p3.first); assertNull(p3.second); + mWifiInfo.setBSSID("02:00:00:00:00:00"); + Pair<String, String> p4 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); + assertNull(p4.first); + assertNull(p4.second); } /** |