3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

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.
This commit is contained in:
James Prestwood 2022-09-15 14:18:52 -07:00 committed by Denis Kenzior
parent 945fbd5b91
commit af9111355c

View File

@ -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];