3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-19 10:02:33 +01:00

wscutil: Fix incorrect return value

This commit is contained in:
Denis Kenzior 2016-08-16 16:12:19 -05:00
parent e91846bbc5
commit 1c9e82001b

View File

@ -959,7 +959,7 @@ int wsc_parse_m1(const uint8_t *pdu, uint32_t len, struct wsc_m1 *out)
/* WSC 2.0.5, Section 8.3.1: "Specific RF band used for this message" */
if (__builtin_popcount(out->rf_bands) != 1)
return false;
return -EBADMSG;
if (!wsc_wfa_ext_iter_next(&iter))
goto done;