Exclude testGetMultipathPreference on no Wi-Fi devices

Bug: 202228414
Test: atest CtsNetTestCases
Change-Id: Ie7cd52942b93de5d0b0dd5be49d1f85afafb4ea7
Merged-In: I3112ffb816fd16b2fc7a87c35d8f95eef0144281
(cherry picked from commit db354f783efca0ed7506e3cbf01e1715ab593ae6)
diff --git a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
index 5f07a27..33e6caa 100644
--- a/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
+++ b/tests/cts/net/src/android/net/cts/ConnectivityManagerTest.java
@@ -1203,6 +1203,7 @@
     @AppModeFull(reason = "Cannot get WifiManager in instant app mode")
     @Test
     public void testGetMultipathPreference() throws Exception {
+        assumeTrue(mPackageManager.hasSystemFeature(FEATURE_WIFI));
         final ContentResolver resolver = mContext.getContentResolver();
         mCtsNetUtils.ensureWifiConnected();
         final String ssid = unquoteSSID(mWifiManager.getConnectionInfo().getSSID());