From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.01.org
Subject: [PATCH 3/6] rrm: include actual parent TSF value
Date: Wed, 20 Nov 2019 09:25:56 -0800 [thread overview]
Message-ID: <20191120172559.21029-3-prestwoj@gmail.com> (raw)
In-Reply-To: <20191120172559.21029-1-prestwoj@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
If the scan results included a parent TSF value use it.
---
src/rrm.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/rrm.c b/src/rrm.c
index 73cf01f2..2b0a22fb 100644
--- a/src/rrm.c
+++ b/src/rrm.c
@@ -270,8 +270,13 @@ static size_t build_report_for_bss(struct rrm_beacon_req_info *beacon,
to += 6;
/* Antenna identifier unknown */
*to++ = 0;
- /* Parent TSF - zero */
- memset(to, 0, 4);
+ /*
+ * 802.11 9.4.2.22.7 Beacon report
+ *
+ * "The Parent TSF field contains the lower 4 octets of the measuring
+ * STA’s TSF timer value"
+ */
+ l_put_le32((uint32_t)(bss->parent_tsf & 0xffffffff), to);
to += 4;
/*
--
2.17.1
next prev parent reply other threads:[~2019-11-20 17:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-20 17:25 [PATCH 1/6] monitor: print START_TIME_TSF/BSSID values James Prestwood
2019-11-20 17:25 ` [PATCH 2/6] scan: parse parent TSF value in scan results James Prestwood
2019-11-20 17:25 ` James Prestwood [this message]
2019-11-20 17:25 ` [PATCH 4/6] scan: parse the scan start time James Prestwood
2019-11-20 17:25 ` [PATCH 5/6] rrm: include actual scan start time in report James Prestwood
2019-11-20 17:25 ` [PATCH 6/6] rrm: add packed struct for beacon reports James Prestwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191120172559.21029-3-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox