mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 18:58:21 -05:00
8342185012
disable_dgaf=1 in hostapd.conf can now be used to disable downstream group-addressed forwarding (DGAF). In this configuration, a unique GTK (and IGTK) is provided to each STA in the BSS to make sure the keys do not match and no STA can forge group-addressed frames. An additional mechanism in the AP needs to be provided to handle some group-addressed frames, e.g., by converting DHCP packets to unicast IEEE 802.11 frames regardless of their destination IP address and by providing Proxy ARP functionality. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
32 lines
737 B
C
32 lines
737 B
C
/*
|
|
* Hotspot 2.0 AP ANQP processing
|
|
* Copyright (c) 2009, Atheros Communications, Inc.
|
|
* Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#include "includes.h"
|
|
|
|
#include "common.h"
|
|
#include "common/ieee802_11_defs.h"
|
|
#include "hostapd.h"
|
|
#include "ap_config.h"
|
|
#include "hs20.h"
|
|
|
|
|
|
u8 * hostapd_eid_hs20_indication(struct hostapd_data *hapd, u8 *eid)
|
|
{
|
|
if (!hapd->conf->hs20)
|
|
return eid;
|
|
*eid++ = WLAN_EID_VENDOR_SPECIFIC;
|
|
*eid++ = 5;
|
|
WPA_PUT_BE24(eid, OUI_WFA);
|
|
eid += 3;
|
|
*eid++ = HS20_INDICATION_OUI_TYPE;
|
|
/* Hotspot Configuration: DGAF Enabled */
|
|
*eid++ = hapd->conf->disable_dgaf ? 0x01 : 0x00;
|
|
return eid;
|
|
}
|