mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
sniff: fix ATR checksum calculation
this issue also cause the sent ATR to be empty Change-Id: I6edff7aeb3185c835656acde75886fb6c90c0582
This commit is contained in:
@@ -505,7 +505,7 @@ static void process_byte_atr(uint8_t byte)
|
||||
if (ATR_S_WAIT_TCK == atr_state) {
|
||||
uint8_t ui;
|
||||
uint8_t checksum = 0;
|
||||
for (ui = 1; ui < atr_i; atr_i++) {
|
||||
for (ui = 1; ui < atr_i; ui++) {
|
||||
checksum ^= atr[ui];
|
||||
}
|
||||
if (checksum) {
|
||||
|
||||
Reference in New Issue
Block a user