mirror of https://gerrit.osmocom.org/libosmocore
LAPD: use bool for T200 reset flags
Related: OS#4074 Change-Id: I2d1a3dd7938b079a3525c84647f82b7bc6cdfdd6
This commit is contained in:
parent
c569526379
commit
a947ee6d9d
|
@ -742,7 +742,8 @@ static void lapd_acknowledge(struct lapd_msg_ctx *lctx)
|
|||
{
|
||||
struct lapd_datalink *dl = lctx->dl;
|
||||
uint8_t nr = lctx->n_recv;
|
||||
int s = 0, rej = 0, t200_reset = 0;
|
||||
int s = 0, rej = 0;
|
||||
bool t200_reset = false;
|
||||
int i, h;
|
||||
|
||||
/* supervisory frame ? */
|
||||
|
@ -768,7 +769,7 @@ static void lapd_acknowledge(struct lapd_msg_ctx *lctx)
|
|||
* receipt of a valid I frame with N(R) higher than V(A),
|
||||
* or an REJ with an N(R) equal to V(A). */
|
||||
if ((!rej && nr != dl->v_ack) || (rej && nr == dl->v_ack)) {
|
||||
t200_reset = 1;
|
||||
t200_reset = bool;
|
||||
lapd_stop_t200(dl);
|
||||
/* 5.5.3.1 Note 1 + 2 imply timer recovery cond. */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue