commit | cc77000d9a3d7e19fcbaa92b9f4ccd3f707286c4 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Jun 28 08:16:56 2021 +0000 |
committer | Mark Chien <markchien@google.com> | Tue Jun 29 10:46:16 2021 +0000 |
tree | facde8c5097e86a85e71ed136d1d0bf80dfbe7b3 | |
parent | e4132c8ca0b526aab504bbce97a09fe03e4da64c [diff] |
Remove wigig support from S tethering Bug: 176520801 Test: atest TetheringTests Original-Change: https://android-review.googlesource.com/1744652 Merged-In: Id0bf02c01419e0c69a1d0b6a41789826538444d3 Change-Id: Id0bf02c01419e0c69a1d0b6a41789826538444d3
diff --git a/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java b/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java index 31fcea4..d2f44d3 100644 --- a/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java +++ b/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java
@@ -176,7 +176,9 @@ // us an interface name. Careful consideration needs to be given to // implications for Settings and for provisioning checks. tetherableWifiRegexs = getResourceStringArray(res, R.array.config_tether_wifi_regexs); - tetherableWigigRegexs = getResourceStringArray(res, R.array.config_tether_wigig_regexs); + // TODO: Remove entire wigig code once tethering module no longer support R devices. + tetherableWigigRegexs = SdkLevel.isAtLeastS() + ? new String[0] : getResourceStringArray(res, R.array.config_tether_wigig_regexs); tetherableWifiP2pRegexs = getResourceStringArray( res, R.array.config_tether_wifi_p2p_regexs); tetherableBluetoothRegexs = getResourceStringArray(