From 45b97c2c99f89095861c0521fd6be4ab472aeee1 Mon Sep 17 00:00:00 2001 From: Vinit Deshapnde Date: Wed, 19 Mar 2014 15:04:49 -0700 Subject: 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 --- core/res/res/values/config.xml | 4 ++++ core/res/res/values/symbols.xml | 1 + wifi/java/android/net/wifi/WifiStateMachine.java | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 50b3a35dbdf7..a3b81327b738 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -352,6 +352,10 @@ false + + WS + false diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 417135584de1..120027629a64 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -478,6 +478,7 @@ + diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 3dda56a434de..463a3a6332ff 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); } -- cgit v1.2.3-59-g8ed1b