encoding: Use gsm48_ta_is_valid() API

Change-Id: Ieaa4c2f926611576e22eaac8a7ac595135809e2c
changes/02/24202/1
Pau Espin 2 years ago
parent eb13c79cc0
commit 6bab522e90
  1. 2
      src/encoding.cpp

@ -661,7 +661,7 @@ void Encoding::write_packet_uplink_assignment(
}
/* Packet Timing Advance (if known) */
if (tbf->ta() <= 63) { /* { 0 | 1 < TIMING_ADVANCE_VALUE : bit (6) > } */
if (gsm48_ta_is_valid(tbf->ta())) { /* { 0 | 1 < TIMING_ADVANCE_VALUE : bit (6) > } */
pta->Exist_TIMING_ADVANCE_VALUE = 0x01; // Present
pta->TIMING_ADVANCE_VALUE = tbf->ta();
}

Loading…
Cancel
Save