fix measurement report parsing of MEAS VALID logic

As Dieter points out, the logic level is inverted. 0 means valid.
This commit is contained in:
Harald Welte 2009-07-05 04:05:44 +02:00
parent 87f5d637c5
commit 5a691b5290
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ static void parse_meas_rep(struct gsm_meas_rep *rep, const u_int8_t *data,
rep->flags |= MEAS_REP_F_BA1;
if (data[0] & 0x40)
rep->flags |= MEAS_REP_F_DTX;
if (data[1] & 0x40)
if ((data[1] & 0x40) == 0x00)
rep->flags |= MEAS_REP_F_VALID;
rep->rxlev_full = data[0] & 0x3f;