Skip to content

devicetracker: don't set peak location from packets without a GPS fix - #622

Merged
kismetwireless merged 1 commit into
kismetwireless:masterfrom
weebl2000:fix/gps-peak-loc-regression
Aug 3, 2026
Merged

devicetracker: don't set peak location from packets without a GPS fix#622
kismetwireless merged 1 commit into
kismetwireless:masterfrom
weebl2000:fix/gps-peak-loc-regression

Conversation

@weebl2000

Copy link
Copy Markdown
Contributor

The refactor making gps a permanent packet component (38186dc) left kis_tracked_signal_data::append_signal guarding the peak location update with only a null check on the gps pointer. Since devicetracker now passes &in_pack->gps_info unconditionally (update_common_device and inc_seenby_count), the pointer is never null and any packet that set a new max signal without a GPS fix overwrote peak_loc with a zeroed location at 0,0.

Require gps_info_ok in both the dbm and rssi branches, matching the gps_info_ok checks the refactor added elsewhere in devicetracker.

The refactor making gps a permanent packet component (38186dc) left
kis_tracked_signal_data::append_signal guarding the peak location update
with only a null check on the gps pointer.  Since devicetracker now
passes &in_pack->gps_info unconditionally (update_common_device and
inc_seenby_count), the pointer is never null and any packet that set a
new max signal without a GPS fix overwrote peak_loc with a zeroed
location at 0,0.

Require gps_info_ok in both the dbm and rssi branches, matching the
gps_info_ok checks the refactor added elsewhere in devicetracker.
@kismetwireless
kismetwireless merged commit 00418d5 into kismetwireless:master Aug 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants