2 * wlantest - IEEE 802.11 protocol monitoring and testing tool
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
18 #include "utils/list.h"
25 STATE1 /* not authenticated */,
26 STATE2 /* authenticated */,
27 STATE3 /* associated */
39 int parse_error_reported;
42 struct dl_list sta; /* struct wlantest_sta */
48 struct dl_list bss; /* struct wlantest_bss */
53 unsigned int fcs_error;
56 int read_cap_file(struct wlantest *wt, const char *fname);
57 void wlantest_process(struct wlantest *wt, const u8 *data, size_t len);
58 u32 crc32(const u8 *frame, size_t frame_len);
59 int monitor_init(struct wlantest *wt, const char *ifname);
60 void monitor_deinit(struct wlantest *wt);
62 struct wlantest_bss * bss_get(struct wlantest *wt, const u8 *bssid);
63 void bss_deinit(struct wlantest_bss *bss);
65 struct wlantest_sta * sta_get(struct wlantest_bss *bss, const u8 *addr);
66 void sta_deinit(struct wlantest_sta *sta);
68 #endif /* WLANTEST_H */