-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 RCP WiFi initialization to remove platform-specific dependencies and unify initialization function #37135
base: master
Are you sure you want to change the base?
Conversation
PR #37135: Size comparison from 8370039 to e489f7b Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #37135: Size comparison from 8370039 to 43cd521 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes allows us to unify the wifi init in MatterConfig. The changes should be done in this PR.
@@ -646,15 +638,20 @@ void ProcessEvent(WifiPlatformEvent event) | |||
} | |||
} | |||
|
|||
void MatterWifiTask(void * arg) | |||
sl_status_t InitSiWxWifi(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this function is used by the rs911x WifiInterfaceImpl, the name needs to be updated.
43cd521
to
fdc6069
Compare
PR #37135: Size comparison from 22cd392 to fdc6069 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
… and unify initialization function
PR #37135: Size comparison from 22cd392 to 1fe4ed6 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) | ||
#include <platform/silabs/SiWx917/SiWxPlatformInterface.h> | ||
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't be removed for the time being. Can you re-add it with the same platform todo.
* SL_STATUS_ALLOCATION_FAILED, if there are a memory allocation failure, | ||
* SL_STATUS_FAILURE, otherwise | ||
******************************************************************************/ | ||
sl_status_t wfx_bus_start(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the correct comment format. We should stop using it entierly.
* @return None | ||
******************************************************************************/ | ||
void wfx_bus_start() | ||
sl_status_t wfx_bus_start(void) | ||
{ | ||
wfx_bus_task_handle = | ||
xTaskCreateStatic(wfx_bus_task, "wfxbus", BUS_TASK_STACK_SIZE, NULL, WFX_BUS_TASK_PRIORITY, busStack, &busTaskStruct); | ||
if (wfx_bus_task_handle == NULL) | ||
{ | ||
SILABS_LOG("*ERR*WFX BusTask"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are deprecating out the SILABS_LOG
macro - please delete it.
* @return sl_status_t SL_STATUS_OK, if the initialization succeeded | ||
* SL_STATUS_ALLOCATION_FAILED, if there are a memory allocation failure, | ||
* SL_STATUS_FAILURE, otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment isn't exact. We never return SL_STATUS_FAILURE.
* SL_STATUS_FAILURE, otherwise | ||
*/ | ||
|
||
sl_status_t InitWiFiStack(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Public APIs in the Wi-Fi interface should always return CHIP_ERROR. The error swap must be done inside the function.
|
||
sl_status_t InitWiFiStack(void) | ||
{ | ||
// TODO: This function should include sl_wfx_hw_init() and sl_wfx_init() functions. Only done now to make MatterConfig platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a ticket to follow up on this.
Changelog
Refactor WiFi initialization to remove platform-specific dependencies and unify initialization function
Testing
Manually build the RCP combinations for RS9116, RCP 917, RCP WF200 with EFR32MG24.
Tested commissioning flow with RCP 917, RCP WF200 with EFR32MG24.