Skip to content

Commit

Permalink
Clear crypto parameters on MAC_END_PTT
Browse files Browse the repository at this point in the history
  • Loading branch information
roysjosh committed May 5, 2023
1 parent 0d02f0b commit ce40d8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions op25/gr-op25_repeater/lib/p25p2_tdma.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ void p25p2_tdma::handle_mac_end_ptt(const uint8_t byte_buf[], const unsigned int
fprintf(stderr, "%s MAC_END_PTT: colorcd=0x%03x, srcaddr=%u, grpaddr=%u, rs_errs=%d\n", logts.get(d_msgq_id), colorcd, srcaddr, grpaddr, rs_errs);

op25audio.send_audio_flag(op25_audio::DRAIN);

// reset crypto parameters
ess_algid = 0x80;
memset(ess_mi, 0, sizeof(ess_mi));
}

void p25p2_tdma::handle_mac_idle(const uint8_t byte_buf[], const unsigned int len, const int rs_errs)
Expand Down

0 comments on commit ce40d8f

Please sign in to comment.