commit cfdfe9c54cccf4f89490109c01b4c776b515a13d
parent e70a241f341405e35c58e062a80f5b3b6e46f707
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 29 Dec 2022 16:24:26 -0800
unit: fix test-band for 6ghz frequencies
The 6GHz test was not incrementing the frequencies properly which
was resulting in invalid frequencies, but since the conversion
API was never linked to E-4 the test was still passing.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unit/test-band.c b/unit/test-band.c
@@ -644,7 +644,7 @@ static void test_6ghz_freqs(const void *data)
uint32_t i;
enum band_freq band;
- for (i = 5955; i < 7115; i += 5) {
+ for (i = 5955; i < 7115; i += 20) {
assert(band_freq_to_channel(i, &band) != 0);
assert(band == BAND_FREQ_6_GHZ);
}