History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6a4ab81c8842bc1115c7078c8798899e3a2e217c 26-May-2018 Kumar Anand <kumaranand@google.com> wifi: do not reset country code on SIM removal

Telephony will set country code even in no sim case
based on emergency cell information. Hence Wifi
framework should not reset the country code set by
telephony blindly upon sim removal event.

Bug: 79955190
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iebf7ce88d3d19ce1e00e3170e9809eb938201648
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
52ed1731664f7e0b76adb14eec7a76eaa95144c3 22-Dec-2017 Roshan Pius <rpius@google.com> WifiNative: Use iface name for WifiNative methods

Remove any hardcoded interface name throughout the wifi framework
codebase.
Interface name will now be retrieved from the HAL using the
WifiNative.setupInterfaceFor*Mode() methods. All interface specific
operations in WifiNative will now accept the interface name as handle.
The clients (WifiStateMachine, SoftApManager, etc) should use the
appropriate interface name retrieved fom the setup method.

The only exception is external clients like RttService,
WifiScanningService, WifiDiagnostics, etc which will retrieve the active
client interface name from WifiNative.

Bug: 69426063
Test: Manually toggled wifi/softap/airplane mode on/off multiple times.
Test: Unit tests.
Test: Will send for regression tests
Change-Id: If7b34f9c7714fcab8482e6f2cad9078d78229fe2
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
ba44c1570892b6ed674485b50b4bf8f1db38dbbe 21-Sep-2017 Ningyuan Wang <nywang@google.com> Create dump() method for WifiCountryCode

Bug: 66226573
Test: compile, unit tests, take BR and check it.

Change-Id: Ia33124135f145f16e8327472cd2007a3b36f9500
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
a32e2000025fb2df125c3d14c2fa55ddecd4b790 13-Sep-2017 Ningyuan Wang <nywang@google.com> Fix case for not reverting country code on cellular loss

This CL allows us to keep using last known country code
on cellular loss and |mRevertCountryCodeOnCellularLoss| is
set to false.

This also fixes simCardRemoved() to revert country code
unconditionally, and cleans up code for airplaneModeEnabled().

Bug: 65602314
Test: compile, unit tests
Change-Id: I7b15d9ae197c5e2aacd7788b505e386f970786ed
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
5353a4413684083df0e8ff2fbd6f5f256731bd28 16-Mar-2017 Ningyuan Wang <nywang@google.com> Reset to default country code when phone is out of service

Bug: 36229469
Test: compile, unit tests, manual test
Change-Id: Ic6689cee5f559158cee16c3bf3072e96496f19c6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
586197ab0ed6d1c9d76c7b461a19ab8733ce9b3a 14-Mar-2017 Ningyuan Wang <nywang@google.com> Stop supporting persistent country code

This actually reverts ag/1108739/, which we don't need anymore.

Bug: 29353903
Test: compile, unit tests

Change-Id: Ic0e52f0832d0b78a3b6f7e24694e2b0427866d75
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
37b06cd7aae7fe27cfaf1d95cc9901548765406b 20-Jul-2016 Ningyuan Wang <nywang@google.com> Fix tethering failure when wifi is not started

getCurrentCountryCode() returns the country code which we already
sent to driver.

However, sometimes when wifi and location scan are not started,
we have a valid country code but we didn't set it. In this case
getCurrentCountryCode() returns null. This will confuse SoftApManager
and break tethering. This also causes WifiApDialog not to show 5GHz
option in the UI when user creates a new wifi hotspot config.

In this CL we fix the incorrectly reported country code by adding a
function getCountryCode() which returns a valid country code regardless
of was it sent to driver or not.
SoftApManager and WifiApDialog will use this function to make decisions.

In addition, we also rename getCurrentCountryCode() to getCountryCode
SentToDriver() for better readability.

BUG=30200338
TEST=compile
TEST=unit tests
TEST=manual tests

Change-Id: I5ba576509f9f401f4d57a4628a147ac8871552c0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
0091305175e8c6fe7fc6d01efb9d405961db4ac7 03-Jun-2016 Ningyuan Wang <nywang@google.com> Continue supporting persisting country code

Some devices rely on Setup Wizard to set a persistent country
code.
This CL honors the persistent option, fixing corresponding 5GHz AP
problem.
This also includes addtional unit tests for this change.

BUG=28127280
TEST=compile
TEST=runtest frameworks-wifi
Change-Id: I2f36216e143d0ac4959f26a9965def061a06aabf
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
b2c2f85c959cb0deba238b566f39b1b942eb70a8 05-May-2016 Ningyuan Wang <nywang@google.com> Fix string comparision and return value in try catch block

This CL uses value comparision instead of reference comparision
for strings.
This also removes returning value in finally block, otherwise
exception may be suppressed.

BUG=28605846
TEST=compile
TEST=runtest frameworks-wifi

Change-Id: I6ace4d233d2b0af3627f75dfdb7dcec6a46b0092
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java
d02611ce4158fda6c2d14ee13ad7f9553f416d21 02-Mar-2016 Ningyuan Wang <nywang@google.com> Wifi country code refactoring

This CL pulls coutry code logic into one class.
This also refactors all the existing country code logic.
We do not set country code for P2p interface now because
this is redundant. wpa_supplicant will route all the request
to the real interface.
Some initial unittests are added.

Bug: 27477896
TEST: compile, runtest frameworks-wifi,
manually tested with an angler phone
Change-Id: I870c3ad615a1f9bfb3fb40b149b9ca71dc850cdd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiCountryCode.java