commit aa754cbb4aacedd88f732d9dbdba97dc3fd8aa66 parent e92424611a34cb8582c9cafddcb7ac5984c742e7 Author: Denis Kenzior <denkenz@gmail.com> Date: Wed, 20 Nov 2019 20:05:47 -0600 rrm: include actual parent TSF value If the scan results included a parent TSF value use it. Diffstat:
| M | src/rrm.c | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git 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; /*