Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 1/2] band: make HE/no-HT rate estimators return more descriptive
@ 2024-03-28 13:47 James Prestwood
  2024-03-28 13:47 ` [PATCH 2/2] wiphy: add better handling for rate estimation errors James Prestwood
  0 siblings, 1 reply; 4+ messages in thread
From: James Prestwood @ 2024-03-28 13:47 UTC (permalink / raw)
  To: iwd; +Cc: James Prestwood

If the IEs were not provided return -ENOTSUP rather than -EINVAL
or -EBADMSG since this just means the AP doesn't support those
capabilities.
---
 src/band.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/band.c b/src/band.c
index bf40f789..11cd965e 100644
--- a/src/band.c
+++ b/src/band.c
@@ -90,7 +90,7 @@ int band_estimate_nonht_rate(const struct band *band,
 	int i;
 
 	if (!supported_rates && !ext_supported_rates)
-		return -EINVAL;
+		return -ENOTSUP;
 
 	/*
 	 * Start at the back of the array.  Rates are generally given in
@@ -607,7 +607,7 @@ int band_estimate_he_rx_rate(const struct band *band, const uint8_t *hec,
 	uint8_t width_set;
 
 	if (!hec || !band->he_capabilities)
-		return -EBADMSG;
+		return -ENOTSUP;
 
 	for (entry = l_queue_get_entries(band->he_capabilities);
 						entry; entry = entry->next) {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-28 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-28 13:47 [PATCH 1/2] band: make HE/no-HT rate estimators return more descriptive James Prestwood
2024-03-28 13:47 ` [PATCH 2/2] wiphy: add better handling for rate estimation errors James Prestwood
2024-03-28 14:15   ` Denis Kenzior
2024-03-28 14:19     ` James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox