|
28 | 28 | #include <platform/silabs/wifi/WifiInterface.h>
|
29 | 29 |
|
30 | 30 | // TODO: We shouldn't need any platform specific includes in this file
|
31 |
| -#ifdef WF200_WIFI |
32 |
| -#include <platform/silabs/wifi/wf200/ncp/sl_wfx_task.h> |
33 |
| -#endif // WF200_WIFI |
| 31 | +#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) |
| 32 | +#include <platform/silabs/SiWx917/SiWxPlatformInterface.h> |
| 33 | +#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) |
34 | 34 | #endif // SL_WIFI
|
35 | 35 |
|
36 | 36 | #if PW_RPC_ENABLED
|
|
45 | 45 | #include "MemMonitoring.h"
|
46 | 46 | #endif
|
47 | 47 |
|
48 |
| -// TODO: We shouldn't need any platform specific includes in this file |
49 |
| -#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) |
50 |
| -#include <platform/silabs/SiWx917/SiWxPlatformInterface.h> |
51 |
| -#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 ) |
52 |
| - |
53 |
| -#if ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD)) |
54 |
| -#include <platform/silabs/wifi/wiseconnect-interface/WiseconnectWifiInterface.h> |
55 |
| -#endif // ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD)) |
56 |
| - |
57 | 48 | #include <crypto/CHIPCryptoPAL.h>
|
58 | 49 | // If building with the EFR32-provided crypto backend, we can use the
|
59 | 50 | // opaque keystore
|
@@ -317,18 +308,7 @@ CHIP_ERROR SilabsMatterConfig::InitMatter(const char * appName)
|
317 | 308 | #ifdef SL_WIFI
|
318 | 309 | CHIP_ERROR SilabsMatterConfig::InitWiFi(void)
|
319 | 310 | {
|
320 |
| - // TODO: Platform specific init should not be required here |
321 |
| -#ifdef WF200_WIFI |
322 |
| - // Start wfx bus communication task. |
323 |
| - wfx_bus_start(); |
324 |
| -#endif // WF200_WIFI |
325 |
| - |
326 |
| - // TODO: Platform specific init should not be required here |
327 |
| -#if ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD)) |
328 |
| - VerifyOrReturnError(InitSiWxWifi() == SL_STATUS_OK, CHIP_ERROR_INTERNAL); |
329 |
| -#endif //((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 ) || defined(EXP_BOARD)) |
330 |
| - |
331 |
| - return CHIP_NO_ERROR; |
| 311 | + return InitWiFiStack(); |
332 | 312 | }
|
333 | 313 | #endif // SL_WIFI
|
334 | 314 |
|
|
0 commit comments