From b4e8d55fe8397fc3a908835ca4358ad6f1fba981 Mon Sep 17 00:00:00 2001 From: Alba Mendez Date: Wed, 1 Jul 2026 18:59:55 +0200 Subject: [PATCH] hackrf_transfer: align rate limits with MIN/MAX_MCU_RATE now that we have hardware-enforced sample rate limits, I think it'd be nice to align the checks done in hackrf_transfer with those. if worried about expanding these limits breaking older firmware, I can add an USB API check for >= 1.11. related to #1787 but seems to have no conflicts, feel free to close if you want to add that patch there :) --- host/hackrf-tools/src/hackrf_transfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index ef5d68e1d..2ff3afcb5 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -97,8 +97,8 @@ int gettimeofday(struct timeval* tv, void* ignored) #define LO_MAX_HZ (5400000000ll) #define DEFAULT_LO_HZ (1000000000ll) -#define SAMPLE_RATE_MIN_HZ (2000000) /* 2MHz min sample rate */ -#define SAMPLE_RATE_MAX_HZ (20000000) /* 20MHz max sample rate */ +#define SAMPLE_RATE_MIN_HZ (200000) /* 200kHz min sample rate */ +#define SAMPLE_RATE_MAX_HZ (21800000) /* 21.8MHz max sample rate */ #define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */ #define DEFAULT_BASEBAND_FILTER_BANDWIDTH (5000000) /* 5MHz default */