GPS information included in PCAP files as comment and with Kismet proposed standard

This commit is contained in:
Carlos Guerra
2026-03-28 22:29:41 +01:00
committed by Will Greenberg
parent c107314194
commit adb316e2d7
7 changed files with 291 additions and 18 deletions
+3 -2
View File
@@ -27,7 +27,7 @@ use crate::diag::DiagDeviceCtrlMessage;
use crate::display::DisplayState;
use crate::notifications::DEFAULT_NOTIFICATION_TIMEOUT;
use crate::gps::GpsData;
use crate::pcap::generate_pcap_data;
use crate::pcap::{generate_pcap_data, load_gps_records_for_entry};
use crate::qmdl_store::RecordingStore;
pub struct ServerState {
@@ -345,6 +345,7 @@ pub async fn get_zip(
};
let qmdl_store_lock = state.qmdl_store_lock.clone();
let gps_records = load_gps_records_for_entry(&state, entry_index).await;
let (reader, writer) = duplex(8192);
@@ -388,7 +389,7 @@ pub async fn get_zip(
};
if let Err(e) =
generate_pcap_data(&mut entry_writer, qmdl_file_for_pcap, qmdl_size_bytes).await
generate_pcap_data(&mut entry_writer, qmdl_file_for_pcap, qmdl_size_bytes, gps_records).await
{
// if we fail to generate the PCAP file, we should still continue and give the
// user the QMDL.