Change in osmo-remsim[master]: remsim-client: stoare last 'status'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Dec 17 00:19:38 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/16627 )


Change subject: remsim-client: stoare last 'status'
......................................................................

remsim-client: stoare last 'status'

Keep a local copy of the last status message of the cardem
firmware.

Change-Id: I5b348035da8f0905364b67f21f5c7be112b20e70
---
M src/client/simtrace2-remsim_client.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/27/16627/1

diff --git a/src/client/simtrace2-remsim_client.c b/src/client/simtrace2-remsim_client.c
index 515fd50..173b890 100644
--- a/src/client/simtrace2-remsim_client.c
+++ b/src/client/simtrace2-remsim_client.c
@@ -86,6 +86,7 @@
 struct cardem_inst {
 	/* slot on which this card emulation instance runs */
 	struct st_slot *slot;
+	struct cardemu_usb_msg_status last_status;
 };
 
 /* global GSMTAP instance */
@@ -544,6 +545,11 @@
 							-1 /* FIXME: make this dependent on board */);
 	server_conn_send_rspro(&g_client->bankd_conn, pdu);
 
+	if (ci->last_status.flags != status->flags) {
+		ci->last_status = *status;
+	} else
+		ci->last_status = *status;
+
 	return 0;
 }
 

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

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I5b348035da8f0905364b67f21f5c7be112b20e70
Gerrit-Change-Number: 16627
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191217/2927ec25/attachment.htm>


More information about the gerrit-log mailing list