1 #ifndef DEVICES_SANA2WIRELESS_H
2 #define DEVICES_SANA2WIRELESS_H
5 Copyright (C) 2011 Neil Cafferkey
8 Desc: Definitions for SANA-II wireless devices
12 #include <exec/types.h>
13 #include <utility/tagitem.h>
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 */
62 /* Network topologies */
64 #define S2PORT_MANAGED 7
65 #define S2PORT_ADHOC 8
71 /* Structure for returning signal quality */
73 struct Sana2SignalQuality
75 LONG SignalLevel
; /* signal level in dBm */
76 LONG NoiseLevel
; /* noise level in dBm */