--- /dev/null
+--- a/src/ap/dhcp_snoop.c
++++ b/src/ap/dhcp_snoop.c
+@@ -110,6 +110,15 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
+ }
+ }
+
++ if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
++ for (sta = hapd->sta_list; sta; sta = sta->next) {
++ if (!(sta->flags & WLAN_STA_AUTHORIZED))
++ continue;
++ x_snoop_mcast_to_ucast_convert_send(hapd, sta,
++ (u8 *) buf, len);
++ }
++ }
++
+ if (msgtype == DHCPACK) {
+ if (b->your_ip == 0)
+ return;
+@@ -146,15 +155,6 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
+ }
+ sta->ipaddr = b->your_ip;
+ }
+-
+- if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
+- for (sta = hapd->sta_list; sta; sta = sta->next) {
+- if (!(sta->flags & WLAN_STA_AUTHORIZED))
+- continue;
+- x_snoop_mcast_to_ucast_convert_send(hapd, sta,
+- (u8 *) buf, len);
+- }
+- }
+ }
+
+
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib
+# Turn on HS20 support
+CONFIG_HS20=y
+
# Some Red Hat versions seem to include kerberos header files from OpenSSL, but
# the kerberos files are not in the default include path. Following line can be
# used to fix build issues on such systems (krb5.h not found).