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
1 changed files with 1 additions and 1 deletions

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;