Getting local MAC Address
Getting local MAC Address
I'm trying to use the sceNetGetLocalEtherAddr() to get the local PSP MAC address. The API only works after the program has made a successful connection to a AP. The API fails if the program haven't made a successful connection to the AP and returns 0x80410180. Anyone know what the error code means? BTW, is there anyway to obtain the local MAC address without having physically made a connection to a AP. Thanks!
Re: Getting local MAC Address
sceWlanGetEtherAddrPhantom8 wrote:BTW, is there anyway to obtain the local MAC address without having physically made a connection to a AP.
Thanks for the reply, Vampire! The sceWlanGetEtherAddr api it's not included in the standard pspsdk library, which means I will need to load a .prx module and patch it my myself. The problem is I don't even know which prx contains this API and also not sure how to patch it. Any hints would be appreciated.
> I checked other .S files, but don't know how to get the entry point numbers and NIDs for WLAN module and its APIs. or for the single entry
(notice the change for the count)
NOTE: you can get most names/nids from the database:
http://pspdev.ofcode.com/api.php?type=2&id=176
Code: Select all
STUB_START "sceWlanDrv",0x40010000,0x00030004
STUB_FUNC 0x93440b11,sceWlanDevIsPowerOn
STUB_FUNC 0xd7763699,sceWlanGetSwitchState
STUB_FUNC 0x0c622081,sceWlanGetEtherAddr
STUB_END
Code: Select all
STUB_START "sceWlanDrv",0x40010000,0x00010004
STUB_FUNC 0x0c622081,sceWlanGetEtherAddr
STUB_END
NOTE: you can get most names/nids from the database:
http://pspdev.ofcode.com/api.php?type=2&id=176