ports/net/hostapd210/files/patch-src_wps_wps__upnp.c
Cy Schubert e36bb86195 net/hostapd210: Clone net/hostapd to net/hostapd210
We clone net/hostapd to net/hostapd210 in preparation for the
hostapd update to 2.11. In case anyone is having issues with it
they can fall back to net/hostapd210.
2024-07-21 06:06:29 -07:00

12 lines
509 B
C

--- src/wps/wps_upnp.c.orig 2021-03-16 13:50:10.000000000 -0700
+++ src/wps/wps_upnp.c 2021-03-18 12:49:19.537874000 -0700
@@ -963,7 +963,8 @@
goto fail;
}
os_memcpy(mac, req.ifr_addr.sa_data, 6);
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) \
+ || defined(__DragonFly__)
if (eth_get(net_if, mac) < 0) {
wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address");
goto fail;