Skip to content

Commit

Permalink
Force wifi menu: handle unconfigured wifi slots correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed May 11, 2024
1 parent 45dce14 commit 6c324e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sysmodules/rosalina/source/menus/sysconfig.c
Expand Up @@ -267,9 +267,10 @@ void SysConfigMenu_ControlWifi(void)
Result resInit = acInit();
for (u32 i = 0; i < 3; i++)
{
// ssid[0] = '\0' if result is an error here
ACI_LoadNetworkSetting(i);
ACI_GetNetworkWirelessEssidSecuritySsid(ssids[i]);
if (R_SUCCEEDED(ACI_LoadNetworkSetting(i)))
ACI_GetNetworkWirelessEssidSecuritySsid(ssids[i]);
else
strcpy(ssids[i], "(not configured)");
}
if (R_SUCCEEDED(resInit))
acExit();
Expand Down

0 comments on commit 6c324e0

Please sign in to comment.