diff --git a/tools/scripts/ath10k/ath10k-bdencoder b/tools/scripts/ath10k/ath10k-bdencoder index 855e4b7..02ff136 100755 --- a/tools/scripts/ath10k/ath10k-bdencoder +++ b/tools/scripts/ath10k/ath10k-bdencoder @@ -618,7 +618,7 @@ def cmd_add_mbox(args): if not filename.endswith(BIN_SUFFIX): continue - name = filename.rstrip(BIN_SUFFIX) + name = filename[:-len(BIN_SUFFIX)] board_files[name] = part.get_payload(decode=True) print('Found mail "%s" with %d board files' % (msg['Subject'],