Merge "WifiManager: add call to see if apband conversion is required" into pi-dev

This commit is contained in:
Rebecca Silberstein
2018-06-06 16:36:37 +00:00
committed by Android (Google) Code Review
4 changed files with 20 additions and 0 deletions

View File

@@ -519,6 +519,10 @@
<!-- Boolean indicating whether the wifi chipset has dual frequency band support --> <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
<bool translatable="false" name="config_wifi_dual_band_support">false</bool> <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 --> <!-- 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> <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_supportLongPressPowerWhenNonInteractive" />
<java-symbol type="bool" name="config_wifi_background_scan_support" /> <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_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_wifi_fast_bss_transition_enabled" />
<java-symbol type="bool" name="config_wimaxEnabled" /> <java-symbol type="bool" name="config_wimaxEnabled" />
<java-symbol type="bool" name="show_ongoing_ime_switcher" /> <java-symbol type="bool" name="show_ongoing_ime_switcher" />

View File

@@ -107,6 +107,8 @@ interface IWifiManager
boolean isDualBandSupported(); boolean isDualBandSupported();
boolean needs5GHzToAnyApBandConversion();
DhcpInfo getDhcpInfo(); DhcpInfo getDhcpInfo();
boolean isScanAlwaysAvailable(); 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, * Return the DHCP-assigned addresses from the last successful DHCP request,
* if any. * if any.