3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

band: make HE/no-HT rate estimators return more descriptive

If the IEs were not provided return -ENOTSUP rather than -EINVAL
or -EBADMSG since this just means the AP doesn't support those
capabilities.
This commit is contained in:
James Prestwood 2024-03-28 07:26:21 -07:00 committed by Denis Kenzior
parent 6b94ab3889
commit 2f2b5740da

View File

@ -90,7 +90,7 @@ int band_estimate_nonht_rate(const struct band *band,
int i; int i;
if (!supported_rates && !ext_supported_rates) if (!supported_rates && !ext_supported_rates)
return -EINVAL; return -ENOTSUP;
/* /*
* Start at the back of the array. Rates are generally given in * 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; uint8_t width_set;
if (!hec || !band->he_capabilities) if (!hec || !band->he_capabilities)
return -EBADMSG; return -ENOTSUP;
for (entry = l_queue_get_entries(band->he_capabilities); for (entry = l_queue_get_entries(band->he_capabilities);
entry; entry = entry->next) { entry; entry = entry->next) {