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
|