Merge "Do not provide 5GHz option for softap if there is no country code available" into m-wireless-wifi-dev

This commit is contained in:
xinhe
2015-02-25 23:34:39 +00:00
committed by Android Partner Code Review
2 changed files with 17 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ interface IWifiManager
void setCountryCode(String country, boolean persist); void setCountryCode(String country, boolean persist);
String getCountryCode();
void setFrequencyBand(int band, boolean persist); void setFrequencyBand(int band, boolean persist);
int getFrequencyBand(); int getFrequencyBand();

View File

@@ -1237,6 +1237,21 @@ public class WifiManager {
} catch (RemoteException e) { } } catch (RemoteException e) { }
} }
/**
* get the country code.
* @return the country code in ISO 3166 format.
*
* @hide
*/
public String getCountryCode() {
try {
String country = mService.getCountryCode();
return(country);
} catch (RemoteException e) {
return null;
}
}
/** /**
* Set the operational frequency band. * Set the operational frequency band.
* @param band One of * @param band One of