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

wscutil: Don't include request_to_enroll if false

This commit is contained in:
Denis Kenzior 2016-08-16 15:27:16 -05:00
parent 1c5988b0b8
commit e9d1ca7f7b

View File

@ -1242,6 +1242,10 @@ uint8_t *wsc_build_probe_request(const struct wsc_probe_request *probe_request,
wsc_attr_builder_put_u8(builder, WSC_WFA_EXTENSION_VERSION2);
wsc_attr_builder_put_u8(builder, 1);
wsc_attr_builder_put_u8(builder, 0x20);
if (!probe_request->request_to_enroll)
goto done;
wsc_attr_builder_put_u8(builder, WSC_WFA_EXTENSION_REQUEST_TO_ENROLL);
wsc_attr_builder_put_u8(builder, 1);
wsc_attr_builder_put_u8(builder, 1);