aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/sta.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-23 12:27:28 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-23 12:27:28 (GMT)
commita912dd16c546de57f0b7b676abdd6f2bf97be09a (patch)
tree41121090873e892198463ac40e73f90457408f1d /wlantest/sta.c
parent107ad4e3233c44dba57b3de335af7f53c7f56c60 (diff)
downloadhostap-a912dd16c546de57f0b7b676abdd6f2bf97be09a.zip
hostap-a912dd16c546de57f0b7b676abdd6f2bf97be09a.tar.gz
hostap-a912dd16c546de57f0b7b676abdd6f2bf97be09a.tar.bz2
wlantest: Implement IEEE 802.11 duplicate detection
This cleans up debug logs by avoiding incorrect entries on TKIP/CCMP replays and some state changes.
Diffstat (limited to 'wlantest/sta.c')
-rw-r--r--wlantest/sta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wlantest/sta.c b/wlantest/sta.c
index bec494d..bfa6ee0 100644
--- a/wlantest/sta.c
+++ b/wlantest/sta.c
@@ -47,6 +47,8 @@ struct wlantest_sta * sta_get(struct wlantest_bss *bss, const u8 *addr)
sta = os_zalloc(sizeof(*sta));
if (sta == NULL)
return NULL;
+ os_memset(sta->seq_ctrl_to_sta, 0xff, sizeof(sta->seq_ctrl_to_sta));
+ os_memset(sta->seq_ctrl_to_ap, 0xff, sizeof(sta->seq_ctrl_to_ap));
sta->bss = bss;
os_memcpy(sta->addr, addr, ETH_ALEN);
dl_list_add(&bss->sta, &sta->list);