-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapinfo.h
25 lines (21 loc) · 885 Bytes
/
apinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define NB_PWR 30 /* size of signal power ring buffer */
#define NB_PRB 20 /* size of probed ESSID ring buffer */
#define NB_AP 20 /* size of max ap to send */
struct AP_info
{
// struct AP_info *prev; /* prev. AP in list */
// struct AP_info *next; /* next AP in list */
int channel; /* AP radio channel */
int avg_power; /* averaged signal power */
int power_index; /* index in power ring buf. */
int power_lvl[NB_PWR]; /* signal power ring buffer */
// int preamble; /* 0 = long, 1 = short */
// int ssid_length; /* length of ssid */
unsigned char bssid[6]; /* the access point's MAC */
unsigned char essid[256]; /* ascii network identifier */
};
struct globals
{
int numregs;
struct AP_info ap[NB_AP];
};