<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/22928">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">l1sap: Store status of SRR in an lchan struct memeber<br><br>The MS sets the SRR bit in the L1 SACCH header to request DL-SACCH<br>repetition from the BTS. At the moment we access the l1_info stored in<br>tle lchan struct each time we want to check the status of the SRR bit.<br>However, it is more convinient to do this once at reception and store<br>the status of the status of the flag in a separate struct member.<br><br>Change-Id: Ieddd45d7890343d64db14b9c726f6fa2f25714f6<br>Related: SYS#5114<br>---<br>M include/osmo-bts/gsm_data.h<br>M src/common/l1sap.c<br>2 files changed, 9 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h</span><br><span>index 6caad14..ff0c89c 100644</span><br><span>--- a/include/osmo-bts/gsm_data.h</span><br><span>+++ b/include/osmo-bts/gsm_data.h</span><br><span>@@ -406,6 +406,7 @@</span><br><span>         struct abis_rsl_osmo_rep_acch_cap repeated_acch_capability;</span><br><span>  bool repeated_dl_facch_active;</span><br><span>       bool repeated_ul_sacch_active;</span><br><span style="color: hsl(120, 100%, 40%);">+        bool repeated_dl_sacch_active;</span><br><span> </span><br><span>   /* Message buffer to store DL-SACCH repeation candidate */</span><br><span>   struct msgb *rep_sacch;</span><br><span>diff --git a/src/common/l1sap.c b/src/common/l1sap.c</span><br><span>index 0a46b23..1d80a84 100644</span><br><span>--- a/src/common/l1sap.c</span><br><span>+++ b/src/common/l1sap.c</span><br><span>@@ -1138,10 +1138,16 @@</span><br><span>                               p[0] |= 0x40; /* See also: 3GPP TS 44.004, section 7.1 */</span><br><span>                    p[1] = lchan->rqd_ta;</span><br><span>                     le = &lchan->lapdm_ch.lapdm_acch;</span><br><span style="color: hsl(0, 100%, 40%);">-                        if (lchan->repeated_acch_capability.dl_sacch)</span><br><span style="color: hsl(120, 100%, 40%);">+                      if (lchan->repeated_acch_capability.dl_sacch) {</span><br><span style="color: hsl(120, 100%, 40%);">+                            /* Check if MS requests SACCH repetition and update state accordingly */</span><br><span style="color: hsl(120, 100%, 40%);">+                              if (lchan->meas.l1_info.srr_sro)</span><br><span style="color: hsl(120, 100%, 40%);">+                                   lchan->repeated_dl_sacch_active = true;</span><br><span style="color: hsl(120, 100%, 40%);">+                            else</span><br><span style="color: hsl(120, 100%, 40%);">+                                  lchan->repeated_dl_sacch_active = false;</span><br><span>                          pp_msg = lapdm_phsap_dequeue_msg_sacch(lchan, le);</span><br><span style="color: hsl(0, 100%, 40%);">-                      else</span><br><span style="color: hsl(120, 100%, 40%);">+                  } else {</span><br><span>                             pp_msg = lapdm_phsap_dequeue_msg(le);</span><br><span style="color: hsl(120, 100%, 40%);">+                 }</span><br><span>            } else {</span><br><span>                     if (lchan->ts->trx->bts->dtxd)</span><br><span>                           dtxd_facch = true;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/22928">change 22928</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bts/+/22928"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ieddd45d7890343d64db14b9c726f6fa2f25714f6 </div>
<div style="display:none"> Gerrit-Change-Number: 22928 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>