fixi wifi compiling in linux

This commit is contained in:
zeromus 2009-07-27 18:01:42 +00:00
parent ae940c79e1
commit 66c895dca4
2 changed files with 6 additions and 5 deletions

View File

@ -32,12 +32,13 @@
#include "pcap/pcap.h"
#endif
wifimac_t wifiMac;
bool wifi_netEnabled = false;
pcap_t *wifi_bridge = NULL;
#endif
wifimac_t wifiMac;
/*******************************************************************************
Firmware info needed for wifi, if no firmware image is available

View File

@ -30,6 +30,7 @@
#define PACKET_SIZE 65535
#define _INC_STDIO
#endif
#define REG_WIFI_ID 0x000
#define REG_WIFI_MODE 0x004
@ -476,11 +477,12 @@ typedef struct
} wifimac_t ;
// desmume host communication
#ifdef EXPERIMENTAL_WIFI
typedef struct pcap pcap_t;
extern bool wifi_netEnabled;
extern pcap_t *wifi_bridge;
#endif
extern bool wifi_netEnabled;
extern wifimac_t wifiMac;
@ -521,8 +523,6 @@ void WIFI_SoftAP_Shutdown(wifimac_t *wifi);
void WIFI_SoftAP_RecvPacketFromDS(wifimac_t *wifi, u8 *packet, int len);
void WIFI_SoftAP_usTrigger(wifimac_t *wifi);
#endif
/* DS WFC profile data documented here : */
/* http://dsdev.bigredpimp.com/2006/07/31/aoss-wfc-profile-data/ */
/* Note : we use bytes to avoid endianness issues */