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

Commit 93f37ad5 authored by c_rrajiv's avatar c_rrajiv Committed by Gerrit - the friendly Code Review server
Browse files

SAP: Enable 5Ghz AP band option only when a valid country code is received

Whenever a valid country code is received , then only enable 5Ghz
AP band option in Hotspot Setting menu.

CRs-Fixed: 1067300
Change-Id: I66fadb0770a609ce88f134200e1e03463d9340fd
parent 30fc8944
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -135,7 +135,8 @@ public class WifiApDialog extends AlertDialog implements View.OnClickListener,

        ArrayAdapter <CharSequence> channelAdapter;
        String countryCode = mWifiManager.getCountryCode();
        if (!mWifiManager.isDualBandSupported() || countryCode == null) {
        if (!mWifiManager.isDualBandSupported() || (countryCode == null)
                                              || (countryCode.length() == 0)) {
            //If no country code, 5GHz AP is forbidden
            Log.i(TAG,(!mWifiManager.isDualBandSupported() ? "Device do not support 5GHz " :"") 
                    + (countryCode == null ? " NO country code" :"") +  " forbid 5GHz");