Skip to content

Commit

Permalink
[Silabs] [WiFi] Modified logs in which AP's password is printed. (#32166
Browse files Browse the repository at this point in the history
)

* Modified logs in which AP's password is printed.

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
arun-silabs and restyled-commits authored Feb 21, 2024
1 parent f72008c commit 9aeff06
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,7 @@ static sl_status_t wfx_rsi_do_join(void)
}
else
{
SILABS_LOG("%s: WLAN: connecting to %s==%s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0],
wfx_rsi.sec.security);
SILABS_LOG("%s: WLAN: connecting to %s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security);

/*
* Join the network
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/SiWx917/SiWx917/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ sl_status_t wfx_connect_to_ap(void)
{
if (wfx_rsi.dev_state & WFX_RSI_ST_STA_PROVISIONED)
{
SILABS_LOG("%s: connecting to access point -> SSID: %s, PSK:%s", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0]);
SILABS_LOG("%s: connecting to access point -> SSID: %s", __func__, &wfx_rsi.sec.ssid[0]);
xEventGroupSetBits(wfx_rsi.events, WFX_EVT_STA_START_JOIN);
}
else
Expand Down
6 changes: 2 additions & 4 deletions examples/platform/silabs/efr32/rs911x/rsi_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ static void wfx_rsi_save_ap_info() // translation
break;
}

SILABS_LOG("%s: WLAN: connecting to %s==%s, sec=%d, status=%02x", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0],
wfx_rsi.sec.security, status);
SILABS_LOG("%s: WLAN: connecting to %s, sec=%d, status=%02x", __func__, &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security, status);
}

/********************************************************************************************
Expand Down Expand Up @@ -511,8 +510,7 @@ static void wfx_rsi_do_join(void)
return;
}

SILABS_LOG("%s: WLAN: connecting to %s==%s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0],
wfx_rsi.sec.security);
SILABS_LOG("%s: WLAN: connecting to %s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security);

/*
* Join the network
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ sl_status_t wfx_connect_to_ap(void)
{
if (wfx_rsi.dev_state & WFX_RSI_ST_STA_PROVISIONED)
{
SILABS_LOG("%s: connecting to access point -> SSID: %s, PSK:%s", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0]);
SILABS_LOG("%s: connecting to access point -> SSID: %s", __func__, &wfx_rsi.sec.ssid[0]);
xEventGroupSetBits(wfx_rsi.events, WFX_EVT_STA_START_JOIN);
}
else
Expand Down

0 comments on commit 9aeff06

Please sign in to comment.