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

Merged
AdvaitPalve11 merged 1 commit from upstream-pr/6720 into main 2026-10-19 10:10:03 +00:00
AdvaitPalve11 commented 2026-10-16 07:08:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AdvaitPalve11 on 2026-10-16T07:08:39Z.


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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4884804424 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720). Originally posted by [AdvaitPalve11](https://github.com/AdvaitPalve11) on 2026-10-16T07:08:39Z. --- ### 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 - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA10112 - [x] GPUs tested: n/a - [x] AI-assisted: yes
jotitadev commented 2026-10-16 07:33:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T07:33:36Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5544419789 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#pullrequestreview-5544419789). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T07:33:36Z. **Review:** COMMENTED --- 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[bot] commented 2026-10-16 07:34:10 +00:00 (Migrated from github.com)

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.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6210492083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#issuecomment-6210492083). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T07:34:10Z. --- <!-- pr-overlap --> 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](https://www.github.com/boykopovar/AnyPS5/pull/7612) | `docs/dev/debt/libSceNetCtl.md` [L8-9](https://github.com/boykopovar/AnyPS5/blob/415cd49fd30f31914a89d3add0cf44ed3ca52d2b/docs/dev/debt/libSceNetCtl.md#L8-L9) | | | 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](https://www.github.com/boykopovar/AnyPS5/pull/6039) | `docs/dev/debt/libSceNetCtl.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestNetCtl.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceNetCtl/Export.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceNetCtl/Export.cpp`<br>`core/libs/tests/GuestNetCtl.cpp`<br>`docs/dev/debt/libSceNetCtl.md` |
oneandonlydean commented 2026-10-17 06:42:00 +00:00 (Migrated from github.com)

Imported 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6230803276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#issuecomment-6230803276). Originally posted by [oneandonlydean](https://github.com/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.
AdvaitPalve11 commented 2026-10-17 06:52:13 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6230892626 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#issuecomment-6230892626). Originally posted by [AdvaitPalve11](https://github.com/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
jotitadev commented 2026-10-17 15:16:41 +00:00 (Migrated from github.com)

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 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5558429126 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#pullrequestreview-5558429126). Originally posted by [jotitadev](https://github.com/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 `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.
AdvaitPalve11 commented 2026-10-18 03:45:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AdvaitPalve11 on 2026-10-18T03:45:00Z.


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245318239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#issuecomment-6245318239). Originally posted by [AdvaitPalve11](https://github.com/AdvaitPalve11) on 2026-10-18T03:45:00Z. --- 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.
adriadam10 commented 2026-10-19 10:11:25 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264811536 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6720#issuecomment-6264811536). Originally posted by [adriadam10](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6720
No description provided.