Skip to content

Commit 62a6159

Browse files
Resolved review comments
1 parent 16aaad1 commit 62a6159

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/platform/silabs/wifi/wfx_host_events.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ typedef struct __attribute__((__packed__)) sl_wfx_mib_req_s
108108
#include "rsi_common_apis.h"
109109
#include "sl_wifi_device.h"
110110

111-
#define SL_WIFI_ALLOCATE_COMMAND_BUFFER_WAIT_TIME_MS 1000
111+
#define SL_WIFI_ALLOCATE_COMMAND_BUFFER_WAIT_TIME_MS (1000)
112112
#endif //(SLI_SI91X_MCU_INTERFACE | EXP_BOARD)
113113

114114
/* Wi-Fi events*/
@@ -128,7 +128,7 @@ typedef struct __attribute__((__packed__)) sl_wfx_mib_req_s
128128
#define WFX_MAX_SSID_LENGTH (32)
129129
// MAX PASSKEY LENGTH including NULL character
130130
#define WFX_MAX_PASSKEY_LENGTH (64)
131-
#endif // SLI_SI91X_MCU_INTERFACE
131+
#endif // (SLI_SI91X_MCU_INTERFACE | EXP_BOARD)
132132

133133
#include "sl_status.h"
134134
#include "stdbool.h"
@@ -151,7 +151,7 @@ typedef struct __attribute__((__packed__)) sl_wfx_mib_req_s
151151
#define SL_WFX_RETRY_CONNECT (1 << 7)
152152

153153
// WLAN MAX retry
154-
#define MAX_JOIN_RETRIES_COUNT 5
154+
#define MAX_JOIN_RETRIES_COUNT (5)
155155

156156
#define WLAN_TASK_STACK_SIZE (1024)
157157

@@ -353,15 +353,15 @@ void wfx_ip_changed_notify(int got_ip);
353353
void wfx_ipv6_notify(int got_ip);
354354

355355
#ifdef RS911X_WIFI
356-
#if !(EXP_BOARD)
356+
#if !(EXP_BOARD) // for RS9116
357357
void * wfx_rsi_alloc_pkt(void);
358358
/* RSI for LWIP */
359359
void wfx_rsi_pkt_add_data(void * p, uint8_t * buf, uint16_t len, uint16_t off);
360360
int32_t wfx_rsi_send_data(void * p, uint16_t len);
361361
#endif //!(EXP_BOARD)
362362
#endif // RS911X_WIFI
363363

364-
#ifdef RS911X_WIFI
364+
#ifdef RS911X_WIFI // for RS9116, 917 NCP and 917 SoC
365365
/* RSI Power Save */
366366
#if SL_ICD_ENABLED
367367
#if (SLI_SI91X_MCU_INTERFACE | EXP_BOARD)
@@ -379,7 +379,7 @@ void wfx_bus_start(void);
379379
sl_status_t get_all_counters(void);
380380
void sl_wfx_host_gpio_init(void);
381381
sl_status_t sl_wfx_host_process_event(sl_wfx_generic_message_t * event_payload);
382-
#endif
382+
#endif /* WF200_WIFI */
383383

384384
#if (SLI_SI91X_MCU_INTERFACE)
385385
#if SL_ICD_ENABLED

0 commit comments

Comments
 (0)