public final enum SupplicantState
extends Enum<SupplicantState>
implements Parcelable
java.lang.Object | ||
↳ | java.lang.Enum<android.net.wifi.SupplicantState> | |
↳ | android.net.wifi.SupplicantState |
从 defs.h
wpa_supplicant
。
NetworkInfo.State
.
Note, the order of these enum constants must match the numerical values of the state constants in
defs.h
in
wpa_supplicant
.
Enum values |
|
---|---|
SupplicantState |
ASSOCIATED 协会完成。 |
SupplicantState |
ASSOCIATING 尝试与BSS / SSID关联。 |
SupplicantState |
AUTHENTICATING 尝试使用BSS / SSID进行身份验证 This state is entered when wpa_supplicant has found a suitable BSS to authenticate with and the driver is configured to try to authenticate with this BSS. |
SupplicantState |
COMPLETED 所有认证完成。 |
SupplicantState |
DISCONNECTED 此状态表示客户端未关联,但很可能开始寻找接入点。 |
SupplicantState |
DORMANT 当客户端发出明确的DISCONNECT命令时报告的Android添加状态。 |
SupplicantState |
FOUR_WAY_HANDSHAKE WPA 4路密钥握手正在进行中。 |
SupplicantState |
GROUP_HANDSHAKE WPA组密钥握手进行中。 |
SupplicantState |
INACTIVE 非活动状态(禁用wpa_supplicant)。 |
SupplicantState |
INTERFACE_DISABLED 接口被禁用 This state is entered if the network interface is disabled. |
SupplicantState |
INVALID 通常应该永远不会看到的伪状态。 |
SupplicantState |
SCANNING 扫描网络。 |
SupplicantState |
UNINITIALIZED 没有连接到wpa_supplicant。 |
Inherited constants |
---|
From interface android.os.Parcelable
|
Public methods |
|
---|---|
static boolean |
isValidState(SupplicantState state) 返回 |
static SupplicantState |
valueOf(String name) |
static final SupplicantState[] |
values() |
Inherited methods |
|
---|---|
From class java.lang.Enum
|
|
From class java.lang.Object
|
|
From interface java.lang.Comparable
|
|
From interface android.os.Parcelable
|
SupplicantState ASSOCIATED
协会完成。
This state is entered when the driver reports that association has been successfully completed with an AP. If IEEE 802.1X is used (with or without WPA/WPA2), wpa_supplicant remains in this state until the IEEE 802.1X/EAPOL authentication has been completed.SupplicantState ASSOCIATING
尝试与BSS / SSID关联。
This state is entered when wpa_supplicant has found a suitable BSS to associate with and the driver is configured to try to associate with this BSS in ap_scan=1 mode. When using ap_scan=2 mode, this state is entered when the driver is configured to try to associate with a network using the configured SSID and security policy.SupplicantState AUTHENTICATING
尝试使用BSS / SSID进行身份验证
This state is entered when wpa_supplicant has found a suitable BSS to authenticate with and the driver is configured to try to authenticate with this BSS.SupplicantState COMPLETED
所有认证完成。
This state is entered when the full authentication process is completed. In case of WPA2, this happens when the 4-Way Handshake is successfully completed. With WPA, this state is entered after the Group Key Handshake; with IEEE 802.1X (non-WPA) connection is completed after dynamic keys are received (or if not used, after the EAP authentication has been completed). With static WEP keys and plaintext connections, this state is entered when an association has been completed. This state indicates that the supplicant has completed its processing for the association phase and that data connection is fully configured. Note, however, that there may not be any IP address associated with the connection yet. Typically, a DHCP request needs to be sent at this point to obtain an address.SupplicantState DISCONNECTED
此状态表示客户端未关联,但很可能开始寻找接入点。 当连接丢失时输入此状态。
SupplicantState DORMANT
当客户端发出明确的DISCONNECT命令时报告的Android添加状态。 在这种情况下,请求者不仅与当前接入点分离(如上面的DISCONNECTED状态),而且它也不会尝试连接到任何接入点,直到客户端发出RECONNECT或REASSOCIATE命令。
SupplicantState FOUR_WAY_HANDSHAKE
WPA 4路密钥握手正在进行中。
This state is entered when WPA/WPA2 4-Way Handshake is started. In case of WPA-PSK, this happens when receiving the first EAPOL-Key frame after association. In case of WPA-EAP, this state is entered when the IEEE 802.1X/EAPOL authentication has been completed.SupplicantState GROUP_HANDSHAKE
WPA组密钥握手进行中。
This state is entered when 4-Way Key Handshake has been completed (i.e., when the supplicant sends out message 4/4) and when Group Key rekeying is started by the AP (i.e., when supplicant receives message 1/2).SupplicantState INACTIVE
非活动状态(禁用wpa_supplicant)。
This state is entered if there are no enabled networks in the configuration. wpa_supplicant is not trying to associate with a new network and external interaction (e.g., ctrl_iface call to add or enable a network) is needed to start association.SupplicantState INTERFACE_DISABLED
接口被禁用
This state is entered if the network interface is disabled. wpa_supplicant refuses any new operations that would use the radio until the interface has been enabled.SupplicantState SCANNING
扫描网络。
This state is entered when wpa_supplicant starts scanning for a network.SupplicantState UNINITIALIZED
没有连接到wpa_supplicant。
This is an additional pseudo-state to handle the case where wpa_supplicant is not running and/or we have not been able to establish a connection to it.boolean isValidState (SupplicantState state)
返回 true
如果请求者状态是啥 false
否则。
Parameters | |
---|---|
state |
SupplicantState : The supplicant state |
Returns | |
---|---|
boolean |
true if the supplicant state is valid and false otherwise. |
SupplicantState valueOf (String name)
Parameters | |
---|---|
name |
String
|
Returns | |
---|---|
SupplicantState |