wiphy: Return -errno instead of false
This commit is contained in:
parent
d773c0b4ac
commit
683ff1a4e4
|
@ -721,7 +721,7 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
|
||||||
break;
|
break;
|
||||||
case IE_TYPE_VHT_CAPABILITIES:
|
case IE_TYPE_VHT_CAPABILITIES:
|
||||||
if (iter.len != 12)
|
if (iter.len != 12)
|
||||||
return false;
|
return -EBADMSG;
|
||||||
|
|
||||||
vht_capabilities = iter.data - 2;
|
vht_capabilities = iter.data - 2;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue