Repository navigation
feat(netctl): implement remaining info codes in sceNetCtlGetInfo - #6720
Conversation
jotitadev
left a comment
There was a problem hiding this comment.
Native Linux run on exact head acace97f9a1682a72734d1c6755e22d030f283dd, applied on main 5d9dcc42d.
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.- With only the new
GuestNetCtl.cpponmain'sExport.cpp,guest_net_ctlaborts (Subprocess aborted). The test catches the missing codes. - Non-GPU suite (
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.
|
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.
Some 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.
|
acace97 to
66bbd28
Compare
|
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 |
jotitadev
left a comment
There was a problem hiding this comment.
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 66bbd28cc merged onto main 40315fcf8 (clean merge).
guest_net_ctlandguest_netctl_ap_dialogpass with the PR.- Test file only, on
main:guest_net_ctlaborts withsceNetCtlGetInfo: info code 5 is not implemented, so the test still catches the missing codes. - Non-GPU suite (
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.
66bbd28 to
358ba6d
Compare
|
Rebased onto current |
358ba6d to
d4fdc03
Compare
|
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 ( |
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)