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:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user