|
28 | 28 | #include "sl_status.h"
|
29 | 29 | #include <cmsis_os2.h>
|
30 | 30 |
|
31 |
| -#include "silabs_utils.h" |
32 |
| -#include "wfx_host_events.h" |
33 |
| -#include "rsi_driver.h" |
34 |
| -#include "rsi_wlan_non_rom.h" |
35 | 31 | #include "rsi_bootup_config.h"
|
36 | 32 | #include "rsi_common_apis.h"
|
37 | 33 | #include "rsi_data_types.h"
|
| 34 | +#include "rsi_driver.h" |
38 | 35 | #include "rsi_error.h"
|
39 | 36 | #include "rsi_nwk.h"
|
40 | 37 | #include "rsi_socket.h"
|
41 | 38 | #include "rsi_utils.h"
|
42 | 39 | #include "rsi_wlan.h"
|
43 | 40 | #include "rsi_wlan_apis.h"
|
44 | 41 | #include "rsi_wlan_config.h"
|
| 42 | +#include "rsi_wlan_non_rom.h" |
| 43 | +#include "silabs_utils.h" |
| 44 | +#include "wfx_host_events.h" |
45 | 45 |
|
46 | 46 | #include "dhcp_client.h"
|
47 | 47 | #include "lwip/nd6.h"
|
@@ -317,7 +317,7 @@ static void wfx_rsi_join_fail_cb(uint16_t status, uint8_t * buf, uint32_t len)
|
317 | 317 | wfx_rsi.join_retries += 1;
|
318 | 318 | wfx_rsi.dev_state &= ~(WFX_RSI_ST_STA_CONNECTING | WFX_RSI_ST_STA_CONNECTED);
|
319 | 319 | is_wifi_disconnection_event = true;
|
320 |
| - WfxEvent.eventType = WFX_EVT_STA_START_JOIN; |
| 320 | + WfxEvent.eventType = WFX_EVT_STA_START_JOIN; |
321 | 321 | WfxPostEvent(&WfxEvent);
|
322 | 322 | }
|
323 | 323 | /*************************************************************************************
|
@@ -747,8 +747,7 @@ void ProcessEvent(WfxEvent_t inEvent)
|
747 | 747 | {
|
748 | 748 | scan = &scan_rsp.scan_info[x];
|
749 | 749 | // is it a scan all or target scan
|
750 |
| - if (!wfx_rsi.scan_ssid || |
751 |
| - (wfx_rsi.scan_ssid && strcmp(wfx_rsi.scan_ssid, (char *) scan->ssid) == CMP_SUCCESS)) |
| 750 | + if (!wfx_rsi.scan_ssid || (wfx_rsi.scan_ssid && strcmp(wfx_rsi.scan_ssid, (char *) scan->ssid) == CMP_SUCCESS)) |
752 | 751 | {
|
753 | 752 | strncpy(ap.ssid, (char *) scan->ssid, MIN(sizeof(ap.ssid), sizeof(scan->ssid)));
|
754 | 753 | ap.security = scan->security_mode;
|
|
0 commit comments