3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

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.
This commit is contained in:
James Prestwood 2022-12-29 16:24:26 -08:00 committed by Denis Kenzior
parent e70a241f34
commit cfdfe9c54c

View File

@ -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);
}