Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants