Patch wpa-supplicant to set DEFAULT_AP_SCAN 0, the scan code doesn't handle

OpenBSD. Remove ap_scan=0 from default config as suggested by / ok dcoppa.

README still mentions ap_scan=0; as discussed with tb@ some institutions
provide sample config files which do include other ap_scan settings so
I think it's still helpful there.
This commit is contained in:
sthen 2017-02-08 12:53:46 +00:00
parent 63dde5c5b3
commit 16c0e1246e
3 changed files with 27 additions and 3 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.34 2016/10/07 14:44:03 dcoppa Exp $
# $OpenBSD: Makefile,v 1.35 2017/02/08 12:53:46 sthen Exp $
COMMENT= IEEE 802.1X supplicant
DISTNAME= wpa_supplicant-2.6
REVISION= 0
CATEGORIES= security net
HOMEPAGE= http://w1.fi/wpa_supplicant/

View File

@ -1,10 +1,9 @@
# $OpenBSD: wpa_supplicant.conf,v 1.3 2015/04/02 17:32:24 sthen Exp $
# $OpenBSD: wpa_supplicant.conf,v 1.4 2017/02/08 12:53:46 sthen Exp $
# Sample wpa_supplicant configuration file for wired IEEE 802.1x
# port authentication. See wpa_supplicant.conf(5).
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=0
# wired network:

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-wpa_supplicant_config_h,v 1.1 2017/02/08 12:53:46 sthen Exp $
--- wpa_supplicant/config.h.orig Wed Feb 8 11:22:05 2017
+++ wpa_supplicant/config.h Wed Feb 8 11:22:57 2017
@@ -10,11 +10,15 @@
#define CONFIG_H
#define DEFAULT_EAPOL_VERSION 1
-#ifdef CONFIG_NO_SCAN_PROCESSING
-#define DEFAULT_AP_SCAN 2
-#else /* CONFIG_NO_SCAN_PROCESSING */
-#define DEFAULT_AP_SCAN 1
-#endif /* CONFIG_NO_SCAN_PROCESSING */
+#ifdef __OpenBSD__
+# define DEFAULT_AP_SCAN 0
+#else
+# ifdef CONFIG_NO_SCAN_PROCESSING
+# define DEFAULT_AP_SCAN 2
+# else /* CONFIG_NO_SCAN_PROCESSING */
+# define DEFAULT_AP_SCAN 1
+# endif /* CONFIG_NO_SCAN_PROCESSING */
+#endif
#define DEFAULT_USER_MPM 1
#define DEFAULT_MAX_PEER_LINKS 99
#define DEFAULT_MESH_MAX_INACTIVITY 300