Loading wifi/java/android/net/wifi/SoftApCapability.java +6 −2 Original line number Diff line number Diff line Loading @@ -102,7 +102,9 @@ public final class SoftApCapability implements Parcelable { /** * Returns true when all of the queried features are supported, otherwise false. * * @param features One or combination of the features from {@link @HotspotFeatures} * @param features One or combination of the following features: * {@link #SOFTAP_FEATURE_ACS_OFFLOAD}, {@link #SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT} or * {@link #SOFTAP_FEATURE_WPA3_SAE}. */ public boolean areFeaturesSupported(@HotspotFeatures long features) { return (mSupportedFeatures & features) == features; Loading @@ -122,7 +124,9 @@ public final class SoftApCapability implements Parcelable { * Constructor with combination of the feature. * Zero to no supported feature. * * @param features One or combination of the features from {@link @HotspotFeatures}. * @param features One or combination of the following features: * {@link #SOFTAP_FEATURE_ACS_OFFLOAD}, {@link #SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT} or * {@link #SOFTAP_FEATURE_WPA3_SAE}. * @hide */ public SoftApCapability(@HotspotFeatures long features) { Loading wifi/java/android/net/wifi/SoftApConfiguration.java +26 −12 Original line number Diff line number Diff line Loading @@ -165,7 +165,8 @@ public final class SoftApConfiguration implements Parcelable { /** * The operating band of the AP. * One of the band types from {@link @BandType}. * One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. */ private final @BandType int mBand; Loading @@ -181,7 +182,11 @@ public final class SoftApConfiguration implements Parcelable { /** * The operating security type of the AP. * One of the security types from {@link @SecurityType} * One of the following security types: * {@link #SECURITY_TYPE_OPEN}, * {@link #SECURITY_TYPE_WPA2_PSK}, * {@link #SECURITY_TYPE_WPA3_SAE_TRANSITION}, * {@link #SECURITY_TYPE_WPA3_SAE} */ private final @SecurityType int mSecurityType; Loading Loading @@ -393,8 +398,12 @@ public final class SoftApConfiguration implements Parcelable { } /** * Returns {@link BandType} set to be the band for the AP. * {@link Builder#setBand(@BandType int)}. * Returns band type set to be the band for the AP. * * One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. * * {@link Builder#setBand(int)}. * * @hide */ Loading Loading @@ -679,15 +688,19 @@ public final class SoftApConfiguration implements Parcelable { /** * Specifies that this AP should use specific security type with the given ASCII passphrase. * * @param securityType one of the security types from {@link @SecurityType}. * @param passphrase The passphrase to use for sepcific {@link @SecurityType} configuration * or null with {@link @SecurityType#SECURITY_TYPE_OPEN}. * @param securityType One of the following security types: * {@link #SECURITY_TYPE_OPEN}, * {@link #SECURITY_TYPE_WPA2_PSK}, * {@link #SECURITY_TYPE_WPA3_SAE_TRANSITION}, * {@link #SECURITY_TYPE_WPA3_SAE}. * @param passphrase The passphrase to use for sepcific {@code securityType} configuration * or null with {@link #SECURITY_TYPE_OPEN}. * * @return Builder for chaining. * @throws IllegalArgumentException when the passphrase length is invalid and * {@code securityType} is not {@link @SecurityType#SECURITY_TYPE_OPEN} * {@code securityType} is not {@link #SECURITY_TYPE_OPEN} * or non-null passphrase and {@code securityType} is * {@link @SecurityType#SECURITY_TYPE_OPEN}. * {@link #SECURITY_TYPE_OPEN}. */ @NonNull public Builder setPassphrase(@Nullable String passphrase, @SecurityType int securityType) { Loading Loading @@ -735,9 +748,10 @@ public final class SoftApConfiguration implements Parcelable { /** * Specifies the band for the AP. * <p> * <li>If not set, defaults to BAND_2GHZ {@link @BandType}.</li> * <li>If not set, defaults to {@link #BAND_2GHZ}.</li> * * @param band One or combination of the band types from {@link @BandType}. * @param band One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. * @return Builder for chaining. */ @NonNull Loading @@ -758,7 +772,7 @@ public final class SoftApConfiguration implements Parcelable { * <p> * The default for the channel is a the special value 0 to have the framework * auto-select a valid channel from the band configured with * {@link #setBand(@BandType int)}. * {@link #setBand(int)}. * * The channel auto selection will offload to driver when * {@link SoftApCapability#areFeaturesSupported( Loading wifi/java/android/net/wifi/nl80211/WifiNl80211Manager.java +5 −5 Original line number Diff line number Diff line Loading @@ -1039,11 +1039,11 @@ public class WifiNl80211Manager { * The result depends on the on the country code that has been set. * * @param band as specified by one of the WifiScanner.WIFI_BAND_* constants. * The following bands are supported {@link @WifiScanner.WifiBandBasic}: * WifiScanner.WIFI_BAND_24_GHZ * WifiScanner.WIFI_BAND_5_GHZ * WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY * WifiScanner.WIFI_BAND_6_GHZ * The following bands are supported: * {@link WifiScanner#WIFI_BAND_24_GHZ}, * {@link WifiScanner#WIFI_BAND_5_GHZ}, * {@link WifiScanner#WIFI_BAND_5_GHZ_DFS_ONLY}, * {@link WifiScanner#WIFI_BAND_6_GHZ} * @return frequencies vector of valid frequencies (MHz), or an empty array for error. * @throws IllegalArgumentException if band is not recognized. */ Loading Loading
wifi/java/android/net/wifi/SoftApCapability.java +6 −2 Original line number Diff line number Diff line Loading @@ -102,7 +102,9 @@ public final class SoftApCapability implements Parcelable { /** * Returns true when all of the queried features are supported, otherwise false. * * @param features One or combination of the features from {@link @HotspotFeatures} * @param features One or combination of the following features: * {@link #SOFTAP_FEATURE_ACS_OFFLOAD}, {@link #SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT} or * {@link #SOFTAP_FEATURE_WPA3_SAE}. */ public boolean areFeaturesSupported(@HotspotFeatures long features) { return (mSupportedFeatures & features) == features; Loading @@ -122,7 +124,9 @@ public final class SoftApCapability implements Parcelable { * Constructor with combination of the feature. * Zero to no supported feature. * * @param features One or combination of the features from {@link @HotspotFeatures}. * @param features One or combination of the following features: * {@link #SOFTAP_FEATURE_ACS_OFFLOAD}, {@link #SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT} or * {@link #SOFTAP_FEATURE_WPA3_SAE}. * @hide */ public SoftApCapability(@HotspotFeatures long features) { Loading
wifi/java/android/net/wifi/SoftApConfiguration.java +26 −12 Original line number Diff line number Diff line Loading @@ -165,7 +165,8 @@ public final class SoftApConfiguration implements Parcelable { /** * The operating band of the AP. * One of the band types from {@link @BandType}. * One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. */ private final @BandType int mBand; Loading @@ -181,7 +182,11 @@ public final class SoftApConfiguration implements Parcelable { /** * The operating security type of the AP. * One of the security types from {@link @SecurityType} * One of the following security types: * {@link #SECURITY_TYPE_OPEN}, * {@link #SECURITY_TYPE_WPA2_PSK}, * {@link #SECURITY_TYPE_WPA3_SAE_TRANSITION}, * {@link #SECURITY_TYPE_WPA3_SAE} */ private final @SecurityType int mSecurityType; Loading Loading @@ -393,8 +398,12 @@ public final class SoftApConfiguration implements Parcelable { } /** * Returns {@link BandType} set to be the band for the AP. * {@link Builder#setBand(@BandType int)}. * Returns band type set to be the band for the AP. * * One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. * * {@link Builder#setBand(int)}. * * @hide */ Loading Loading @@ -679,15 +688,19 @@ public final class SoftApConfiguration implements Parcelable { /** * Specifies that this AP should use specific security type with the given ASCII passphrase. * * @param securityType one of the security types from {@link @SecurityType}. * @param passphrase The passphrase to use for sepcific {@link @SecurityType} configuration * or null with {@link @SecurityType#SECURITY_TYPE_OPEN}. * @param securityType One of the following security types: * {@link #SECURITY_TYPE_OPEN}, * {@link #SECURITY_TYPE_WPA2_PSK}, * {@link #SECURITY_TYPE_WPA3_SAE_TRANSITION}, * {@link #SECURITY_TYPE_WPA3_SAE}. * @param passphrase The passphrase to use for sepcific {@code securityType} configuration * or null with {@link #SECURITY_TYPE_OPEN}. * * @return Builder for chaining. * @throws IllegalArgumentException when the passphrase length is invalid and * {@code securityType} is not {@link @SecurityType#SECURITY_TYPE_OPEN} * {@code securityType} is not {@link #SECURITY_TYPE_OPEN} * or non-null passphrase and {@code securityType} is * {@link @SecurityType#SECURITY_TYPE_OPEN}. * {@link #SECURITY_TYPE_OPEN}. */ @NonNull public Builder setPassphrase(@Nullable String passphrase, @SecurityType int securityType) { Loading Loading @@ -735,9 +748,10 @@ public final class SoftApConfiguration implements Parcelable { /** * Specifies the band for the AP. * <p> * <li>If not set, defaults to BAND_2GHZ {@link @BandType}.</li> * <li>If not set, defaults to {@link #BAND_2GHZ}.</li> * * @param band One or combination of the band types from {@link @BandType}. * @param band One or combination of the following band type: * {@link #BAND_2GHZ}, {@link #BAND_5GHZ}, {@link #BAND_6GHZ}. * @return Builder for chaining. */ @NonNull Loading @@ -758,7 +772,7 @@ public final class SoftApConfiguration implements Parcelable { * <p> * The default for the channel is a the special value 0 to have the framework * auto-select a valid channel from the band configured with * {@link #setBand(@BandType int)}. * {@link #setBand(int)}. * * The channel auto selection will offload to driver when * {@link SoftApCapability#areFeaturesSupported( Loading
wifi/java/android/net/wifi/nl80211/WifiNl80211Manager.java +5 −5 Original line number Diff line number Diff line Loading @@ -1039,11 +1039,11 @@ public class WifiNl80211Manager { * The result depends on the on the country code that has been set. * * @param band as specified by one of the WifiScanner.WIFI_BAND_* constants. * The following bands are supported {@link @WifiScanner.WifiBandBasic}: * WifiScanner.WIFI_BAND_24_GHZ * WifiScanner.WIFI_BAND_5_GHZ * WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY * WifiScanner.WIFI_BAND_6_GHZ * The following bands are supported: * {@link WifiScanner#WIFI_BAND_24_GHZ}, * {@link WifiScanner#WIFI_BAND_5_GHZ}, * {@link WifiScanner#WIFI_BAND_5_GHZ_DFS_ONLY}, * {@link WifiScanner#WIFI_BAND_6_GHZ} * @return frequencies vector of valid frequencies (MHz), or an empty array for error. * @throws IllegalArgumentException if band is not recognized. */ Loading