Skip to content

feat(netctl): implement remaining info codes in sceNetCtlGetInfo - #6720

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
AdvaitPalve11:feat-netctl-info-codes
Oct 19, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
AdvaitPalve11:feat-netctl-info-codes

Conversation

@AdvaitPalve11

Copy link
Copy Markdown
Contributor

What

Implement remaining info codes in sceNetCtlGetInfo:

  • Wi-Fi status codes 5-10 (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)
  • DHCP host name code 12 (NET_CTL_INFO_DHCP_HOSTNAME) queried via host gethostname (falling back to "PS5")
  • PPPoE auth name code 13 (NET_CTL_INFO_PPPOE_AUTH_NAME)
  • HTTP proxy codes 20 (NET_CTL_INFO_HTTP_PROXY_SERVER) and 21 (NET_CTL_INFO_HTTP_PROXY_PORT)
  • Added assertions in GuestNetCtl.cpp validating all returned information
  • Updated docs/dev/debt/libSceNetCtl.md

Tested

Windows 11 x86-64, Silent Hill: The Short Message (PPSA10112). Engine previously crashed throwing std::runtime_error: sceNetCtlGetInfo: info code 12 is not implemented during network initialization; with this change it retrieves the host configuration and proceeds through graphics and engine bring-up. All GuestNetCtl.cpp tests pass.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA10112
  • GPUs tested: n/a
  • AI-assisted: yes

@jotitadev jotitadev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ctl passes, 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.cpp on main's Export.cpp, guest_net_ctl aborts (Subprocess aborted). The test catches the missing codes.
  • Non-GPU suite (ctest -E "^agc|gpu|vulkan|video_out"): 648/650, same as main. The two failures (file_writer_binary, file_writer_text) also fail on main on 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.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7612 docs/dev/debt/libSceNetCtl.md L8-9

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.

Pull request Shared files not compared
PR 6039 docs/dev/debt/libSceNetCtl.md
PR 6044 core/libs/tests/GuestNetCtl.cpp
PR 7201 core/libs/prx/libSceNetCtl/Export.cpp
PR 7332 core/libs/prx/libSceNetCtl/Export.cpp
core/libs/tests/GuestNetCtl.cpp
docs/dev/debt/libSceNetCtl.md

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 17, 2026
@AdvaitPalve11
AdvaitPalve11 force-pushed the feat-netctl-info-codes branch from acace97 to 66bbd28 Compare October 17, 2026 06:50
@AdvaitPalve11

Copy link
Copy Markdown
Contributor Author

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

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 17, 2026

@jotitadev jotitadev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_ctl and guest_netctl_ap_dialog pass with the PR.
  • Test file only, on main: guest_net_ctl aborts with sceNetCtlGetInfo: 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 as main on this machine.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 17, 2026
@AdvaitPalve11
AdvaitPalve11 force-pushed the feat-netctl-info-codes branch from 66bbd28 to 358ba6d Compare October 18, 2026 03:43
@AdvaitPalve11

Copy link
Copy Markdown
Contributor Author

Rebased onto current main on top of #7237. Kept only the remaining Wi-Fi info codes (5–10) and updated GuestNetCtl.cpp and the debt file accordingly. Conventions checks and guest_net_ctl tests pass locally. Ready for review.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 18, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed unblocks title Names a title ID on the Unblocks line labels Oct 18, 2026
@adriadam10 adriadam10 self-assigned this Oct 19, 2026
@adriadam10
adriadam10 force-pushed the feat-netctl-info-codes branch from 358ba6d to d4fdc03 Compare October 19, 2026 08:03
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 19, 2026
@adriadam10
adriadam10 merged commit b7a7581 into boykopovar:main Oct 19, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs prx unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants