diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-05-20 04:20:01 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-05-20 04:20:01 +0000 |
commit | a2e3d8c958bf2fa32b0619e3f20385ba426a192a (patch) | |
tree | 5220f98c06eca849ea97f3118a2af1863839e585 /security/wpa_supplicant | |
parent | c16b608701e6db1088511fe61a6488aaec6f68d8 (diff) | |
download | ports-a2e3d8c958bf2fa32b0619e3f20385ba426a192a.tar.gz ports-a2e3d8c958bf2fa32b0619e3f20385ba426a192a.zip |
Notes
Diffstat (limited to 'security/wpa_supplicant')
-rw-r--r-- | security/wpa_supplicant/Makefile | 2 | ||||
-rw-r--r-- | security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/security/wpa_supplicant/Makefile b/security/wpa_supplicant/Makefile index a01e0e9e8c3f..f96430416eea 100644 --- a/security/wpa_supplicant/Makefile +++ b/security/wpa_supplicant/Makefile @@ -2,7 +2,7 @@ PORTNAME= wpa_supplicant PORTVERSION= 2.9 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security net MASTER_SITES= https://w1.fi/releases/ diff --git a/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c b/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c new file mode 100644 index 000000000000..20de452175c7 --- /dev/null +++ b/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c @@ -0,0 +1,24 @@ +--- src/drivers/driver_bsd.c.orig 2019-08-07 06:25:25.000000000 -0700 ++++ src/drivers/driver_bsd.c 2020-05-19 18:17:48.607660000 -0700 +@@ -1336,14 +1336,18 @@ + drv = bsd_get_drvindex(global, ifm->ifm_index); + if (drv == NULL) + return; +- if ((ifm->ifm_flags & IFF_UP) == 0 && +- (drv->flags & IFF_UP) != 0) { ++ if (((ifm->ifm_flags & IFF_UP) == 0 || ++ (ifm->ifm_flags & IFF_RUNNING) == 0) && ++ (drv->flags & IFF_UP) != 0 && ++ (drv->flags & IFF_RUNNING) != 0) { + wpa_printf(MSG_DEBUG, "RTM_IFINFO: Interface '%s' DOWN", + drv->ifname); + wpa_supplicant_event(drv->ctx, EVENT_INTERFACE_DISABLED, + NULL); + } else if ((ifm->ifm_flags & IFF_UP) != 0 && +- (drv->flags & IFF_UP) == 0) { ++ (ifm->ifm_flags & IFF_RUNNING) != 0 && ++ ((drv->flags & IFF_UP) == 0 || ++ (drv->flags & IFF_RUNNING) == 0)) { + wpa_printf(MSG_DEBUG, "RTM_IFINFO: Interface '%s' UP", + drv->ifname); + wpa_supplicant_event(drv->ctx, EVENT_INTERFACE_ENABLED, |