1 /*---------------------------------------------------------------------------* 2 Project: RevolutionSDK Extensions - libraries - wd 3 File: WDTypes.h 4 5 Copyright 2006 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 *---------------------------------------------------------------------------*/ 13 14 #ifndef WD_WDTYPES_H_ 15 #define WD_WDTYPES_H_ 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 /*===========================================================================*/ 21 22 #include <revolution/wd/WDConst.h> 23 24 typedef struct WDBssDesc_ 25 { 26 u16 length; 27 u16 rssi; 28 u8 bssid[ WD_SIZE_BSSID ]; 29 u16 ssidLength; 30 u8 ssid[ WD_SIZE_SSID]; 31 u16 capaInfo; 32 struct 33 { 34 u16 basic; 35 u16 support; 36 } rateSet; 37 u16 beaconPeriod; 38 u16 dtimPeriod; 39 u16 channel; 40 u16 cfpPeriod; 41 u16 cfpMaxDuration; 42 u16 info_elt_len; 43 u16 info_elt[1]; 44 } __attribute__((packed)) WDBssDesc; 45 46 /* Scan type */ 47 typedef enum 48 { 49 WD_SCANTYPE_ACTIVE = 0, 50 WD_SCANTYPE_PASSIVE = 1, 51 WD_SCANTYPE_MAX, 52 WD_SCANTYPE_INTMAX = 0xffffffff 53 } WDScanType; 54 55 /*===========================================================================*/ 56 #ifdef __cplusplus 57 } /* extern "C" */ 58 #endif /* __cplusplus */ 59 60 #endif /* WD_WDTYPES_H_ */ 61 62 /*---------------------------------------------------------------------------* 63 $Log: WDTypes.h,v $ 64 Revision 1.4 2006/09/04 05:22:18 yoshioka_yasuhiro 65 Added WDScanType 66 67 Revision 1.3 2006/08/30 11:44:34 yoshioka_yasuhiro 68 Changed specifications of WDBssDesc 69 70 Revision 1.2 2006/08/30 00:05:39 adachi_hiroaki 71 Added newlines to end of file to suppress gcc warnings 72 73 Revision 1.1 2006/08/29 07:01:55 yoshioka_yasuhiro 74 Initial Commit. 75 76 *---------------------------------------------------------------------------*/ 77