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"
20 struct ieee802_11_elems;
27 STATE1 /* not authenticated */,
28 STATE2 /* authenticated */,
29 STATE3 /* associated */
41 int parse_error_reported;
44 struct dl_list sta; /* struct wlantest_sta */
50 struct dl_list bss; /* struct wlantest_bss */
55 unsigned int fcs_error;
58 int read_cap_file(struct wlantest *wt, const char *fname);
59 void wlantest_process(struct wlantest *wt, const u8 *data, size_t len);
60 u32 crc32(const u8 *frame, size_t frame_len);
61 int monitor_init(struct wlantest *wt, const char *ifname);
62 void monitor_deinit(struct wlantest *wt);
64 struct wlantest_bss * bss_get(struct wlantest *wt, const u8 *bssid);
65 void bss_deinit(struct wlantest_bss *bss);
66 void bss_update(struct wlantest_bss *bss, struct ieee802_11_elems *elems);
68 struct wlantest_sta * sta_get(struct wlantest_bss *bss, const u8 *addr);
69 void sta_deinit(struct wlantest_sta *sta);
71 #endif /* WLANTEST_H */