<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/20787">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/l1ctl: fix: send confirmation for TCH mode request<br><br>Both REQ and CNF share the same message structure, so we can<br>cheat a bit by changing the message type and sending it back.<br><br>Change-Id: I6f403ed0506b4b1872361d9976d3186bfe514b52<br>Related: OS#4799<br>---<br>M src/host/trxcon/l1ctl.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/87/20787/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c</span><br><span>index aec304f..8083595 100644</span><br><span>--- a/src/host/trxcon/l1ctl.c</span><br><span>+++ b/src/host/trxcon/l1ctl.c</span><br><span>@@ -808,8 +808,11 @@</span><br><span> </span><br><span>       /* TODO: do we need to care about audio_mode? */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    msgb_free(msg);</span><br><span style="color: hsl(0, 100%, 40%);">- return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Re-use the original message as confirmation */</span><br><span style="color: hsl(120, 100%, 40%);">+     struct l1ctl_hdr *l1h = (struct l1ctl_hdr *) msg->data;</span><br><span style="color: hsl(120, 100%, 40%);">+    l1h->msg_type = L1CTL_TCH_MODE_CONF;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     return l1ctl_link_send(l1l, msg);</span><br><span> }</span><br><span> </span><br><span> static int l1ctl_rx_crypto_req(struct l1ctl_link *l1l, struct msgb *msg)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/20787">change 20787</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/osmocom-bb/+/20787"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6f403ed0506b4b1872361d9976d3186bfe514b52 </div>
<div style="display:none"> Gerrit-Change-Number: 20787 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>