From af9111355cacdfbf207928723190dc201bfbfa38 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 15 Sep 2022 14:18:52 -0700 Subject: [PATCH] mpdu: fix timestamp size in mpdu frames Beacons, probe responses and timing advertisements were only using 1 byte for the timestamps which should be 8 bytes. --- src/mpdu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mpdu.h b/src/mpdu.h index 36fe2470..9a825f2a 100644 --- a/src/mpdu.h +++ b/src/mpdu.h @@ -374,7 +374,7 @@ struct mmpdu_probe_request { /* 802.11, Section 8.3.3.10 */ struct mmpdu_probe_response { - uint8_t timestamp; + __le64 timestamp; __le16 beacon_interval; struct mmpdu_field_capability capability; uint8_t ies[0]; @@ -382,14 +382,14 @@ struct mmpdu_probe_response { /* 802.11, Section 8.3.3.15 */ struct mmpdu_timing_advertisement { - uint8_t timestamp; + __le64 timestamp; struct mmpdu_field_capability capability; uint8_t ies[0]; } __attribute__ ((packed)); /* 802.11, Section 8.3.3.2 */ struct mmpdu_beacon { - uint8_t timestamp; + __le64 timestamp; __le16 beacon_interval; struct mmpdu_field_capability capability; uint8_t ies[0];