feat(netctl): implement remaining info codes in sceNetCtlGetInfo #6720
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6720"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by AdvaitPalve11 on 2026-10-16T07:08:39Z.
What
Implement remaining info codes in
sceNetCtlGetInfo:NET_CTL_INFO_BSSID,NET_CTL_INFO_SSID,NET_CTL_INFO_WIFI_SECURITY,NET_CTL_INFO_RSSI_DBM,NET_CTL_INFO_RSSI_PERCENTAGE,NET_CTL_INFO_CHANNEL)NET_CTL_INFO_DHCP_HOSTNAME) queried via hostgethostname(falling back to"PS5")NET_CTL_INFO_PPPOE_AUTH_NAME)NET_CTL_INFO_HTTP_PROXY_SERVER) and 21 (NET_CTL_INFO_HTTP_PROXY_PORT)GuestNetCtl.cppvalidating all returned informationdocs/dev/debt/libSceNetCtl.mdTested
Windows 11 x86-64, Silent Hill: The Short Message (PPSA10112). Engine previously crashed throwing
std::runtime_error: sceNetCtlGetInfo: info code 12 is not implementedduring network initialization; with this change it retrieves the host configuration and proceeds through graphics and engine bring-up. AllGuestNetCtl.cpptests pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T07:33:36Z.
Review: COMMENTED
Native Linux run on exact head
acace97f9a1682a72734d1c6755e22d030f283dd, applied onmain5d9dcc42d.Machine: Intel i7-8700 (6C/12T), Ubuntu 26.04, GCC 15.2, Ninja Release,
BUILD_TESTING=ON, full build.guest_net_ctlpasses, 10/10 with--repeat until-fail:10. It ran rather than skipped: the host has an IPv4 address, so the test did not return 77. Code 12 returned the host name.GuestNetCtl.cpponmain'sExport.cpp,guest_net_ctlaborts (Subprocess aborted). The test catches the missing codes.ctest -E "^agc|gpu|vulkan|video_out"): 648/650, same asmain. The two failures (file_writer_binary,file_writer_text) also fail onmainon this machine.python3 tools/check_conventions.py --base main: passed.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T07:34:10Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceNetCtl.mdL8-9Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceNetCtl.mdcore/libs/tests/GuestNetCtl.cppcore/libs/prx/libSceNetCtl/Export.cppcore/libs/prx/libSceNetCtl/Export.cppcore/libs/tests/GuestNetCtl.cppdocs/dev/debt/libSceNetCtl.mdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T06:42:00Z.
Thanks for this. #6227 just merged and covers info codes 12, 13 and 20, so this PR will now conflict in Export.cpp, GuestNetCtl.cpp and the debt file. Could you rebase onto current main and keep only the remaining codes on top of #6227? Happy to review once it's rebased.
Imported from boykopovar/AnyPS5. Originally posted by AdvaitPalve11 on 2026-10-17T06:52:13Z.
Rebased onto current main on top of #6227. Kept only the remaining info codes (Wi-Fi 5–10 and HTTP proxy port 21) and updated GuestNetCtl.cpp and the debt file accordingly. Conventions checks pass locally. Ready for review
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-17T15:16:41Z.
Review: COMMENTED
Re-run of the rebased head, which now keeps only codes 5-10 and 21 on top of #6227 (my earlier review was on
acace97f9).Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release,
BUILD_TESTING=ON, full build.Head
66bbd28ccmerged ontomain40315fcf8(clean merge).guest_net_ctlandguest_netctl_ap_dialogpass with the PR.main:guest_net_ctlaborts withsceNetCtlGetInfo: info code 5 is not implemented, so the test still catches the missing codes.ctest -E "^agc|gpu|vulkan|video_out"): 682/682, same asmainon this machine.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by AdvaitPalve11 on 2026-10-18T03:45:00Z.
Rebased onto current
mainon top of #7237. Kept only the remaining Wi-Fi info codes (5–10) and updatedGuestNetCtl.cppand the debt file accordingly. Conventions checks andguest_net_ctltests pass locally. Ready for review.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:11:25Z.
Re-checked against current main: the diff only fills Wi-Fi BSSID/SSID (5, 6) with empty strings and 7-10 with 0, matching KytyPS5 (
NetCtlGetInfo); the test pins those values and the debt line cites the source and says it is not measured on hardware. Merged.