From 5660b2b35adcaa8071a6e5605d352002855987c0 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Mon, 17 Apr 2023 18:46:21 -0400 Subject: [PATCH] SceNetAdhocctlParams: Swap order of BSSID and Nickname Prompted by #46, I have taken the time looking at `pspnet_adhocctl.prx` in older firmware versions via Ghidra (thanks @sajattack) and some early Adhoc-capable titles like Ridge Racer and Hot Shot's Golf, I have concluded that the order of elements in the `SceNetAdhocctlParams` struct to have always been `nickname`, followed by `bssid`. Not changed in any later firmware revision. This commit resolves this discrepancy. --- src/net/pspnet_adhocctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/pspnet_adhocctl.h b/src/net/pspnet_adhocctl.h index f357322c..f093cf2a 100644 --- a/src/net/pspnet_adhocctl.h +++ b/src/net/pspnet_adhocctl.h @@ -74,10 +74,10 @@ struct SceNetAdhocctlParams int channel; /** Name of the connection */ char name[8]; - /** The BSSID */ - unsigned char bssid[6]; /** Nickname */ char nickname[128]; + /** The BSSID */ + unsigned char bssid[6]; }; /**