diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiCountryCode.java | 12 | ||||
-rw-r--r-- | service/java/com/android/server/wifi/WifiServiceImpl.java | 4 |
2 files changed, 0 insertions, 16 deletions
diff --git a/service/java/com/android/server/wifi/WifiCountryCode.java b/service/java/com/android/server/wifi/WifiCountryCode.java index 499c159fa..f9d147c6b 100644 --- a/service/java/com/android/server/wifi/WifiCountryCode.java +++ b/service/java/com/android/server/wifi/WifiCountryCode.java @@ -84,18 +84,6 @@ public class WifiCountryCode { } /** - * This is called when airplane mode is enabled. - * In this case we should invalidate all other country code except the - * phone default one. - */ - public synchronized void airplaneModeEnabled() { - Log.d(TAG, "Airplane Mode Enabled"); - // Airplane mode is enabled, we need to reset the country code to phone default. - // Country code will be set upon when wpa_supplicant starts next time. - mTelephonyCountryCode = null; - } - - /** * Change the state to indicates if wpa_supplicant is ready to handle country code changing * request or not. * We call native code to request country code changes only when wpa_supplicant is diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java index 650f33d36..4dbf71fd7 100644 --- a/service/java/com/android/server/wifi/WifiServiceImpl.java +++ b/service/java/com/android/server/wifi/WifiServiceImpl.java @@ -528,10 +528,6 @@ public class WifiServiceImpl extends BaseWifiService { if (mSettingsStore.handleAirplaneModeToggled()) { mWifiController.sendMessage(CMD_AIRPLANE_TOGGLED); } - if (mSettingsStore.isAirplaneModeOn()) { - Log.d(TAG, "resetting country code because Airplane mode is ON"); - mCountryCode.airplaneModeEnabled(); - } } }, new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED)); |