Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 modes = ['Auto',
00022 'Ad-Hoc',
00023 'Managed',
00024 'Master',
00025 'Repeat',
00026 'Second',
00027 'Monitor',
00028 'Unknown/bug']
00029
00030 IFNAMSIZE = 16
00031 IW_ESSID_MAX_SIZE = 32
00032 IW_MAX_FREQUENCIES = 32
00033 IW_MAX_BITRATES = 32
00034 IW_MAX_TXPOWER = 8
00035
00036 SIOCGIFCONF = 0x8912
00037
00038
00039 SIOCSIWCOMMIT = 0x8B00
00040 SIOCGIWNAME = 0x8B01
00041 SIOCSIWNWID = 0x8B02
00042 SIOCGIWNWID = 0x8B03
00043 SIOCSIWFREQ = 0x8B04
00044 SIOCGIWFREQ = 0x8B05
00045 SIOCSIWMODE = 0x8B06
00046 SIOCGIWMODE = 0x8B07
00047 SIOCSIWSENS = 0x8B08
00048 SIOCGIWSENS = 0x8B09
00049 SIOCSIWRANGE = 0x8B0A
00050 SIOCGIWRANGE = 0x8B0B
00051 SIOCSIWPRIV = 0x8B0C
00052 SIOCGIWPRIV = 0x8B0D
00053 SIOCSIWSTATS = 0x8B0E
00054 SIOCGIWSTATS = 0x8B0F
00055 SIOCSIWSPY = 0x8B10
00056 SIOCGIWSPY = 0x8B11
00057 SIOCSIWTHRSPY = 0x8B12
00058 SIOCGIWTHRSPY = 0x8B13
00059 SIOCSIWAP = 0x8B14
00060 SIOCGIWAP = 0x8B15
00061 SIOCGIWAPLIST = 0x8B17
00062 SIOCSIWSCAN = 0x8B18
00063 SIOCGIWSCAN = 0x8B19
00064 SIOCSIWESSID = 0x8B1A
00065 SIOCGIWESSID = 0x8B1B
00066 SIOCSIWNICKN = 0x8B1C
00067 SIOCGIWNICKN = 0x8B1D
00068 SIOCSIWRATE = 0x8B20
00069 SIOCGIWRATE = 0x8B21
00070 SIOCSIWRTS = 0x8B22
00071 SIOCGIWRTS = 0x8B23
00072 SIOCSIWFRAG = 0x8B24
00073 SIOCGIWFRAG = 0x8B25
00074 SIOCSIWTXPOW = 0x8B26
00075 SIOCGIWTXPOW = 0x8B27
00076 SIOCSIWRETRY = 0x8B28
00077 SIOCGIWRETRY = 0x8B29
00078 SIOCSIWENCODE = 0x8B2A
00079 SIOCGIWENCODE = 0x8B2B
00080 SIOCSIWPOWER = 0x8B2C
00081 SIOCGIWPOWER = 0x8B2D
00082 SIOCSIWMODUL = 0x8B2E
00083 SIOCGIWMODUL = 0x8B2F
00084 SIOCSIWGENIE = 0x8B30
00085 SIOCGIWGENIE = 0x8B31
00086
00087 SIOCSIWMLME = 0x8B16
00088 SIOCSIWAUTH = 0x8B32
00089 SIOCGIWAUTH = 0x8B33
00090 SIOCSIWENCODEEXT = 0x8B34
00091 SIOCGIWENCODEEXT = 0x8B35
00092 SIOCSIWPMKSA = 0x8B36
00093
00094 SIOCIWFIRST = 0x8B00
00095 SIOCIWLAST = 0x8BFF
00096
00097
00098 IWEVFIRST = 0x8C00
00099 IWEVTXDROP = 0x8C00
00100 IWEVQUAL = 0x8C01
00101 IWEVCUSTOM = 0x8C02
00102 IWEVREGISTERED = 0x8C03
00103 IWEVEXPIRED = 0x8C04
00104 IWEVGENIE = 0x8C05
00105 IWEVMICHAELMICFAILURE = 0x8C06
00106 IWEVASSOCREQIE = 0x8C07
00107 IWEVASSOCRESPIE = 0x8C08
00108 IWEVPMKIDCAND = 0x8C09
00109 IWEVLAST = 0x8C0A
00110
00111
00112 IW_POWER_ON = 0x0000
00113 IW_POWER_TYPE = 0xF000
00114 IW_POWER_PERIOD = 0x1000
00115 IW_POWER_TIMEOUT = 0x2000
00116 IW_POWER_SAVING = 0x4000
00117 IW_POWER_MODE = 0x0F00
00118 IW_POWER_UNICAST_R = 0x0100
00119 IW_POWER_MULTICAST_R = 0x0200
00120 IW_POWER_ALL_R = 0x0300
00121 IW_POWER_FORCE_S = 0x0400
00122 IW_POWER_REPEATER = 0x0800
00123 IW_POWER_MODIFIER = 0x000F
00124 IW_POWER_MIN = 0x0001
00125 IW_POWER_MAX = 0x0002
00126 IW_POWER_RELATIVE = 0x0004
00127
00128
00129 IW_RETRY_ON = 0x0000
00130 IW_RETRY_TYPE = 0xF000
00131 IW_RETRY_LIMIT = 0x1000
00132 IW_RETRY_LIFETIME = 0x2000
00133 IW_RETRY_MODIFIER = 0x00FF
00134 IW_RETRY_MIN = 0x0001
00135 IW_RETRY_MAX = 0x0002
00136 IW_RETRY_RELATIVE = 0x0004
00137 IW_RETRY_SHORT = 0x0010
00138 IW_RETRY_LONG = 0x0020
00139
00140
00141 IW_MODE_AUTO = 0
00142 IW_MODE_ADHOC = 1
00143 IW_MODE_INFRA = 2
00144 IW_MODE_MASTER = 3
00145 IW_MODE_REPEAT = 4
00146 IW_MODE_SECOND = 5
00147 IW_MODE_MONITOR = 6
00148
00149
00150 IW_QUAL_QUAL_UPDATED = 0x01
00151 IW_QUAL_LEVEL_UPDATED = 0x02
00152 IW_QUAL_NOISE_UPDATED = 0x04
00153 IW_QUAL_ALL_UPDATED = 0x07
00154 IW_QUAL_DBM = 0x08
00155 IW_QUAL_QUAL_INVALID = 0x10
00156 IW_QUAL_LEVEL_INVALID = 0x20
00157 IW_QUAL_NOISE_INVALID = 0x40
00158 IW_QUAL_RCPI = 0x80
00159 IW_QUAL_ALL_INVALID = 0x70
00160
00161
00162 IW_FREQ_AUTO = 0x00
00163 IW_FREQ_FIXED = 0x01
00164
00165
00166 IW_MAX_ENCODING_SIZES = 8
00167
00168
00169 IW_ENCODING_TOKEN_MAX = 64
00170
00171
00172 IW_ENCODE_INDEX = 0x00FF
00173 IW_ENCODE_FLAGS = 0xFF00
00174 IW_ENCODE_MODE = 0xF000
00175 IW_ENCODE_DISABLED = 0x8000
00176 IW_ENCODE_ENABLED = 0x0000
00177 IW_ENCODE_RESTRICTED = 0x4000
00178 IW_ENCODE_OPEN = 0x2000
00179 IW_ENCODE_NOKEY = 0x0800
00180 IW_ENCODE_TEMP = 0x0400
00181
00182
00183 ETH_ALEN = 6
00184
00185
00186 IW_SCAN_MAX_DATA = 4096
00187
00188
00189 IW_EV_LCP_LEN = 4
00190 IW_EV_CHAR_LEN = IW_EV_LCP_LEN + IFNAMSIZE
00191 IW_EV_UINT_LEN = IW_EV_LCP_LEN + 4
00192 IW_EV_FREQ_LEN = IW_EV_LCP_LEN + 8
00193 IW_EV_ADDR_LEN = IW_EV_LCP_LEN + 16
00194 IW_EV_POINT_LEN = IW_EV_LCP_LEN + 4
00195 IW_EV_PARAM_LEN = IW_EV_LCP_LEN + 8
00196 IW_EV_QUAL_LEN = IW_EV_LCP_LEN + 4
00197
00198 IW_EV_LCP_PK_LEN = 4
00199
00200 IWHT_NULL = 0
00201 IWHT_CHAR = 2
00202 IWHT_UINT = 4
00203 IWHT_FREQ = 5
00204 IWHT_ADDR = 6
00205 IWHT_POINT = 8
00206 IWHT_PARAM = 9
00207 IWHT_QUAL = 10
00208