Skip to content

Commit

Permalink
make LC_CALL_TERM use dstId;
Browse files Browse the repository at this point in the history
  • Loading branch information
gatekeep committed Jul 7, 2024
1 parent d467405 commit c9e7dcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/p25/lc/tdulc/LC_CALL_TERM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void LC_CALL_TERM::encode(uint8_t* data)
m_implicit = true;

rsValue = 0U;
rsValue = (rsValue << 24) + WUID_FNE; // System Radio Address
rsValue = (rsValue << 24) + m_dstId; // Target Address

std::unique_ptr<uint8_t[]> rs = TDULC::fromValue(rsValue);
TDULC::encode(data, rs.get());
Expand Down
1 change: 1 addition & 0 deletions src/host/p25/packet/ControlSignaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,7 @@ void ControlSignaling::writeRF_TDULC_ChanRelease(bool grp, uint32_t srcId, uint3
}

lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(dstId);
writeRF_TDULC(lc.get(), true);

if (m_p25->m_enableControl) {
Expand Down
2 changes: 2 additions & 0 deletions src/host/p25/packet/Data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ void Data::clock(uint32_t ms)
}

std::unique_ptr<lc::TDULC> lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(llId);
m_p25->m_control->writeRF_TDULC(lc.get(), true);
for (uint8_t i = 0U; i < 8U; i++) {
m_p25->writeRF_TDU(true);
Expand Down Expand Up @@ -1053,6 +1054,7 @@ void Data::sndcpReset(uint32_t llId, bool callTerm)
}

std::unique_ptr<lc::TDULC> lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(llId);
m_p25->m_control->writeRF_TDULC(lc.get(), true);
m_p25->writeRF_Preamble();

Expand Down

0 comments on commit c9e7dcc

Please sign in to comment.