diff options
author | Vinit Deshapnde <vinitd@google.com> | 2014-03-19 15:04:49 -0700 |
---|---|---|
committer | Vinit Deshapnde <vinitd@google.com> | 2014-03-19 15:04:49 -0700 |
commit | 45b97c2c99f89095861c0521fd6be4ab472aeee1 (patch) | |
tree | c725191e8646aa09d08f9ed6af0fae416622e0b7 /wifi | |
parent | 9b650702113f8a17e09940c3802de71a9fc62ff1 (diff) | |
download | frameworks_base-45b97c2c99f89095861c0521fd6be4ab472aeee1.zip frameworks_base-45b97c2c99f89095861c0521fd6be4ab472aeee1.tar.gz frameworks_base-45b97c2c99f89095861c0521fd6be4ab472aeee1.tar.bz2 |
DO NOT MERGE - Use Samoa country code to satisfy wifi regulatory concerns
This helps in reducing overt scans when cell network is unavailable; and
in turn helps alleviate some regulatory concerns.
BUG: 11062898
Change-Id: I2d860f2d1acfdafba427504247a54b81482b0f5b
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 3dda56a..463a3a6 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -1542,8 +1542,11 @@ public class WifiStateMachine extends StateMachine { // If it's empty, delay it in case it's a momentary dropout int countryCodeSequence = mCountryCodeSequence.incrementAndGet(); if (TextUtils.isEmpty(countryCode)) { + String defaultCountryCode = mContext.getResources().getString( + R.string.config_wifi_unknown_country_code); + sendMessageDelayed(CMD_SET_COUNTRY_CODE, countryCodeSequence, persist ? 1 : 0, - countryCode, COUNTRY_CODE_DELAY_MS); + defaultCountryCode, COUNTRY_CODE_DELAY_MS); } else { sendMessage(CMD_SET_COUNTRY_CODE, countryCodeSequence, persist ? 1 : 0, countryCode); } |