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

Commit 9e535b86 authored by Vinit Deshpande's avatar Vinit Deshpande
Browse files

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

merged from goog/mirror-m-wireless-internal-release
b938c0e2 Do not provide 5GHz option for softap if there is no country code available
parents 42d0dfeb b938c0e2
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
@@ -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