set Default country code to be persistent
1. on receiving WifiManager#setDefaultCountryCode(String)
store the default country code in config store.
2. When framework set default country code in driver/fw, set the persistent country code
if available (from config store) else set the country code
from system property ro.boot.wificountrycode.
Bug: 140008208
Test: atest com.android.server.wifi.WifiCountryCodeTest#setDefaultCountryCode
Test: Manual - Set the default country code by calling WifiManager#setDefaultCountryCode(String)
via cts test & confirmed that wifi_default_country_code entry in WifiConfigStore.xml is updated.
Change-Id: I41a1bc8a16b479199a84d0ab2fb1b715662bf89e
4 files changed