+++ /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);
-- }
-- }
- }
-
-