From e5816b024f9ebdb78f63934f329cde2882a148cb Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 15 Apr 2024 12:29:47 -0700 Subject: [PATCH] band: return -ENETUNREACH for HE rate estimation This was overlooked in a prior patch and causes warnings to be printed when the RSSI is too low to estimate an HE data rate or due to incompatible local capabilities (e.g. MCS support). Similar to the other estimations, return -ENETUNREACH if the IE was valid but incompatible. --- src/band.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/band.c b/src/band.c index 11cd965e..906d6197 100644 --- a/src/band.c +++ b/src/band.c @@ -678,7 +678,7 @@ int band_estimate_he_rx_rate(const struct band *band, const uint8_t *hec, } if (!rate) - return -EBADMSG; + return -ENETUNREACH; *out_data_rate = rate;