Skip to content

Commit 9aeff06

Browse files
[Silabs] [WiFi] Modified logs in which AP's password is printed. (#32166)
* Modified logs in which AP's password is printed. * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent f72008c commit 9aeff06

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

examples/platform/silabs/SiWx917/SiWx917/sl_wifi_if.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,7 @@ static sl_status_t wfx_rsi_do_join(void)
569569
}
570570
else
571571
{
572-
SILABS_LOG("%s: WLAN: connecting to %s==%s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0],
573-
wfx_rsi.sec.security);
572+
SILABS_LOG("%s: WLAN: connecting to %s, sec=%d", __func__, &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security);
574573

575574
/*
576575
* Join the network

examples/platform/silabs/SiWx917/SiWx917/wfx_rsi_host.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ sl_status_t wfx_connect_to_ap(void)
178178
{
179179
if (wfx_rsi.dev_state & WFX_RSI_ST_STA_PROVISIONED)
180180
{
181-
SILABS_LOG("%s: connecting to access point -> SSID: %s, PSK:%s", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0]);
181+
SILABS_LOG("%s: connecting to access point -> SSID: %s", __func__, &wfx_rsi.sec.ssid[0]);
182182
xEventGroupSetBits(wfx_rsi.events, WFX_EVT_STA_START_JOIN);
183183
}
184184
else

examples/platform/silabs/efr32/rs911x/rsi_if.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@ static void wfx_rsi_save_ap_info() // translation
466466
break;
467467
}
468468

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

473472
/********************************************************************************************
@@ -511,8 +510,7 @@ static void wfx_rsi_do_join(void)
511510
return;
512511
}
513512

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

517515
/*
518516
* Join the network

examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ sl_status_t wfx_connect_to_ap(void)
180180
{
181181
if (wfx_rsi.dev_state & WFX_RSI_ST_STA_PROVISIONED)
182182
{
183-
SILABS_LOG("%s: connecting to access point -> SSID: %s, PSK:%s", __func__, &wfx_rsi.sec.ssid[0], &wfx_rsi.sec.passkey[0]);
183+
SILABS_LOG("%s: connecting to access point -> SSID: %s", __func__, &wfx_rsi.sec.ssid[0]);
184184
xEventGroupSetBits(wfx_rsi.events, WFX_EVT_STA_START_JOIN);
185185
}
186186
else

0 commit comments

Comments
 (0)