3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

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.
This commit is contained in:
James Prestwood 2024-04-15 12:29:47 -07:00 committed by Denis Kenzior
parent 9cdc726dc1
commit e5816b024f

View File

@ -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;