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

[Silabs] Refactor SiWx917 Wi-Fi Application implementation #284

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

mkardous-silabs
Copy link
Owner

Description

PR transitions the SiWx917 Wi-Fi implementation to use the sl_net API. This allows us to leverage the LwIP integration of the Wi-Fi SDK instead of using the one implemented for Matter for the SiWx917.

  • Replace sl_wifi APIs by the sl_net equivalent
  • Remove the join callback handler since the sl_net_up API does not trigger the callback and that it is not necessary anymore
  • Remove the scan network callback since it always failed due to string length issues. Since we assume the scan can fail and still try to connect, the scan brings little value.

Tests

Siw917x build, flash and commission

@@ -185,13 +185,13 @@ void SilabsMatterConfig::AppInit()
{
GetPlatform().Init();
sMainTaskHandle = osThreadNew(ApplicationStart, nullptr, &kMainTaskAttr);
SILABS_LOG("Starting scheduler");
ChipLogProgress(DeviceLayer, "Starting scheduler");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you choose Appserver for some and DeviceLayer for others here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arbitrary choice - i wasn't sure which i should take

examples/platform/silabs/SiWx917/sl_wifi_if.cpp Outdated Show resolved Hide resolved
examples/platform/silabs/SiWx917/sl_wifi_if.cpp Outdated Show resolved Hide resolved
examples/platform/silabs/SiWx917/sl_wifi_if.cpp Outdated Show resolved Hide resolved
examples/platform/silabs/efr32/rs911x/rsi_if.cpp Outdated Show resolved Hide resolved
src/platform/silabs/SiWx917/wifi/ethernetif.cpp Outdated Show resolved Hide resolved
src/platform/silabs/SiWx917/wifi/lwip_netif.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants