Update Framework to support multiple dhpc ranges
Previously we only supported a single range - this was inadequate for multiple interfaces. Adding a second range so we can support both usb and wifi tethering. Also moving out of the zero-conf range as our dhcp client won't accept ip addrs in that range (no nexus to nexus wifi action). bug: 2537963 bug: 2533491 bug: 2538303 Change-Id: I600b421343c28c2f9839ed2076122ae3d0ff5d3d
This commit is contained in:
@@ -289,8 +289,8 @@ public class WifiService extends IWifiManager.Stub {
|
||||
try {
|
||||
ifcg = service.getInterfaceConfig(intf);
|
||||
if (ifcg != null) {
|
||||
/* IP/netmask: 169.254.2.2/255.255.255.0 */
|
||||
ifcg.ipAddr = (169 << 24) + (254 << 16) + (2 << 8) + 2;
|
||||
/* IP/netmask: 192.168.43.1/255.255.255.0 */
|
||||
ifcg.ipAddr = (192 << 24) + (168 << 16) + (43 << 8) + 1;
|
||||
ifcg.netmask = (255 << 24) + (255 << 16) + (255 << 8) + 0;
|
||||
ifcg.interfaceFlags = "up";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user