From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v2 1/2] band: make HE/no-HT rate estimators return more descriptive
Date: Thu, 28 Mar 2024 07:26:21 -0700 [thread overview]
Message-ID: <20240328142622.1490115-1-prestwoj@gmail.com> (raw)
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
next reply other threads:[~2024-03-28 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 14:26 James Prestwood [this message]
2024-03-28 14:26 ` [PATCH v2 2/2] wiphy: add better handling for rate estimation errors James Prestwood
2024-03-28 15:21 ` [PATCH v2 1/2] band: make HE/no-HT rate estimators return more descriptive Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240328142622.1490115-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).