Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b938c0e2 authored by xinhe's avatar xinhe
Browse files

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

Bug:19414134
Change-Id: I88da5c3d547522263394403c97147baabae45394
parent 18ae1d22
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ interface IWifiManager

    void setCountryCode(String country, boolean persist);

    String getCountryCode();

    void setFrequencyBand(int band, boolean persist);

    int getFrequencyBand();
+15 −0
Original line number Diff line number Diff line
@@ -1237,6 +1237,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