am "Do not provide 5GHz option for softap if there is no country code available"

merged from goog/mirror-m-wireless-internal-release
b938c0e Do not provide 5GHz option for softap if there is no country code available
This commit is contained in:
Vinit Deshpande
2015-03-15 13:39:30 -07:00
2 changed files with 17 additions and 0 deletions

View File

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

View File

@@ -1259,6 +1259,21 @@ public class WifiManager {
} 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.
* @param band One of