feat(libSceNetCtlAp): implement the access-point service that never starts #8038
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8038"
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 MarrasFederico on 2026-10-19T18:26:29Z.
What
All eleven
libSceNetCtlApexports threwnot implemented. SharpProsperoNetCtlAp.csdocuments the access-point control service:SceNetCtlApInfoand 184-byteSceNetCtlApConnectInfo, each with a size field the caller fills;A title starts the access point through
libSceNetCtlApDialog, which here always reports the user as having cancelled, so the access point never starts. The service now behaves as a service whose access point is stopped:sceNetCtlApInitand aftersceNetCtlApTerm, every call returnsNOT_INITIALIZED(0x80412994).sceNetCtlApTermalso drops the registered callbacks.sceNetCtlApGetStatewrites Stopped (0). A null pointer returnsINVALID_ADDR(0x80412991).sceNetCtlApGetInfoandsceNetCtlApGetConnectInfo:INVALID_ADDR;INVALID_SIZE(0x80412998);NOT_STARTED(0x8041298F) without writing.sceNetCtlApStopreturnsNOT_STARTED.sceNetCtlApRegisterCallbackgives the lowest free of eight slots. A ninth registration returnsCALLBACK_MAX(0x80412995), and a null function or id returnsINVALID_ADDR.sceNetCtlApUnregisterCallbackreturnsINVALID_ID(0x80412996) outside 0 to 7 andID_NOT_FOUND(0x80412997) for a free slot.sceNetCtlApCheckCallbackreturns 0 and calls nothing, since the state never changes.sceNetCtlApClearEventandsceNetCtlApGetResultaccept event types 1 to 4 and returnINVALID_TYPE(0x80412990) for others.sceNetCtlApGetResultwrites 0, since no event has occurred.sceNetCtlApInit: throws, as no error for it is documented.The new
docs/dev/debt/libSceNetCtlAp.mdrecords what is unverified on a console:sceNetCtlApStopon a stopped access point;Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON. Windows was not compiled. No title was run.guest_netctl_ap:NOT_INITIALIZEDwithout writing before init, after term and after a second term.NOT_STARTEDand leave everything after the size field untouched; this holds with and without an option string. Null pointers and wrong sizes give the errors above.NOT_STARTED.INVALID_TYPEwithout writing.CALLBACK_MAX, and null arguments returnINVALID_ADDR. Checking callbacks calls none of them.ID_NOT_FOUND, ids -1 and 8 returnINVALID_ID, and the freed id 3 is reused.main, where every call throws. Removing theID_NOT_FOUNDcheck or the info size check makes it fail.guest_netctl_ap_dialogstill passes.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyfinds no conflicting lines. It could not compare #5021, #6044, #7201, #7332 and #7495, which conflict withmain; none of them changes the netctl test entries incore/libs/CMakeLists.txt.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 github-actions[bot] on 2026-10-19T18:30:49Z.
Progress report (
1e774a3→d8b425f)📈 System libraries: 80.15% (+0.21%, +11 implemented functions)
✅ 11 implemented
sceNetCtlApCheckCallbacksceNetCtlApClearEventsceNetCtlApGetConnectInfosceNetCtlApGetInfosceNetCtlApGetResultsceNetCtlApGetStatesceNetCtlApInitsceNetCtlApRegisterCallbacksceNetCtlApStopsceNetCtlApTermsceNetCtlApUnregisterCallbackImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T18:39:35Z.
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.
core/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtcore/libs/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T00:17:17Z.
Windows 11, Ryzen 5 9600X, WinLibs GCC 15.2.0 (UCRT), Release,
BUILD_TESTING=ON. Headd8b425f1bmerged ontomaineb7500680. The description says Windows was not compiled.guest_netctl_apandguest_netctl_ap_dialogpass.libSceNetCtlAp/Export.cppput back tomain,guest_netctl_apaborts withsceNetCtlApCheckCallback not implemented.NetCtlAp.csat 5dfdb4b. All eight error codes, the 152- and 184-byte sizes with anuintsize field at offset 0,CallbackMax = 8and event types 1 to 4 match.NOT_STARTEDfromGetInfo,GetConnectInfoandStop, andINVALID_TYPEchecked before a nullerrorCode) is the PR's choice. The debt covers the check order andStop, but not the choice ofNOT_STARTEDforGetInfo/GetConnectInfo.InvalidCid = -1: "The value the runtime writes into a callback id that has not been claimed". The PR leaves*ciduntouched when it returnsCALLBACK_MAX(the test checksextra == -1only because it sets -1 first).OptStrLen = 8andErrorInvalidOptStr = 0x80412901, which suggest the console validates the option string. The debt says it is not read.AI-assisted: yes (Claude Code); results above were run on this machine.