diff mbox series

[2/2] unit: include frequency 7115 in test-band

Message ID 20230919165923.1352279-2-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/2] wiphy: fix wiphy_contrain_freq_set skipping last channel | expand

Commit Message

James Prestwood Sept. 19, 2023, 4:59 p.m. UTC
The test was not including the last frequency in the 6ghz spectrum.
---
 unit/test-band.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/unit/test-band.c b/unit/test-band.c
index caddbcdd..e27531f7 100644
--- 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 += 20) {
+	for (i = 5955; i <= 7115; i += 20) {
 		assert(band_freq_to_channel(i, &band) != 0);
 		assert(band == BAND_FREQ_6_GHZ);
 	}