From 683ff1a4e4bd82ae0f95f14136eba4febe2f5c9a Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 1 Jun 2021 16:46:23 -0500 Subject: [PATCH] wiphy: Return -errno instead of false --- src/wiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiphy.c b/src/wiphy.c index a5f1858f..22a04d87 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -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;