grub2: bring back build of aros-side grub2 tools
[AROS.git] / compiler / include / devices / sana2wireless.h
blobfc09a58927a15d5d2e18e2af801d97c744e37c8c
1 #ifndef DEVICES_SANA2WIRELESS_H
2 #define DEVICES_SANA2WIRELESS_H
4 /*
5 Copyright (C) 2011-2013 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
47 #define S2_GETCRYPTTYPES 0xc018
49 /* Encryption types */
51 #define S2ENC_NONE 0
52 #define S2ENC_WEP 1
53 #define S2ENC_TKIP 2
54 #define S2ENC_CCMP 3
56 /* Radio modes */
58 #define S2BAND_A 0
59 #define S2BAND_B 1
60 #define S2BAND_G 2
61 #define S2BAND_N 3
63 /* Network topologies */
65 #define S2PORT_MANAGED 7
66 #define S2PORT_ADHOC 8
69 /* Structures */
70 /* ========== */
72 /* Structure for returning signal quality */
74 struct Sana2SignalQuality
76 LONG SignalLevel; /* signal level in dBm */
77 LONG NoiseLevel; /* noise level in dBm */
80 #endif