Content-Type: multipart/mixed; boundary="===============1844988364399071378==" MIME-Version: 1.0 From: James Prestwood Subject: [PATCH v2 7/7] rrm: include actual parent TSF value Date: Fri, 15 Nov 2019 10:39:26 -0800 Message-ID: <20191115183926.1887-7-prestwoj@gmail.com> In-Reply-To: <20191115183926.1887-1-prestwoj@gmail.com> List-Id: To: iwd@lists.01.org --===============1844988364399071378== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 f96fe279..4c736910 100644 --- a/src/rrm.c +++ b/src/rrm.c @@ -272,8 +272,13 @@ static size_t build_report_for_bss(struct rrm_beacon_r= eq_info *beacon, to +=3D 6; /* Antenna identifier unknown */ *to++ =3D 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=E2=80=99s TSF timer value" + */ + l_put_le32((uint32_t)(bss->parent_tsf & 0xffffffff), to); to +=3D 4; = /* -- = 2.17.1 --===============1844988364399071378==--