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

SL_WIFI_NETWORK_DOWN_EVENTS callback not invoked for 2 minutes after router unplugged #9

Open
schoeler opened this issue Sep 20, 2023 · 2 comments

Comments

@schoeler
Copy link

Hi,

We are testing the sad paths of our networking stack, and observe no indication that the router ssid has disappeared for two minutes. Is there a way to decrease the interval of time it takes for the sl stack to return a network down event?

Thanks,

image

@Silabs-Chandra
Copy link

Hello Schoeler,
From the above log, it looks like disconnection event came with error code 0x10019 around 2min..
By default, rejon max retries is set to 20, which it takes around 2min to get the AP disappear event to the application.
You can modify it by using advanced client configuration and changing max retries

sl_wifi_advanced_client_configuration_t reconnection_config = {0};
reconnection_config.max_retry_attempts = 10;
status = sl_wifi_set_advanced_client_configuration(SL_WIFI_CLIENT_INTERFACE, &reconnection_config);
if (status != SL_STATUS_OK)
{
printf("Failed to set advanced client interface configuration: 0x%lx\r\n", status);
return;
}
Please, feel free to raise a salesforce case, if you have any further questions on this...!

@schoeler
Copy link
Author

schoeler commented Nov 5, 2023

Thanks Chandra

I think we will adjust this parameter down to match the default TCP keepalive interval

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