Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2020 04:20:02 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r535967 - in head: net/hostapd net/hostapd/files security/wpa_supplicant security/wpa_supplicant/files
Message-ID:  <202005200420.04K4K2bT061721@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed May 20 04:20:01 2020
New Revision: 535967
URL: https://svnweb.freebsd.org/changeset/ports/535967

Log:
  Chase src r361272:
  
  Silence the once per second CTRL-EVENT-SCAN-FAILED errors when the WiFi
  radio is disabled through the communication device toggle key (also known
  as the RF raidio kill button). Only the CTRL-EVENT-DISCONNECTED will be
  issued.
  
  Submitted by:	avg
  Reported by:	avg
  MFH:		2020Q2

Added:
  head/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c   (contents, props changed)
Modified:
  head/net/hostapd/Makefile   (contents, props changed)
  head/net/hostapd/files/patch-src_drivers_driver__bsd.c   (contents, props changed)
  head/security/wpa_supplicant/Makefile   (contents, props changed)

Modified: head/net/hostapd/Makefile
==============================================================================
--- head/net/hostapd/Makefile	Wed May 20 03:59:05 2020	(r535966)
+++ head/net/hostapd/Makefile	Wed May 20 04:20:01 2020	(r535967)
@@ -3,6 +3,7 @@
 
 PORTNAME=	hostapd
 PORTVERSION=	2.9
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://w1.fi/releases/
 

Modified: head/net/hostapd/files/patch-src_drivers_driver__bsd.c
==============================================================================
--- head/net/hostapd/files/patch-src_drivers_driver__bsd.c	Wed May 20 03:59:05 2020	(r535966)
+++ head/net/hostapd/files/patch-src_drivers_driver__bsd.c	Wed May 20 04:20:01 2020	(r535967)
@@ -1,8 +1,8 @@
---- src/drivers/driver_bsd.c.orig	2015-09-27 19:02:05 UTC
-+++ src/drivers/driver_bsd.c
-@@ -623,7 +623,11 @@ rtbuf_len(void)
+--- src/drivers/driver_bsd.c.orig2	2019-08-07 06:25:25.000000000 -0700
++++ src/drivers/driver_bsd.c	2020-05-19 21:11:18.891164000 -0700
+@@ -665,7 +665,11 @@
  static int bsd_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
- 			  int reason_code);
+ 			  u16 reason_code);
  
 +#ifdef __DragonFly__
 +const char *
@@ -12,3 +12,25 @@
  ether_sprintf(const u8 *addr)
  {
  	static char buf[sizeof(MACSTR)];
+@@ -1336,14 +1340,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,

Modified: head/security/wpa_supplicant/Makefile
==============================================================================
--- head/security/wpa_supplicant/Makefile	Wed May 20 03:59:05 2020	(r535966)
+++ head/security/wpa_supplicant/Makefile	Wed May 20 04:20:01 2020	(r535967)
@@ -2,7 +2,7 @@
 
 PORTNAME=	wpa_supplicant
 PORTVERSION=	2.9
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	security net
 MASTER_SITES=	https://w1.fi/releases/
 

Added: head/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/wpa_supplicant/files/patch-src_drivers_driver__bsd.c	Wed May 20 04:20:01 2020	(r535967)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005200420.04K4K2bT061721>