Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

when i connect to a network it tele me timeout but connect success #114

Open
willpyshan13 opened this issue Sep 9, 2021 · 3 comments
Open

Comments

@willpyshan13
Copy link

No description provided.

@willpyshan13
Copy link
Author

in WifiConnectionReceiver

switch (state) {
case COMPLETED:
case FOUR_WAY_HANDSHAKE:
//is it need to check if mScanResult is not empty it have a ssid and you can check the connect status? like this:
// boolean isConnectWithResult = mScanResult!=null&&isAlreadyConnected2(mWifiManager,mScanResult.SSID);
if (isConnectWithResult || isAlreadyConnected2(mWifiManager, ssid)) {
mWifiConnectionCallback.successfulConnect();
} else if (isAlreadyConnected(mWifiManager, of(mScanResult).next(scanResult -> scanResult.BSSID).get())) {
mWifiConnectionCallback.successfulConnect();
}
break;
case DISCONNECTED:
if (supl_error == WifiManager.ERROR_AUTHENTICATING) {
wifiLog("Authentication error...");
mWifiConnectionCallback.errorConnect(ConnectionErrorCode.AUTHENTICATION_ERROR_OCCURRED);
} else {
wifiLog("Disconnected. Re-attempting to connect...");
reEnableNetworkIfPossible(mWifiManager, mScanResult);
}
}

@deng-yc
Copy link

deng-yc commented May 10, 2022

Same problem, My WiFi doesn't have the Internet

@deng-yc
Copy link

deng-yc commented May 16, 2022

My WIFI is enabled SSID converge. 2.4GHz and 5GHz have the same SSID

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants