diff options
author | Clément Viel <clement.viel@qorvo.com> | 2023-05-17 19:00:37 +0200 |
---|---|---|
committer | Victor Liu <victorliu@google.com> | 2023-05-24 17:08:49 +0000 |
commit | 2ef5d102433c4776aaa0e23c14d7aee00a6beadd (patch) | |
tree | 4258d54df3e9895d565938693c97d807e53494ca | |
parent | 52645059af815930913e79c4faa490d97e742003 (diff) | |
download | uwb-android-gs-felix-5.10-u-beta4.tar.gz |
mac: read negative tof after aoa_fomandroid-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_r0.1android-gs-tangorpro-5.10-u-beta4android-gs-raviole-5.10-u-beta4android-gs-pantah-5.10-u-beta4android-gs-lynx-5.10-u-beta4android-gs-felix-5.10-u-beta4android-gs-bluejay-5.10-u-beta4
Bug: 282202178
Change-Id: Ica945b3e774a6e22c179072c770218d2540cb30e
Signed-off-by: Clément Viel <clement.viel@qorvo.com>
-rw-r--r-- | mac/fira_frame.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mac/fira_frame.c b/mac/fira_frame.c index ca44ba2..7bbf9d0 100644 --- a/mac/fira_frame.c +++ b/mac/fira_frame.c @@ -766,13 +766,6 @@ fira_frame_result_report_fill_ranging_info(struct fira_local *local, ranging_info->remote_aoa_elevation_pi = get_unaligned_le16(p); p += sizeof(s16); } - if (neg_tof_present) { - /* When negative ToF is present at end of frame, - * ToF read ahead MUST be 0, so, is safe to overwrite */ - ranging_info->tof_rctu = -get_unaligned_le32(p); - p += sizeof(u32); - } - if (aoa_fom_present) { ranging_info->remote_aoa_fom_present = true; if (aoa_azimuth_present) @@ -780,6 +773,13 @@ fira_frame_result_report_fill_ranging_info(struct fira_local *local, if (aoa_elevation_present) ranging_info->remote_aoa_elevation_fom = *p++; } + if (neg_tof_present) { + /* When negative ToF is present at end of frame, + * ToF read ahead MUST be 0, so, is safe to overwrite */ + ranging_info->tof_rctu = -get_unaligned_le32(p); + p += sizeof(u32); + } + return true; } |