am cecb710a: am 94260caf: Allow control over search order for tethering upstream interface selection
* commit 'cecb710a6de249a3847da2f07464a1aecf9459ac': Allow control over search order for tethering upstream interface selection
This commit is contained in:
@@ -156,6 +156,7 @@
|
||||
|
||||
<!-- Regex array of allowable upstream ifaces for tethering - for example if you want
|
||||
tethering on a new interface called "foo2" add <item>"foo\\d"</item> to the array -->
|
||||
<!-- Interfaces will be prioritized according to the order listed -->
|
||||
<string-array translatable="false" name="config_tether_upstream_regexs">
|
||||
</string-array>
|
||||
|
||||
|
||||
@@ -1264,8 +1264,8 @@ public class Tethering extends INetworkManagementEventObserver.Stub {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (String iface : ifaces) {
|
||||
for (String regex : mUpstreamIfaceRegexs) {
|
||||
for (String regex : mUpstreamIfaceRegexs) {
|
||||
for (String iface : ifaces) {
|
||||
if (iface.matches(regex)) {
|
||||
// verify it is active
|
||||
InterfaceConfiguration ifcg = null;
|
||||
|
||||
Reference in New Issue
Block a user