aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/gsm0503_coding.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-09 18:48:01 +0100
committerHarald Welte <laforge@gnumonks.org>2016-01-16 17:49:08 +0100
commit97cb71971a345c7e96502d4000afc468bc3dd3b8 (patch)
tree268dd65bc7551343fa02502eebcd6b1dd6e089b5 /src/osmo-bts-trx/gsm0503_coding.c
parentdd562d84bab5974f7b3505500bc9eced52252904 (diff)
TRX: Don't hard-code 23 bytes, use GSM_MACBLOCK_LEN
Diffstat (limited to 'src/osmo-bts-trx/gsm0503_coding.c')
-rw-r--r--src/osmo-bts-trx/gsm0503_coding.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osmo-bts-trx/gsm0503_coding.c b/src/osmo-bts-trx/gsm0503_coding.c
index c56be5a2..fde020e1 100644
--- a/src/osmo-bts-trx/gsm0503_coding.c
+++ b/src/osmo-bts-trx/gsm0503_coding.c
@@ -772,7 +772,7 @@ coding_efr_fr:
h = 0;
break;
- case 23: /* FACCH */
+ case GSM_MACBLOCK_LEN: /* FACCH */
_xcch_encode_cB(cB, tch_data);
h = 1;
@@ -826,7 +826,7 @@ int tch_hr_decode(uint8_t *tch_data, sbit_t *bursts, int odd,
return -1;
}
- return 23;
+ return GSM_MACBLOCK_LEN;
}
for (i=0; i<4; i++)
@@ -884,7 +884,7 @@ int tch_hr_encode(ubit_t *bursts, uint8_t *tch_data, int len)
&h, i>>1);
break;
- case 23: /* FACCH */
+ case GSM_MACBLOCK_LEN: /* FACCH */
_xcch_encode_cB(cB, tch_data);
h = 1;
@@ -930,7 +930,7 @@ int tch_afs_decode(uint8_t *tch_data, sbit_t *bursts, int codec_mode_req,
return -1;
}
- return 23;
+ return GSM_MACBLOCK_LEN;
}
for (i=0; i<4; i++) {
@@ -1104,7 +1104,7 @@ int tch_afs_encode(ubit_t *bursts, uint8_t *tch_data, int len,
int i;
uint8_t id;
- if (len == 23) { /* FACCH */
+ if (len == GSM_MACBLOCK_LEN) { /* FACCH */
_xcch_encode_cB(cB, tch_data);
h = 1;
@@ -1293,7 +1293,7 @@ int tch_ahs_decode(uint8_t *tch_data, sbit_t *bursts, int odd,
return -1;
}
- return 23;
+ return GSM_MACBLOCK_LEN;
}
for (i=0; i<4; i++)
@@ -1459,7 +1459,7 @@ int tch_ahs_encode(ubit_t *bursts, uint8_t *tch_data, int len,
int i;
uint8_t id;
- if (len == 23) { /* FACCH */
+ if (len == GSM_MACBLOCK_LEN) { /* FACCH */
_xcch_encode_cB(cB, tch_data);
h = 1;