aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-03 17:28:40 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-03 17:28:40 (GMT)
commitfb8f5fc6fd9534721a9ce2ce4af479e585062add (patch)
tree591e59b843caf88231015b7f97b796ac467401e3 /wlantest/wlantest.h
parent1da4da6f76d17399c72ddb295e0d9d298e2f919e (diff)
downloadhostap-fb8f5fc6fd9534721a9ce2ce4af479e585062add.zip
hostap-fb8f5fc6fd9534721a9ce2ce4af479e585062add.tar.gz
hostap-fb8f5fc6fd9534721a9ce2ce4af479e585062add.tar.bz2
wlantest: Count number of STA ACK'ed Deauth/Disassoc frames
Diffstat (limited to 'wlantest/wlantest.h')
-rw-r--r--wlantest/wlantest.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wlantest/wlantest.h b/wlantest/wlantest.h
index 5247909..64e9b6a 100644
--- a/wlantest/wlantest.h
+++ b/wlantest/wlantest.h
@@ -160,6 +160,10 @@ struct wlantest {
void *write_pcap; /* pcap_t* */
void *write_pcap_dumper; /* pcpa_dumper_t */
struct timeval write_pcap_time;
+
+ u8 last_hdr[30];
+ size_t last_len;
+ int last_mgmt_valid;
};
int read_cap_file(struct wlantest *wt, const char *fname);
@@ -178,6 +182,7 @@ int monitor_init(struct wlantest *wt, const char *ifname);
int monitor_init_wired(struct wlantest *wt, const char *ifname);
void monitor_deinit(struct wlantest *wt);
void rx_mgmt(struct wlantest *wt, const u8 *data, size_t len);
+void rx_mgmt_ack(struct wlantest *wt, const struct ieee80211_hdr *hdr);
void rx_data(struct wlantest *wt, const u8 *data, size_t len);
void rx_data_eapol(struct wlantest *wt, const u8 *dst, const u8 *src,
const u8 *data, size_t len, int prot);