aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-04-09 09:50:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-13 20:49:59 (GMT)
commitbacb984b2d10c0dccb3b05b7779d5d4c5662e8b2 (patch)
tree1ed64c52b1473c17d63940976184e00eee998bf8 /wlantest
parente9b32dae1a61a112ec0d84b74d4aa5cac514755f (diff)
downloadhostap-bacb984b2d10c0dccb3b05b7779d5d4c5662e8b2.zip
hostap-bacb984b2d10c0dccb3b05b7779d5d4c5662e8b2.tar.gz
hostap-bacb984b2d10c0dccb3b05b7779d5d4c5662e8b2.tar.bz2
radiotap: Update radiotap parser to library version
Update the radiotap parser to the latest version of the http://git.sipsolutions.net/radiotap.git/ library to get parsing for vendor namespaces. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wlantest/process.c b/wlantest/process.c
index 5e75445..c2279ad 100644
--- a/wlantest/process.c
+++ b/wlantest/process.c
@@ -276,7 +276,7 @@ void wlantest_process(struct wlantest *wt, const u8 *data, size_t len)
wpa_hexdump(MSG_EXCESSIVE, "Process data", data, len);
- if (ieee80211_radiotap_iterator_init(&iter, (void *) data, len)) {
+ if (ieee80211_radiotap_iterator_init(&iter, (void *) data, len, NULL)) {
add_note(wt, MSG_INFO, "Invalid radiotap frame");
return;
}
@@ -309,12 +309,12 @@ void wlantest_process(struct wlantest *wt, const u8 *data, size_t len)
}
}
- if (iter.max_length == 8) {
+ if (iter._max_length == 8) {
add_note(wt, MSG_DEBUG, "Skip frame inserted by wlantest");
return;
}
- frame = data + iter.max_length;
- frame_len = len - iter.max_length;
+ frame = data + iter._max_length;
+ frame_len = len - iter._max_length;
if (fcs && frame_len >= 4) {
frame_len -= 4;