wlanfirm: make it compile

This commit is contained in:
Clément G 2013-03-26 16:16:04 +01:00
parent f2c3897b1f
commit 2b891301e4
2 changed files with 9 additions and 7 deletions

View File

@ -9,8 +9,8 @@
* Size 1852
*/
static u32 wlanfirmHelperSize = 1852;
static u8 wlanfirmHelper[] __attribute__((aligned(16))) = {
static u32 g_wlanfirmHelperSize = 1852;
static u8 g_wlanfirmHelper[] __attribute__((aligned(16))) = {
0x03, 0x00, 0x00, 0xea, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x9f, 0xe5, 0x10, 0x0f, 0x01, 0xee, 0x20, 0xd0, 0x9f, 0xe5,
0x20, 0x00, 0x9f, 0xe5, 0x00, 0x10, 0x90, 0xe5, 0x1c, 0x20, 0x9f, 0xe5, 0x00, 0x10, 0x82, 0xe5,

View File

@ -8,6 +8,8 @@
#include "firmware/magpie.c"
#include "firmware/magpie_helper.c"
void sceWlanDrv_driver_90E5530F(void*, s32, void*, s32);
s32 module_start(SceSize argc __attribute__((unused)), void *argp __attribute__((unused)))
{
u16 key45;
@ -20,11 +22,11 @@ s32 module_start(SceSize argc __attribute__((unused)), void *argp __attribute__(
return 1;
}
sceWlanDrv_driver_1747351B(
wlanfirmHelper, // 0x14C
wlanfirmHelperSize, // 1852
wlanfirm, // 0x888
wlanfirmSize, // 87168
sceWlanDrv_driver_90E5530F(
g_wlanfirmHelper, // 0x14C
g_wlanfirmHelperSize, // 1852
g_wlanfirm, // 0x888
g_wlanfirmSize // 87168
);
return 0;