use cnlink state in cnpool decisions

Change-Id: I28490a4a27bcda8fd689db8b8652e451103e3a9d
This commit is contained in:
Neels Hofmeyr 2023-05-17 02:13:24 +02:00
parent e14d3bd6fe
commit 5aeacc4500
1 changed files with 2 additions and 1 deletions

View File

@ -656,7 +656,8 @@ static bool is_cnlink_usable(struct hnbgw_cnlink *cnlink, bool is_emerg)
return false;
if (!cnlink->hnbgw_sccp_user || !cnlink->hnbgw_sccp_user->sccp_user)
return false;
// TODO indicator whether the CN link is actually active, akin to bssmap_reset_is_conn_ready()
if (!cnlink_is_conn_ready(cnlink))
return false;
return true;
}