aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-12-02 17:50:20 +0100
committerAlexander Couzens <lynxis@fe80.eu>2016-12-02 17:50:20 +0100
commit8491ded354fc033ae3d3c2677951d037c1fa3619 (patch)
treee9b696de13175cdfed5a5674641ee4be3cfba7c4
parent1c939a98d075dceff259eabd5dabb2148ed404ed (diff)
pcu_l1_if: use sizeof intead of hardcoded size value
-rw-r--r--src/pcu_l1_if.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index e068c89e..a72c6b2c 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -169,7 +169,7 @@ void pcu_l1if_tx_agch(bitvec * block, int plen)
/* FIXME: why does OpenBTS has no PLEN and no fill in message? */
bitvec_pack(block, data + 1);
data[0] = (plen << 2) | 0x01;
- pcu_tx_data_req(0, 0, PCU_IF_SAPI_AGCH, 0, 0, 0, data, 23);
+ pcu_tx_data_req(0, 0, PCU_IF_SAPI_AGCH, 0, 0, 0, data, sizeof(data));
}
void pcu_l1if_tx_pch(bitvec * block, int plen, const char *imsi)