I am playing with the wifi, and for sure there is a lack of documentation and infos on some parts.
I didn't find much information on sceNetApctlGetInfo and its parameters (less than 15 threads with the keyword..), so I investigate and what I understood is below:
You may have 18 codes, here are my #define
Code: Select all
#define PSP_CONSTATE_PROFILE_NAME 0 /*string */
#define PSP_CONSTATE_BSSID 1 /*u8 [6] */
#define PSP_CONSTATE_SSID 2 /*string */
#define PSP_CONSTATE_UNK1 3 /*u32*/
#define PSP_CONSTATE_UNK2 4 /*u32*/
#define PSP_CONSTATE_STRENGTH 5 /*u8*/
#define PSP_CONSTATE_CHANNEL 6 /*u8*/
#define PSP_CONSTATE_UNK4 7 /*u8*/
#define PSP_CONSTATE_IP 8 /*string */
#define PSP_CONSTATE_SUBNETMASK 9 /*string */
#define PSP_CONSTATE_GATEWAY 10 /*string */
#define PSP_CONSTATE_PRIMDNS 11 /*string */
#define PSP_CONSTATE_SECDNS 12 /*string */
#define PSP_CONSTATE_USEPROXY 13 /*u32*/
#define PSP_CONSTATE_PROXYURL 14 /*string */
#define PSP_CONSTATE_PROXYPORT 15 /*u16*/
#define PSP_CONSTATE_UNK5 16 /*u32*/
#define PSP_CONSTATE_STARTBROWSER 17 /*u32*/
#define PSP_CONSTATE_UNK6 18 /*u32*/
here is my class
Code: Select all
class ZBnetConnectionState
{
protected:
string name; //name of the ocnfiguration used
u8 bssid[6]; //mac address of the access point
string ssid; //ssid
u32 unk1; //? for me it is always 12
u32 unk2; //? for me it is always 1
u8 strength; //signal strength in %
u8 channel; //channel
u8 unk4; //? for me it is always 1
string ip; //PSP's ip
string subNetMask; //subnet mask
string gateway; //gateway
string primaryDns; //primary DNS
string secondaryDns; //secondary DNS
u32 useProxy; //should I use a Proxy : 1 => yes 0=> no
string proxyUrl; //proxy url
u16 proxyPort; //proxy port
u32 unk5; //? for me it is always 0
u32 startBrowser; //should a browser be started
u32 unk6; //? for me it is always 0
public:
//Ctor and Dtor
virtual ~ZBnetConnectionState () {};
ZBnetConnectionState() {} ;
int load( void);
void display( void);
};