* commit '2605aeeb30e39c2616bbe6ff088d1ed0020b4a3b': Fix interface name for tethering
This commit is contained in:
@ -1261,14 +1261,14 @@ public class WifiStateMachine extends StateMachine {
|
|||||||
ip settings */
|
ip settings */
|
||||||
InterfaceConfiguration ifcg = null;
|
InterfaceConfiguration ifcg = null;
|
||||||
try {
|
try {
|
||||||
ifcg = mNwService.getInterfaceConfig(mInterfaceName);
|
ifcg = mNwService.getInterfaceConfig(mTetherInterfaceName);
|
||||||
if (ifcg != null) {
|
if (ifcg != null) {
|
||||||
ifcg.setLinkAddress(
|
ifcg.setLinkAddress(
|
||||||
new LinkAddress(NetworkUtils.numericToInetAddress("0.0.0.0"), 0));
|
new LinkAddress(NetworkUtils.numericToInetAddress("0.0.0.0"), 0));
|
||||||
mNwService.setInterfaceConfig(mInterfaceName, ifcg);
|
mNwService.setInterfaceConfig(mTetherInterfaceName, ifcg);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
loge("Error resetting interface " + mInterfaceName + ", :" + e);
|
loge("Error resetting interface " + mTetherInterfaceName + ", :" + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mCm.untether(mTetherInterfaceName) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
|
if (mCm.untether(mTetherInterfaceName) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
|
||||||
|
Reference in New Issue
Block a user