aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy/l1_if.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-16 13:11:35 +0100
committerHarald Welte <laforge@gnumonks.org>2016-01-16 17:26:26 +0100
commit866f9b979d0c8a36e76db8272693d59bfba9c0f5 (patch)
treeca11767eb127dae793d3d2a19ecbc270426cacea /src/osmo-bts-octphy/l1_if.c
parent3e98f942e51ca5f39a09adcb3d0d68d93b1588b0 (diff)
OCTPHY: Obtain information from PHY and expose it in VTY
This adds 'show trx 0 system-information' command to the VTY indicating various version information obtained from the DSP/PHY.
Diffstat (limited to 'src/osmo-bts-octphy/l1_if.c')
-rw-r--r--src/osmo-bts-octphy/l1_if.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c
index 2c029177..6d8932e4 100644
--- a/src/osmo-bts-octphy/l1_if.c
+++ b/src/osmo-bts-octphy/l1_if.c
@@ -1357,8 +1357,9 @@ static int rx_octvc1_ctrl_msg(struct msgb *msg)
/* DO NOT YET SWAP HEADER HERE, as downstream functions want to
* swap it */
- /* OCTSDKAN5001 Chapter 3.1 */
- if (length < 24 || length > 1024) {
+ /* FIXME: OCTSDKAN5001 Chapter 3.1 states max size is 1024, but we see
+ * larger messages in practise */
+ if (length < 24 || length > 2048) {
LOGP(DL1C, LOGL_ERROR, "Rx CTRL length %u invalid\n", length);
msgb_free(msg);
return -1;