wiphy: Return -errno instead of false

This commit is contained in:
Denis Kenzior 2021-06-01 16:46:23 -05:00
parent d773c0b4ac
commit 683ff1a4e4
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
break;
case IE_TYPE_VHT_CAPABILITIES:
if (iter.len != 12)
return false;
return -EBADMSG;
vht_capabilities = iter.data - 2;
break;