pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/32589 )


Change subject: layer23: modem: grr: Log ignored CCCH ImmAss
......................................................................

layer23: modem: grr: Log ignored CCCH ImmAss

There seems to be some bug when using virtphy where sometimes the
received T2 and/or T3 in the ImmASs is not matching what we sent.
This helps in showing the problem and not failing silently.

Change-Id: Iaecd2616733d84f35a825916fe888142800b426b
---
M src/host/layer23/src/modem/grr.c
1 file changed, 30 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/89/32589/1

diff --git a/src/host/layer23/src/modem/grr.c b/src/host/layer23/src/modem/grr.c
index b6abae5..04a8b2a 100644
--- a/src/host/layer23/src/modem/grr.c
+++ b/src/host/layer23/src/modem/grr.c
@@ -238,13 +238,27 @@
        struct osmo_gprs_rlcmac_prim *rlcmac_prim;

        /* Discard CS channel assignment */
-       if ((ia->page_mode >> 4) == 0)
+       if ((ia->page_mode >> 4) == 0) {
+               LOGP(DRR, LOGL_INFO,
+                    "%s(): Discard CS channel assignment\n",
+                    __func__);
                return 0;
+       }

-       if (rr->state != GSM48_RR_ST_CONN_PEND)
+       if (rr->state != GSM48_RR_ST_CONN_PEND) {
+               LOGP(DRR, LOGL_INFO,
+                    "%s(): rr_state != GSM48_RR_ST_CONN_PEND\n",
+                    __func__);
                return 0;
-       if (!grr_match_req_ref(ms, &ia->req_ref))
+       }
+       if (!grr_match_req_ref(ms, &ia->req_ref)) {
+               LOGP(DRR, LOGL_INFO,
+                    "%s(): no req_ref match (RA=0x%02x, T1=%u, T3=%u, 
T2=%u)\n", __func__,
+                            ia->req_ref.ra, ia->req_ref.t1,
+                            ia->req_ref.t3_high << 3 | ia->req_ref.t3_low,
+                            ia->req_ref.t2);
                return 0;
+       }

        if (rsl_dec_chan_nr(ia->chan_desc.chan_nr, &ch_type, &ch_subch, &ch_ts) 
!= 0) {
                LOGP(DRR, LOGL_ERROR,

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/32589
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Iaecd2616733d84f35a825916fe888142800b426b
Gerrit-Change-Number: 32589
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to