diff --git a/desmume/src/wifi.cpp b/desmume/src/wifi.cpp index 81c26950a..623fc175b 100644 --- a/desmume/src/wifi.cpp +++ b/desmume/src/wifi.cpp @@ -1978,6 +1978,43 @@ void SoftAP_Reset() SoftAP.seqNum = 0; } +//I coded this up in a minute. is there a standard way of doing this or another function I can borrow? +static s32 searchmem(u8* data, u32 len, char* search) +{ + s32 i=0; + u32 searchLen = strlen(search); + if(len==0) return -1; + if(searchLen==0) return -1; + + for(;;) + { + u32 j=0; + s32 snap = i; + for(;i> 2) & 0x3) { case 0x0: // Management frame