wpa_supplicant / hostapd
2.5
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
drivers
android_drv.h
Go to the documentation of this file.
1
5
#ifndef ANDROID_DRV_H
6
#define ANDROID_DRV_H
7
8
#define WPA_EVENT_DRIVER_STATE "CTRL-EVENT-DRIVER-STATE "
9
10
#define MAX_SSID_LEN 32
11
12
#define MAX_DRV_CMD_SIZE 248
13
#define DRV_NUMBER_SEQUENTIAL_ERRORS 4
14
15
#define WEXT_PNOSETUP_HEADER "PNOSETUP "
16
#define WEXT_PNOSETUP_HEADER_SIZE 9
17
#define WEXT_PNO_TLV_PREFIX 'S'
18
#define WEXT_PNO_TLV_VERSION '1'
19
#define WEXT_PNO_TLV_SUBVERSION '2'
20
#define WEXT_PNO_TLV_RESERVED '0'
21
#define WEXT_PNO_VERSION_SIZE 4
22
#define WEXT_PNO_AMOUNT 16
23
#define WEXT_PNO_SSID_SECTION 'S'
24
/* SSID header size is SSID section type above + SSID length */
25
#define WEXT_PNO_SSID_HEADER_SIZE 2
26
#define WEXT_PNO_SCAN_INTERVAL_SECTION 'T'
27
#define WEXT_PNO_SCAN_INTERVAL_LENGTH 2
28
#define WEXT_PNO_SCAN_INTERVAL 30
29
/* Scan interval size is scan interval section type + scan interval length
30
* above */
31
#define WEXT_PNO_SCAN_INTERVAL_SIZE (1 + WEXT_PNO_SCAN_INTERVAL_LENGTH)
32
#define WEXT_PNO_REPEAT_SECTION 'R'
33
#define WEXT_PNO_REPEAT_LENGTH 1
34
#define WEXT_PNO_REPEAT 4
35
/* Repeat section size is Repeat section type + Repeat value length above */
36
#define WEXT_PNO_REPEAT_SIZE (1 + WEXT_PNO_REPEAT_LENGTH)
37
#define WEXT_PNO_MAX_REPEAT_SECTION 'M'
38
#define WEXT_PNO_MAX_REPEAT_LENGTH 1
39
#define WEXT_PNO_MAX_REPEAT 3
40
/* Max Repeat section size is Max Repeat section type + Max Repeat value length
41
* above */
42
#define WEXT_PNO_MAX_REPEAT_SIZE (1 + WEXT_PNO_MAX_REPEAT_LENGTH)
43
/* This corresponds to the size of all sections expect SSIDs */
44
#define WEXT_PNO_NONSSID_SECTIONS_SIZE \
45
(WEXT_PNO_SCAN_INTERVAL_SIZE + WEXT_PNO_REPEAT_SIZE + WEXT_PNO_MAX_REPEAT_SIZE)
46
/* PNO Max command size is total of header, version, ssid and other sections +
47
* Null termination */
48
#define WEXT_PNO_MAX_COMMAND_SIZE \
49
(WEXT_PNOSETUP_HEADER_SIZE + WEXT_PNO_VERSION_SIZE \
50
+ WEXT_PNO_AMOUNT * (WEXT_PNO_SSID_HEADER_SIZE + MAX_SSID_LEN) \
51
+ WEXT_PNO_NONSSID_SECTIONS_SIZE + 1)
52
53
#endif
/* ANDROID_DRV_H */
Generated on Sun Sep 27 2015 22:08:07 for wpa_supplicant / hostapd by
1.8.6