From f0079a8fed8d425c5ac3684ef30d42b80710cc67 Mon Sep 17 00:00:00 2001 From: consti10 Date: Tue, 8 Aug 2023 00:28:49 +0200 Subject: [PATCH] reset per card stats --- src/WBTxRx.cpp | 7 +++++++ src/WBTxRx.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/WBTxRx.cpp b/src/WBTxRx.cpp index b955e5b4..2769fe97 100644 --- a/src/WBTxRx.cpp +++ b/src/WBTxRx.cpp @@ -605,6 +605,13 @@ void WBTxRx::rx_reset_stats() { m_rx_stats=RxStats{}; m_rx_bitrate_calculator.reset(); m_rx_packets_per_second_calculator.reset(); + m_seq_nr_helper.reset(); + for(int i=0;ireset(); + } } int WBTxRx::get_curr_active_tx_card_idx() { diff --git a/src/WBTxRx.h b/src/WBTxRx.h index 86e4162a..8066ee72 100644 --- a/src/WBTxRx.h +++ b/src/WBTxRx.h @@ -171,9 +171,9 @@ class WBTxRx { int32_t curr_bits_per_second=-1; // n received valid session key packets int n_received_valid_session_key_packets=0; - // mcs index on the most recent okay data packet, if the card supports reporting it + // mcs index on the most recent valid data packet, if the card supports reporting it int last_received_packet_mcs_index=-1; - // channel width (20Mhz or 40Mhz) on the most recent received okay data packet, if the card supports reporting it + // channel width (20Mhz or 40Mhz) on the most recent received valid data packet, if the card supports reporting it int last_received_packet_channel_width=-1; // complicated but important metric in our case - how many "big gaps" we had in the last 1 second int16_t curr_big_gaps_counter=-1;