]>
git.ipfire.org Git - thirdparty/hostap.git/blob - src/eap_common/eap_wsc_common.c
2 * EAP-WSC common routines for Wi-Fi Protected Setup
3 * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
13 #include "eap_common.h"
15 #include "eap_wsc_common.h"
17 struct wpabuf
* eap_wsc_build_frag_ack(u8 id
, u8 code
)
21 msg
= eap_msg_alloc(EAP_VENDOR_WFA
, EAP_VENDOR_TYPE_WSC
, 2, code
, id
);
23 wpa_printf(MSG_ERROR
, "EAP-WSC: Failed to allocate memory for "
28 wpa_printf(MSG_DEBUG
, "EAP-WSC: Send WSC/FRAG_ACK");
29 wpabuf_put_u8(msg
, WSC_FRAG_ACK
); /* Op-Code */
30 wpabuf_put_u8(msg
, 0); /* Flags */