15
15
* limitations under the License.
16
16
*/
17
17
18
+ #include " AppConfig.h"
19
+ #include " BaseApplication.h"
20
+ #include < app/icd/server/ICDServerConfig.h>
18
21
#include < stdio.h>
19
22
#include < stdlib.h>
20
23
#include < string.h>
21
- #include < app/icd/server/ICDServerConfig.h>
22
- #include " AppConfig.h"
23
- #include " BaseApplication.h"
24
24
25
25
#include " FreeRTOS.h"
26
26
#include " event_groups.h"
@@ -40,10 +40,10 @@ using namespace ::chip::DeviceLayer;
40
40
namespace {
41
41
constexpr uint8_t kWlanMinRetryIntervalsInSec = 1 ;
42
42
constexpr uint8_t kWlanMaxRetryIntervalsInSec = 60 ;
43
- constexpr uint8_t kWlanRetryIntervalInSec = 5 ;
44
- uint8_t retryInterval = kWlanMinRetryIntervalsInSec ;
43
+ constexpr uint8_t kWlanRetryIntervalInSec = 5 ;
44
+ uint8_t retryInterval = kWlanMinRetryIntervalsInSec ;
45
45
osTimerId_t sRetryTimer ;
46
- }
46
+ } // namespace
47
47
/*
48
48
* Notifications to the upper-layer
49
49
* All done in the context of the RSI/WiFi task (rsi_if.c)
@@ -100,7 +100,7 @@ void wfx_connected_notify(int32_t status, sl_wfx_mac_address_t * ap)
100
100
101
101
VerifyOrReturn (status != SUCCESS_STATUS)
102
102
103
- memset (&evt, 0 , sizeof (evt));
103
+ memset (&evt, 0 , sizeof (evt));
104
104
evt.header .id = SL_WFX_CONNECT_IND_ID;
105
105
evt.header .length = sizeof evt;
106
106
@@ -180,13 +180,13 @@ void wfx_retry_connection(uint16_t retryAttempt)
180
180
{
181
181
if (retryAttempt < MAX_JOIN_RETRIES_COUNT)
182
182
{
183
- ChipLogProgress (DeviceLayer, " wfx_retry_connection : Next attempt after %d Seconds" ,
184
- kWlanRetryIntervalInSec );
183
+ ChipLogProgress (DeviceLayer, " wfx_retry_connection : Next attempt after %d Seconds" , kWlanRetryIntervalInSec );
185
184
if (osTimerStart (sRetryTimer , pdMS_TO_TICKS (CONVERT_SEC_TO_MS (kWlanRetryIntervalInSec ))) != osOK)
186
185
{
187
186
ChipLogProgress (DeviceLayer, " Failed to start retry timer" );
188
187
// Sending the join command if retry timer failed to start
189
- if (wfx_connect_to_ap () != SL_STATUS_OK) {
188
+ if (wfx_connect_to_ap () != SL_STATUS_OK)
189
+ {
190
190
ChipLogError (DeviceLayer, " wfx_connect_to_ap() failed." );
191
191
}
192
192
return ;
@@ -212,7 +212,8 @@ void wfx_retry_connection(uint16_t retryAttempt)
212
212
{
213
213
ChipLogProgress (DeviceLayer, " Failed to start retry timer" );
214
214
// Sending the join command if retry timer failed to start
215
- if (wfx_connect_to_ap () != SL_STATUS_OK) {
215
+ if (wfx_connect_to_ap () != SL_STATUS_OK)
216
+ {
216
217
ChipLogError (DeviceLayer, " wfx_connect_to_ap() failed." );
217
218
}
218
219
return ;
0 commit comments