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 @@ -1240,14 +1240,14 @@ private void stopTethering() {
12401240 ip settings */
12411241 InterfaceConfiguration ifcg = null ;
12421242 try {
1243- ifcg = mNwService .getInterfaceConfig (mInterfaceName );
1243+ ifcg = mNwService .getInterfaceConfig (mTetherInterfaceName );
12441244 if (ifcg != null ) {
12451245 ifcg .setLinkAddress (
12461246 new LinkAddress (NetworkUtils .numericToInetAddress ("0.0.0.0" ), 0 ));
1247- mNwService .setInterfaceConfig (mInterfaceName , ifcg );
1247+ mNwService .setInterfaceConfig (mTetherInterfaceName , ifcg );
12481248 }
12491249 } catch (Exception e ) {
1250- loge ("Error resetting interface " + mInterfaceName + ", :" + e );
1250+ loge ("Error resetting interface " + mTetherInterfaceName + ", :" + e );
12511251 }
12521252
12531253 if (mCm .untether (mTetherInterfaceName ) != ConnectivityManager .TETHER_ERROR_NO_ERROR ) {
You can’t perform that action at this time.
0 commit comments