Skip to content

Commit

Permalink
reasonably this message shouldn't even appear if we don't have the ch…
Browse files Browse the repository at this point in the history
…annel granted;
  • Loading branch information
gatekeep committed Jan 25, 2025
1 parent 32c49b9 commit cb309fd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/host/p25/packet/ControlSignaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,15 +787,15 @@ bool ControlSignaling::processNetwork(uint8_t* data, uint32_t len, lc::LC& contr
case LCO::CALL_TERM:
{
if (m_p25->m_dedicatedControl) {
uint32_t chNo = tsbk->getGrpVchNo();

if (m_verbose) {
LogMessage(LOG_NET, P25_TSDU_STR ", %s, chNo = %u, srcId = %u, dstId = %u",
tsbk->toString().c_str(), chNo, srcId, dstId);
}

// is the specified channel granted?
if (/*m_p25->m_affiliations.isChBusy(chNo) &&*/ m_p25->m_affiliations.isGranted(dstId)) {
uint32_t chNo = tsbk->getGrpVchNo();

if (m_verbose) {
LogMessage(LOG_NET, P25_TSDU_STR ", %s, chNo = %u, srcId = %u, dstId = %u",
tsbk->toString().c_str(), chNo, srcId, dstId);
}

m_p25->m_affiliations.releaseGrant(dstId, false);
}
}
Expand Down

0 comments on commit cb309fd

Please sign in to comment.