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

Commit d458a697 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 55399837 93f37ad5
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");