File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
wifi/java/android/net/wifi Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1261,14 +1261,14 @@ private void stopTethering() {
12611261 ip settings */
12621262 InterfaceConfiguration ifcg = null ;
12631263 try {
1264- ifcg = mNwService .getInterfaceConfig (mInterfaceName );
1264+ ifcg = mNwService .getInterfaceConfig (mTetherInterfaceName );
12651265 if (ifcg != null ) {
12661266 ifcg .setLinkAddress (
12671267 new LinkAddress (NetworkUtils .numericToInetAddress ("0.0.0.0" ), 0 ));
1268- mNwService .setInterfaceConfig (mInterfaceName , ifcg );
1268+ mNwService .setInterfaceConfig (mTetherInterfaceName , ifcg );
12691269 }
12701270 } catch (Exception e ) {
1271- loge ("Error resetting interface " + mInterfaceName + ", :" + e );
1271+ loge ("Error resetting interface " + mTetherInterfaceName + ", :" + e );
12721272 }
12731273
12741274 if (mCm .untether (mTetherInterfaceName ) != ConnectivityManager .TETHER_ERROR_NO_ERROR ) {
You can’t perform that action at this time.
0 commit comments