WifiManager: add call to see if apband conversion is required

Add call @hide allowing settings to check if the device requires softap
configs be converted from 5GHz only to ANY

Bug: 80251951
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: Id4d435eb55e2696d23ceb4d301e5d039e134d66a
This commit is contained in:
Rebecca Silberstein
2018-05-30 09:06:58 -07:00
parent e3348a2593
commit 34f0631ec1
4 changed files with 20 additions and 0 deletions

View File

@@ -517,6 +517,10 @@
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
<bool translatable="false" name="config_wifi_dual_band_support">false</bool>
<!-- Boolean indicating whether the wifi chipset requires the softap band be -->
<!-- converted from 5GHz to ANY due to hardware restrictions -->
<bool translatable="false" name="config_wifi_convert_apband_5ghz_to_any">false</bool>
<!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
<bool translatable="false" name="config_wifi_fast_bss_transition_enabled">false</bool>

View File

@@ -1867,6 +1867,7 @@
<java-symbol type="bool" name="config_supportLongPressPowerWhenNonInteractive" />
<java-symbol type="bool" name="config_wifi_background_scan_support" />
<java-symbol type="bool" name="config_wifi_dual_band_support" />
<java-symbol type="bool" name="config_wifi_convert_apband_5ghz_to_any" />
<java-symbol type="bool" name="config_wifi_fast_bss_transition_enabled" />
<java-symbol type="bool" name="config_wimaxEnabled" />
<java-symbol type="bool" name="show_ongoing_ime_switcher" />

View File

@@ -107,6 +107,8 @@ interface IWifiManager
boolean isDualBandSupported();
boolean needs5GHzToAnyApBandConversion();
DhcpInfo getDhcpInfo();
boolean isScanAlwaysAvailable();

View File

@@ -1762,6 +1762,19 @@ public class WifiManager {
}
}
/**
* Check if the chipset requires conversion of 5GHz Only apBand to ANY.
* @return {@code true} if required, {@code false} otherwise.
* @hide
*/
public boolean isDualModeSupported() {
try {
return mService.needs5GHzToAnyApBandConversion();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
/**
* Return the DHCP-assigned addresses from the last successful DHCP request,
* if any.