cosmetic prep: hodec2: move is_upgrade_to_tchf() further up

Preparation for Id40d1cf8b58410c7d4eb87407fe8b8106e352438

Related: SYS#5198 SYS#5365
Change-Id: I3fd0e257e033c573017ce62e3efc19b094acf73c
This commit is contained in:
Neels Hofmeyr 2021-06-08 00:50:52 +02:00
parent d4dbf235ed
commit 9f913bec2c
1 changed files with 7 additions and 7 deletions

View File

@ -167,6 +167,13 @@ static enum ho_reason global_ho_reason;
static void congestion_check_cb(void *arg);
static bool is_upgrade_to_tchf(const struct ho_candidate *c, uint8_t for_requirement)
{
return c->current.lchan
&& (c->current.lchan->type == GSM_LCHAN_TCH_H)
&& ((c->requirements & for_requirement) & (REQUIREMENT_B_TCHF | REQUIREMENT_C_TCHF));
}
static unsigned int ts_usage_count(struct gsm_bts_trx_ts *ts)
{
struct gsm_lchan *lchan;
@ -1535,13 +1542,6 @@ static bool lchan_is_on_dynamic_ts(struct gsm_lchan *lchan)
|| lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH;
}
static bool is_upgrade_to_tchf(const struct ho_candidate *c, uint8_t for_requirement)
{
return c->current.lchan
&& (c->current.lchan->type == GSM_LCHAN_TCH_H)
&& ((c->requirements & for_requirement) & (REQUIREMENT_B_TCHF | REQUIREMENT_C_TCHF));
}
/* Given two candidates, pick the one that should rather be moved during handover.
* Return the better candidate in out-parameters best_cand and best_avg_db.
*/