Wifi: Replace dual_band with 5GHz band support

As part of the support of the 6GHz band, the concept of dual-band is no
longer valid since we have more than 2 bands supported by Android and
can be checked on the device.

This commit replaces checks on dual-band support with an explicit check
on 5GHz band support.

Bug: 145936758
Bug: 139354972
Test: Manual
Change-Id: Ia118dedb573f61a148764146edf8091ae253a3e2
This commit is contained in:
Ahmed ElArabawy
2019-12-09 14:48:07 -08:00
parent d8c711d891
commit ead637e0c8
2 changed files with 8 additions and 8 deletions

View File

@@ -129,7 +129,7 @@ public class WifiTetherApBandPreferenceController extends WifiTetherBasePreferen
private boolean is5GhzBandSupported() {
final String countryCode = mWifiManager.getCountryCode();
if (!mWifiManager.isDualBandSupported() || countryCode == null) {
if (!mWifiManager.is5GHzBandSupported() || countryCode == null) {
return false;
}
return true;