Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Apr 26, 2023
1 parent 97a89ad commit 4b2d147
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "wfx_host_events.h"
#include "wfx_rsi.h"
#include "rsi_error.h"

/* wfxRsi Task will use as its stack */
StackType_t wfxRsiTaskStack[WFX_RSI_TASK_SZ] = { 0 };
Expand Down Expand Up @@ -206,7 +207,7 @@ sl_status_t wfx_connect_to_ap(void)
***********************************************************************/
sl_status_t wfx_power_save()
{
if (wfx_rsi_power_save() != 0)
if (wfx_rsi_power_save() != RSI_ERROR_NONE)
{
return SL_STATUS_FAIL;
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/ConnectivityManagerImpl_WIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void ConnectivityManagerImpl::OnStationConnected()
(void) PlatformMgr().PostEvent(&event);
// Setting the rs911x in the power save mode
#if (CHIP_DEVICE_CONFIG_ENABLE_SED && RS911X_WIFI)
// TODO : Remove stop advertising after BLEManagerImpl is fixed
// TODO: Remove stop advertising after BLEManagerImpl is fixed
#if RSI_BLE_ENABLE
chip::DeviceLayer::Internal::BLEManagerImpl().StopAdvertising();
#endif /* RSI_BLE_ENABLE */
Expand Down
2 changes: 1 addition & 1 deletion src/platform/silabs/efr32/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ CHIP_ERROR BLEManagerImpl::StopAdvertising(void)
CHIP_ERROR err = CHIP_NO_ERROR;
int32_t status = 0;
// TODO: add the below code in a condition if (mFlags.Has(Flags::kAdvertising))
// Since DriveBLEState is not called the device is still advertising advertising
// Since DriveBLEState is not called the device is still advertising
mFlags.Clear(Flags::kAdvertising).Clear(Flags::kRestartAdvertising);
mFlags.Set(Flags::kFastAdvertisingEnabled, true);
status = rsi_ble_stop_advertising();
Expand Down
1 change: 1 addition & 0 deletions third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ template("efr32_sdk") {
if (defined(invoker.chip_enable_wifi) && invoker.chip_enable_wifi) {
defines += [
# Used for wifi devices to get packet details
# TODO: Remove this flag, once the communication is fixed
"WIFI_DEBUG_ENABLED=1",
]
}
Expand Down

0 comments on commit 4b2d147

Please sign in to comment.