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

Commit e9594430 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 partner/m-wireless-wifi-dev
b938c0e2 Do not provide 5GHz option for softap if there is no country code available
parents 14a2008f 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
@@ -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