From 503e557a87d364b725fd4b7a45a452d5fcb37163 Mon Sep 17 00:00:00 2001 From: Michael Plass Date: Thu, 7 Nov 2019 14:47:59 -0800 Subject: Only report L2KeyAndGroupHint when connected Bug: 139531392 Test: atest WifiScoreCardTest Change-Id: Ib8cebb84fef4c1ee3f2bcf82ba71d8e5f59dd497 --- tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 p3 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); assertNull(p3.first); assertNull(p3.second); + mWifiInfo.setBSSID("02:00:00:00:00:00"); + Pair p4 = mWifiScoreCard.getL2KeyAndGroupHint(mWifiInfo); + assertNull(p4.first); + assertNull(p4.second); } /** -- cgit v1.2.3