diff mbox series

[v2,4/4] unit: fix test-band with new rate estimation returns

Message ID 20240415192948.65857-4-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [v2,1/4] wiphy: include MAC of BSS with invalid HE capabilities | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood April 15, 2024, 7:29 p.m. UTC
-ENETUNREACH is the correct return to check as this indicates either
the RSSI was too low or the local capabilities were not compatible.
---
 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 8140b272..855fb67f 100644
--- a/unit/test-band.c
+++ b/unit/test-band.c
@@ -444,7 +444,7 @@  const struct he_test_data he_all_mcs_unsupported = {
 	.freq = BAND_FREQ_5_GHZ,
 	.rssi = -20,
 	.expected_rate = 1201000000ULL * 8ULL,
-	.expected_return = -EBADMSG,
+	.expected_return = -ENETUNREACH,
 	.capabilities = {
 		.he_mcs_set = { MCS_UNSUP, MCS_UNSUP,
 				MCS_UNSUP, MCS_UNSUP,