2 * Hotspot 2.0 AP ANQP processing
3 * Copyright (c) 2009, Atheros Communications, Inc.
4 * Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
13 #include "common/ieee802_11_defs.h"
15 #include "ap_config.h"
19 u8 * hostapd_eid_hs20_indication(struct hostapd_data *hapd, u8 *eid)
21 if (!hapd->conf->hs20)
23 *eid++ = WLAN_EID_VENDOR_SPECIFIC;
25 WPA_PUT_BE24(eid, OUI_WFA);
27 *eid++ = HS20_INDICATION_OUI_TYPE;
28 /* Hotspot Configuration: DGAF Enabled */
29 *eid++ = hapd->conf->disable_dgaf ? 0x01 : 0x00;