Fixed compatibility of output.
[AROS.git] / compiler / include / devices / sana2wireless.h
blobab6694d3f9b77c1ea4c4cd7b5fb4f5de557e8f3a
1 #ifndef DEVICES_SANA2WIRELESS_H
2 #define DEVICES_SANA2WIRELESS_H
4 /*
5 Copyright (C) 2011 Neil Cafferkey
6 $Id$
8 Desc: Definitions for SANA-II wireless devices
9 Lang: english
12 #include <exec/types.h>
13 #include <utility/tagitem.h>
16 /* Constants */
17 /* ========= */
19 /* Tags to get and set information */
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)
37 /* Wireless Commands */
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
48 /* Encryption types */
50 #define S2ENC_NONE 0
51 #define S2ENC_WEP 1
52 #define S2ENC_TKIP 2
53 #define S2ENC_CCMP 3
55 /* Radio modes */
57 #define S2BAND_A 0
58 #define S2BAND_B 1
59 #define S2BAND_G 2
60 #define S2BAND_N 3
62 /* Network topologies */
64 #define S2PORT_MANAGED 7
65 #define S2PORT_ADHOC 8
68 /* Structures */
69 /* ========== */
71 /* Structure for returning signal quality */
73 struct Sana2SignalQuality
75 LONG SignalLevel; /* signal level in dBm */
76 LONG NoiseLevel; /* noise level in dBm */
79 #endif