From 3ea5e31937d8a96ed73c35ce46c40f295ee66643 Mon Sep 17 00:00:00 2001 From: HongNguyen635 Date: Mon, 4 May 2026 23:50:10 +0000 Subject: [PATCH] packets: add auth tag and phy ver to packet data add auth tag and phy ver to packet data so we can use this info for decrypting packets. Signed-off-by: Hong Nguyen --- src/stream_web/app.py | 3 +++ src/stream_web/processor.py | 1 + 2 files changed, 4 insertions(+) diff --git a/src/stream_web/app.py b/src/stream_web/app.py index 6123347..136bd99 100644 --- a/src/stream_web/app.py +++ b/src/stream_web/app.py @@ -422,6 +422,8 @@ def api_packets(): lines.append(json.dumps({ "device_id": e["ntw_id_hex"], "seq_num": e["seq_num"], + "auth_tag": e.get("auth_tag"), + "phy_ver": e.get("phy_ver"), "device_type": e.get("chipset", ""), "timestamp": e.get("unix_ts", 0), "rssi_dB": e.get("energy_dB"), @@ -644,6 +646,7 @@ def _mock_injector(state, interval_s: float = 2.0): "ntw_id": ntw_id, "ntw_id_hex": f"0x{ntw_id:08X}", "seq_num": seq, + "auth_tag": 0, "energy_dB": -60.0, "chipset": chipset, "channel_num": 0, diff --git a/src/stream_web/processor.py b/src/stream_web/processor.py index ae0aef5..5131abd 100644 --- a/src/stream_web/processor.py +++ b/src/stream_web/processor.py @@ -156,6 +156,7 @@ def _extract_last(n): "ntw_id": pkt["ntw_id"], "ntw_id_hex": ntw_hex, "seq_num": pkt["seq_num"], + "auth_tag": pkt["auth_tag"], "energy_dB": round(pkt["total_energy_dB"], 1), "chipset": pkt.get("chipset", ""), "channel_num": pkt.get("channel_num"),