mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 05:05:38 -05:00
P25 -- TG Hold Support; #132
This commit is contained in:
@@ -115,6 +115,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on MFID90 GRG -- block non-matching super group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != sgroup) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == sgroup)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//Skip tuning group calls if group calls are disabled
|
||||
if (opts->trunk_tune_group_calls == 0) goto SKIPCALL;
|
||||
|
||||
@@ -193,6 +201,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on MFID90 GRG -- block non-matching super group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != sgroup) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == sgroup)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//Skip tuning group calls if group calls are disabled
|
||||
if (opts->trunk_tune_group_calls == 0) goto SKIPCALL;
|
||||
|
||||
@@ -305,6 +321,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on MFID90 GRG -- block non-matching super group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != tunable_group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == tunable_group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//check to see if the group candidate is blocked first
|
||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0)) //DE is digital encrypted, B is block
|
||||
{
|
||||
@@ -402,6 +426,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on GRP_V -- block non-matching group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//Skip tuning group calls if group calls are disabled
|
||||
if (opts->trunk_tune_group_calls == 0) goto SKIPCALL;
|
||||
|
||||
@@ -493,6 +525,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on UU_V -- may not want to allow these in case of TG and RID both are same
|
||||
// if (state->tg_hold != 0 && state->tg_hold != target) sprintf (mode, "%s", "B");
|
||||
// if (state->tg_hold != 0 && state->tg_hold == target)
|
||||
// {
|
||||
// sprintf (mode, "%s", "A");
|
||||
// opts->p25_is_tuned = 0; //unlock tuner
|
||||
// }
|
||||
|
||||
//tune if tuning available
|
||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0))
|
||||
{
|
||||
@@ -641,6 +681,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on GRP_V Multi -- block non-matching group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != tunable_group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == tunable_group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//tune if tuning available
|
||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0))
|
||||
{
|
||||
@@ -810,6 +858,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on GRP_V Multi -- block non-matching group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != tunable_group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == tunable_group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//check to see if the group candidate is blocked first
|
||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0)) //DE is digital encrypted, B is block
|
||||
{
|
||||
@@ -924,6 +980,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on GRP_V Multi -- block non-matching group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != tunable_group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == tunable_group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//check to see if the group candidate is blocked first
|
||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0)) //DE is digital encrypted, B is block
|
||||
{
|
||||
@@ -1024,6 +1088,14 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
||||
}
|
||||
}
|
||||
|
||||
//TG hold on GRP_V Exp -- block non-matching group, allow matching group
|
||||
if (state->tg_hold != 0 && state->tg_hold != group) sprintf (mode, "%s", "B");
|
||||
if (state->tg_hold != 0 && state->tg_hold == group)
|
||||
{
|
||||
sprintf (mode, "%s", "A");
|
||||
opts->p25_is_tuned = 0; //unlock tuner
|
||||
}
|
||||
|
||||
//Skip tuning group calls if group calls are disabled
|
||||
if (opts->trunk_tune_group_calls == 0) goto SKIPCALL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user