Skip to content

Commit 8e88e99

Browse files
committed
removing the duplicate retry attempt in Join API
1 parent 736240f commit 8e88e99

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -692,16 +692,11 @@ static sl_status_t wfx_rsi_do_join(void)
692692

693693
// failure only happens when the firmware returns an error
694694
ChipLogError(DeviceLayer, "wfx_rsi_do_join: sl_wifi_connect failed: 0x%lx", static_cast<uint32_t>(status));
695-
VerifyOrReturnError((wfx_rsi.join_retries <= MAX_JOIN_RETRIES_COUNT), status);
696695

697696
wfx_rsi.dev_state &= ~(WFX_RSI_ST_STA_CONNECTING | WFX_RSI_ST_STA_CONNECTED);
698697
ChipLogProgress(DeviceLayer, "wfx_rsi_do_join: retry attempt %d", wfx_rsi.join_retries);
699698
wfx_retry_connection(++wfx_rsi.join_retries);
700699

701-
WfxEvent_t event;
702-
event.eventType = WFX_EVT_STA_START_JOIN;
703-
WfxPostEvent(&event);
704-
705700
return status;
706701
}
707702

0 commit comments

Comments
 (0)