1 #ifndef DEVICES_SANA2WIRELESS_H 2 #define DEVICES_SANA2WIRELESS_H 3 4 /* 5 Copyright (C) 2011 Neil Cafferkey 6 $Id: sana2wireless.h,v 1.1 2011/11/10 00:17:29 cyfm Exp $ 7 8 Desc: Definitions for SANA-II wireless devices 9 Lang: english 10 */ 11 12 #include <exec/types.h> 13 #include <utility/tagitem.h> 14 15 16 /* Constants */ 17 /* ========= */ 18 19 /* Tags to get and set information */ 20 21 #define S2INFO_SSID (TAG_USER + 0) 22 #define S2INFO_BSSID (TAG_USER + 1) 23 #define S2INFO_AuthTypes (TAG_USER + 2) 24 #define S2INFO_AssocID (TAG_USER + 3) 25 #define S2INFO_Encryption (TAG_USER + 4) 26 #define S2INFO_PortType (TAG_USER + 5) 27 #define S2INFO_BeaconInterval (TAG_USER + 6) 28 #define S2INFO_Channel (TAG_USER + 7) 29 #define S2INFO_Signal (TAG_USER + 8) 30 #define S2INFO_Noise (TAG_USER + 9) 31 #define S2INFO_Capabilities (TAG_USER + 10) 32 #define S2INFO_InfoElements (TAG_USER + 11) 33 #define S2INFO_WPAInfo (TAG_USER + 12) 34 #define S2INFO_Band (TAG_USER + 13) 35 #define S2INFO_DefaultKeyNo (TAG_USER + 14) 36 37 /* Wireless Commands */ 38 39 #define S2_GETSIGNALQUALITY 0xc010 40 #define S2_GETNETWORKS 0xc011 41 #define S2_SETOPTIONS 0xc012 42 #define S2_SETKEY 0xc013 43 #define S2_GETNETWORKINFO 0xc014 44 #define S2_READMGMT 0xc015 45 #define S2_WRITEMGMT 0xc016 46 #define S2_GETRADIOBANDS 0xc017 47 48 /* Encryption types */ 49 50 #define S2ENC_NONE 0 51 #define S2ENC_WEP 1 52 #define S2ENC_TKIP 2 53 #define S2ENC_CCMP 3 54 55 /* Radio modes */ 56 57 #define S2BAND_A 0 58 #define S2BAND_B 1 59 #define S2BAND_G 2 60 #define S2BAND_N 3 61 62 /* Network topologies */ 63 64 #define S2PORT_MANAGED 7 65 #define S2PORT_ADHOC 8 66 67 68 /* Structures */ 69 /* ========== */ 70 71 /* Structure for returning signal quality */ 72 73 struct Sana2SignalQuality 74 { 75 LONG SignalLevel; /* signal level in dBm */ 76 LONG NoiseLevel; /* noise level in dBm */ 77 }; 78 79 #endif