Skip to content

Commit

Permalink
exp rssi
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 8, 2023
1 parent 2b82344 commit b9ed528
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WBTxRx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ void WBTxRx::on_new_packet(const uint8_t wlan_idx, const pcap_pkthdr &hdr,
m_console->debug("{}",all_rssi_to_string(parsedPacket->allAntennaValues));
}
// assumes driver gives 1st and 2nd antenna as 2nd and 3rd value
// 1st value is ignored
if(parsedPacket->allAntennaValues.size()>=2){
const auto rssi=parsedPacket->allAntennaValues[1].rssi;
auto opt_minmaxavg=this_wifi_card_stats.rssi_for_wifi_card.m_rssi_antenna1.add_and_recalculate_if_needed(rssi);
Expand Down

0 comments on commit b9ed528

Please sign in to comment.