commit | cc295f69454b1e7c0a6e383393025548f1d674db | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@osmocom.org> | Wed Nov 16 10:46:07 2022 +0100 |
committer | laforge <laforge@osmocom.org> | Sat Nov 19 09:02:23 2022 +0000 |
tree | 8832cac972cb6dd554087106e3e9f53350037cf0 | |
parent | 4836f23fa3fa23044c313cd054317b50e11976ec [diff] |
firmware/sniffer: Avoid extra call for rbuf_is_full rbuf_write() will tell us in the return value if the buffer was full (error) or not (success). Let's use that return value rather than a theoretically race-y call to rbuf_is_full() before. It's theoretical as the write happens from IRQ context and the read from normal process context, so the fill-level cannot really change while we're in the USART interrupt. So it doesn't fix a bug, just improves coding style and also avoids an extra function call + irq-disable/re-enable. Change-Id: Icf570d0aa48d67a19e63c6e2b6caa14438fe88e3
This is the repository for the next-generation SIMtrace devices, providing abilities to trace the communication between (U)SIM card and phone, remote (U)SIM card forward, (U)SIM man-in-the-middle, and more.
NOTE: Nothing in this repository applies to the SIMtrace v1.x hardware or its associated firmware. SIMtrace v1.x is based on a different CPU / microcontroller architecture and uses a completely different software stack and host software.
This repository contains several directory
The host software includes