Skip to contentSkip to conversation

wpa-supplicant: Build from git sources

PATCH Superseded Eyal Reizer 3 participants 7 messages Apr 12, 2011 – Apr 13, 2011 Page 1 of 2

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wpa-supplicant: Build from git sources

---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422 ++++++++++++
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690 ++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/defconfig
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant_git.bb
recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file +1 -0
new file mode 100755
index 0000000..6ff4dd8
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +8 -0
new file mode 100755
index 0000000..67c4cbd
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified in config)
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +169 -0

169 lines not on this page · raw message

+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used) +#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK) +#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used) +#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too. +#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA +#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK +#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support (experimental) +#CONFIG_EAP_TNC=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate file from +# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g., with openssl +# engine.
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g, wpa_cli:
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not included in the +# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in wpa_cli. +# When building a wpa_cli binary for distribution, please note that these +# libraries are licensed under GPL and as such, BSD license may not apply for +# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to stdout. +# This can be used to reduce the size of the wpa_supplicant considerably +# if debugging code is not needed. The size reduction can be around 35% +# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save +# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes WPA2 code to +# save about 1 kB in code size when building only WPA-Personal (no EAP support) +# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing support for +# converting ASCII passphrases into PSK. If this functionality is removed, the +# PSK can only be configured as the 64-octet hexstring (e.g., from +# wpa_passphrase). This saves about 0.5 kB in code size. +#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size by about 1 kB. +# This can be used if ap_scan=1 mode is never enabled. +#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the configuration file
+# path is given on command line, not here; this option is just used to
+# select the backend that allows configuration files to be used)
+# winreg = Windows registry (see win_example.reg for an example) +CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the configuration +# file to be updated based on runtime configuration changes). The runtime +# configuration can still be changed, the changes are just not going to be +# persistent over restarts. This option can be used to reduce code size by +# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size by about 1.5 kB. +#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from registry)
+# main_none = Very basic example (development use only) +#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific functions +# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) +CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE 802.11w/D1.0 +# draft and is subject to change since the standard has not yet been finalized. +# Driver support is also needed for IEEE 802.11w. +#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also CONFIG_GNUTLS_EXTRA) +# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-TTLSv1. +# You need CONFIG_TLS=gnutls for this to have any effect. Please note that +# even though the core GnuTLS library is released under LGPL, this extra +# library uses GPL and as such, the terms of GPL apply to the combination +# of wpa_supplicant and GnuTLS if this option is enabled. BSD license may not +# apply for distribution of the resulting binary. +#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and include paths are +# needed for LibTomMath. Alternatively, an integrated, minimal version of +# LibTomMath can be used. See beginning of libtommath.c for details on benefits +# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH +#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the internal LibTomMath +# can be configured to include faster routines for exptmod, sqr, and div to +# speed up DH and RSA calculation considerably +#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into wpa_supplicant/wpasvc. +# This is only for Windows builds and requires WMI-related header files and +# WbemUuid.Lib from Platform SDK even when building with MinGW. +#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface +#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared libraries. +# When this option is enabled, each EAP method can be either included +# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn). +# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to +# be loaded in the beginning of the wpa_supplicant configuration file +# (see load_dynamic_eap parameter in the example file) before being used in +# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in the main program +# and in order to be able to use dynamic EAP methods using these parts, the +# main program must have been build with the EAP method enabled (=y or =dyn). +# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries +# unless at least one of them was included in the main build to force inclusion +# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included +# in the main build to be able to load these methods dynamically. +#
+# Please also note that using dynamic libraries will increase the total binary +# size. Thus, it may not be the best option for targets that have limited +# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition) +#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-#.txt) +CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege separation' for details) +#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by delaying Michael +# MIC error reports by a random amount of time between 0 and 60 seconds +#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other registrations and reports +# incorrect use with a backtrace of call (or allocation) location. +#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for the backtraces +# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +85 -0

85 lines not on this page · raw message

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +690 -0

690 lines not on this page · raw message

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf-sane new file +7 -0
new file mode 100755
index 0000000..c91ffe0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +103 -0

103 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Eyal Reizer
Sent: Tuesday, April 12, 2011 4:54 PM
To: [email protected]
Cc: Reizer, Eyal
Subject: [oe] [PATCH] wpa-supplicant: Build from git sources

Need a more detailed commit message. Can you re-use the wpa-supplicant-0.7.inc include file? 90% of this stuff seems the same.

Quoted 1,608 lines
---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422 ++++++++++++
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690
++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/defaults-
sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/defconfig
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa-
supplicant.sh
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant_git.bb
recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file +1 -0
new file mode 100755
index 0000000..6ff4dd8
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +8 -0
new file mode 100755
index 0000000..67c4cbd
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified in config)
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
new file mode 100755
index 0000000..d9be1a8
@@ -0,0 +1,422 @@
+# Example wpa_supplicant build time configuration
+#
+# This file lists the configuration options that are used when building

the
+# hostapd binary. All lines starting with # are ignored. Configuration option
+# lines must be commented out complete, if they are not to be included, i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and LIBS

can also
+# be modified from here. In most cases, these lines should use += in order not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have installed

OpenSSL

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or GnuTLS in non-default location
+#CFLAGS += -I/usr/local/openssl/include
+#LIBS += -L/usr/local/openssl/lib
+
+# Some Red Hat versions seem to include kerberos header files from

OpenSSL, but
+# the kerberos files are not in the default include path. Following line can be

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# used to fix build issues on such systems (krb5.h not found).
+#CFLAGS += -I/usr/include/kerberos
+
+# Example configuration for various cross-compilation platforms
+
+#### sveasoft (e.g., for Linksys WRT54G)

######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS += -I../src/include -I../../src/router/openssl/include
+#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib -lssl
+#########################################################################

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### openwrt (e.g., for Linksys WRT54G)

#######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include \
+#    -I../WRT54GS/release/src/include
+#LIBS = -lssl
+#########################################################################

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +38 -0
+
+CC=$(CROSS_COMPILE)gcc
+#CFLAGS += -DCONFIG_LIBNL20
+#CPPFLAGS += -DCONFIG_LIBNL20
+#LIBS += -L$(NFSROOT)/lib -lnl
+#LIBS_p += -L$(NFSROOT)/lib
+#LIBDIR = $(NFSROOT)/lib
+#BINDIR = $(NFSROOT)/usr/sbin
+
+CONFIG_WAPI=y
+CONFIG_LIBNL20=y
+NEED_BGSCAN=y
+CONFIG_BGSCAN_LEARN=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for Agere driver
+#CONFIG_DRIVER_HERMES=y
+# Change include directories to match with the local setup
+#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
+#CFLAGS += -I../../include/wireless
+
+# Driver interface for madwifi driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_MADWIFI=y
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
+
+# Driver interface for ndiswrapper
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_NDISWRAPPER=y
+
+# Driver interface for Atmel driver
+#CONFIG_DRIVER_ATMEL=y
+
+# Driver interface for old Broadcom driver
+# Please note that the newer Broadcom driver ("hybrid Linux driver")

supports

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +33 -0
+# Linux wireless extensions and does not need (or even work) with the old
+# driver wrapper. Use CONFIG_DRIVER_WEXT=y with that driver.
+#CONFIG_DRIVER_BROADCOM=y
+# Example path for wlioctl.h; change to match your configuration
+#CFLAGS += -I/opt/WRT54GS/release/src/include
+
+# Driver interface for Intel ipw2100/2200 driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_IPW=y
+
+# Driver interface for Ralink driver
+#CONFIG_DRIVER_RALINK=y
+
+# Driver interface for generic Linux wireless extensions
+CONFIG_DRIVER_WEXT=y
+
+# Driver interface for Linux drivers using the nl80211 kernel interface
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+#LIBS_p += -L/usr/local/lib
+#LIBS_c += -L/usr/local/lib
+
+# Driver interface for Windows NDIS
+#CONFIG_DRIVER_NDIS=y
+#CFLAGS += -I/usr/include/w32api/ddk
+#LIBS += -L/usr/local/lib
+# For native build using mingw
+#CONFIG_NATIVE_WINDOWS=y
+# Additional directories for cross-compilation on Linux host for mingw

target

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CFLAGS += -I/opt/mingw/mingw32/include/ddk
+#LIBS += -L/opt/mingw/mingw32/lib
+#CC=mingw32-gcc
+# By default, driver_ndis uses WinPcap for low-level operations. This can

be
+# replaced with the following option which replaces WinPcap calls with NDISUIO.
+# However, this requires that WZC is disabled (net stop wzcsvc) before starting

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# wpa_supplicant.
+# CONFIG_USE_NDISUIO=y
+
+# Driver interface for development testing
+#CONFIG_DRIVER_TEST=y
+
+# Include client MLME (management frame processing) for test driver
+# This can be used to test MLME operations in hostapd with the test

interface.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +17 -0
+# space.
+#CONFIG_CLIENT_MLME=y
+
+# Driver interface for wired Ethernet drivers
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for the Broadcom RoboSwitch family
+#CONFIG_DRIVER_ROBOSWITCH=y
+
+# Driver interface for no driver (e.g., WPS ER only)
+#CONFIG_DRIVER_NONE=y
+
+# Solaris libraries
+#LIBS += -lsocket -ldlpi -lnsl
+#LIBS_c += -lsocket
+
+# Enable IEEE 802.1X Supplicant (automatically included if any EAP method

is

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +22 -0
+# included)
+CONFIG_IEEE8021X_EAPOL=y
+
+# EAP-MD5
+CONFIG_EAP_MD5=y
+
+# EAP-MSCHAPv2
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-TLS
+CONFIG_EAP_TLS=y
+
+# EAL-PEAP
+CONFIG_EAP_PEAP=y
+
+# EAP-TTLS
+CONFIG_EAP_TTLS=y
+
+# EAP-FAST
+# Note: Default OpenSSL package does not include support for all the
+# functionality needed for EAP-FAST. If EAP-FAST is enabled with OpenSSL,
+# the OpenSSL library must be patched (openssl-0.9.8d-tls-

extensions.patch)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +51 -0
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# EAP-GTC
+CONFIG_EAP_GTC=y
 
+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
+#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA
+#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support (experimental)
+#CONFIG_EAP_TNC=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate file

from

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g., with

openssl

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +16 -0
+# engine.
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g, wpa_cli:
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not included in

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in wpa_cli.
+# When building a wpa_cli binary for distribution, please note that these
+# libraries are licensed under GPL and as such, BSD license may not apply

for

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to stdout.
+# This can be used to reduce the size of the wpa_supplicant considerably
+# if debugging code is not needed. The size reduction can be around 35%
+# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to

save

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes WPA2 code

to
+# save about 1 kB in code size when building only WPA-Personal (no EAP support)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing support for
+# converting ASCII passphrases into PSK. If this functionality is removed,

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# PSK can only be configured as the 64-octet hexstring (e.g., from
+# wpa_passphrase). This saves about 0.5 kB in code size.
+#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size by about 1

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# This can be used if ap_scan=1 mode is never enabled.
+#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the configuration

file

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#    path is given on command line, not here; this option is just used to
+#    select the backend that allows configuration files to be used)
+# winreg = Windows registry (see win_example.reg for an example)
+CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the

configuration

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+# file to be updated based on runtime configuration changes). The runtime
+# configuration can still be changed, the changes are just not going to

be
+# persistent over restarts. This option can be used to reduce code size by

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size by about 1.5

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +34 -0
+#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from registry)
+# main_none = Very basic example (development use only)
+#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific functions
+# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
+CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE

802.11w/D1.0
+# draft and is subject to change since the standard has not yet been finalized.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +12 -0
+# Driver support is also needed for IEEE 802.11w.
+#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also CONFIG_GNUTLS_EXTRA)
+# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-TTLSv1.
+# You need CONFIG_TLS=gnutls for this to have any effect. Please note

that

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# even though the core GnuTLS library is released under LGPL, this extra
+# library uses GPL and as such, the terms of GPL apply to the combination
+# of wpa_supplicant and GnuTLS if this option is enabled. BSD license may

not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# apply for distribution of the resulting binary.
+#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and include paths

are

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+# needed for LibTomMath. Alternatively, an integrated, minimal version of
+# LibTomMath can be used. See beginning of libtommath.c for details on

benefits

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH
+#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the internal

LibTomMath
+# can be configured to include faster routines for exptmod, sqr, and div to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# speed up DH and RSA calculation considerably
+#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into wpa_supplicant/wpasvc.
+# This is only for Windows builds and requires WMI-related header files

and

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +18 -0
+# WbemUuid.Lib from Platform SDK even when building with MinGW.
+#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface
+#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared libraries.
+# When this option is enabled, each EAP method can be either included
+# statically (CONFIG_EAP_<method>=y) or dynamically

(CONFIG_EAP_<method>=dyn).
+# Dynamic EAP methods are build as shared objects (eap_*.so) and they need to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+# be loaded in the beginning of the wpa_supplicant configuration file
+# (see load_dynamic_eap parameter in the example file) before being used

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in the main

program
+# and in order to be able to use dynamic EAP methods using these parts, the
+# main program must have been build with the EAP method enabled (=y or =dyn).
+# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries
+# unless at least one of them was included in the main build to force inclusion
+# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# in the main build to be able to load these methods dynamically.
+#
+# Please also note that using dynamic libraries will increase the total

binary

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# size. Thus, it may not be the best option for targets that have limited
+# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file (/tmp/wpa_supplicant-log-

#.txt)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege separation' for

details)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by delaying

Michael

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# MIC error reports by a random amount of time between 0 and 60 seconds
+#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other registrations and

reports

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# incorrect use with a backtrace of call (or allocation) location.
+#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for the

backtraces

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +21 -0
new file mode 100755
index 0000000..5c9e5d3
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+
+WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
+WPA_SUP_PNAME="wpa_supplicant"
+WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
+WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
+
+VERBOSITY=0
+
+
+if [ -s "$IF_WPA_CONF" ]; then
+     WPA_SUP_CONF="-c $IF_WPA_CONF"
+else
+     exit 0
+fi
+
+if [ ! -x "$WPA_SUP_BIN" ]; then
+
+     if [ "$VERBOSITY" = "1" ]; then
+             echo "$WPA_SUP_PNAME: binaries not executable or missing from

$WPA_SUP_BIN"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +13 -0
+     fi
+
+     exit 1
+fi
+
+if [ "$MODE" = "start" ] ; then
+     # driver type of interface, defaults to wext when undefined
+     if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
+             IF_WPA_DRIVER=$(cat "/etc/wpa_supplicant/driver.$IFACE")
+     elif [ -z "$IF_WPA_DRIVER" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: wpa-driver not provided, using

\"wext\""

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+             fi
+
+             IF_WPA_DRIVER="wext"
+     fi
+
+     # if we have passed the criteria, start wpa_supplicant
+     if [ -n "$WPA_SUP_CONF" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: $WPA_SUP_BIN $WPA_SUP_OPTIONS

$WPA_SUP_CONF -D $IF_WPA_DRIVER"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+             fi
+
+             start-stop-daemon --start --quiet \
+                     --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile

$WPA_SUP_PIDFILE \

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+                     --  $WPA_SUP_OPTIONS $WPA_SUP_CONF -D $IF_WPA_DRIVER
+     fi
+
+     # if the interface socket exists, then wpa_supplicant was invoked

successfully

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+     if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: ctrl_interface socket located at

$WPA_COMMON_CTRL_IFACE/$IFACE"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +29 -0
+             fi
+
+             exit 0
+
+     fi
+
+elif [ "$MODE" = "stop" ]; then
+
+     if [ -f "$WPA_SUP_PIDFILE" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: terminating $WPA_SUP_PNAME daemon"
+             fi
+
+             start-stop-daemon --stop --quiet \
+                     --name $WPA_SUP_PNAME --pidfile $WPA_SUP_PIDFILE
+
+             if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+                     rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
+             fi
+
+             if [ -f "$WPA_SUP_PIDFILE" ]; then
+                     rm -f $WPA_SUP_PIDFILE
+             fi
+     fi
+
+fi
+
+exit 0
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +1 -0
new file mode 100755
index 0000000..f0c993d
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file

###############################

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This file describes configuration file format and lists all available

option.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# Please also take a look at simpler configuration examples in 'examples'
+# subdirectory.
+#
+# Empty lines and lines starting with # are ignored
+
+# NOTE! This file may contain password information and should probably be

made

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# readable only by root user on multiuser systems.
+
+# Note: All file paths in this configuration file should use full

(absolute,
+# not relative to working directory) path in order to allow working directory
+# to be changed. This can happen if wpa_supplicant is run in the background.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+
+# Whether to allow wpa_supplicant to update (overwrite) configuration
+#
+# This option can be used to allow wpa_supplicant to overwrite

configuration
+# file whenever configuration is changed (e.g., new network block is added with

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# wpa_cli or wpa_gui, or a password is changed). This is required for
+# wpa_cli/wpa_gui to be able to store the configuration changes

permanently.
+# Please note that overwriting configuration file will remove the comments from

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# it.
+#update_config=1
+
+# global configuration (shared by all network blocks)
+#
+# Parameters for the control interface. If this is specified,

wpa_supplicant
+# will open a control interface that is available for external programs to
+# manage wpa_supplicant. The meaning of this string depends on which control
+# interface mechanism is used. For all cases, the existance of this parameter

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# in configuration is used to determine whether the control interface is
+# enabled.
+#
+# For UNIX domain sockets (default on Linux and BSD): This is a directory

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# will be created for UNIX domain sockets for listening to requests from
+# external programs (CLI/GUI, etc.) for status information and

configuration.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# The socket file will be named based on the interface name, so multiple
+# wpa_supplicant processes can be run at the same time if more than one
+# interface is used.
+# /var/run/wpa_supplicant is the recommended directory for sockets and by
+# default, wpa_cli will use it when trying to connect with wpa_supplicant.
+#
+# Access control for the control interface can be configured by setting

the
+# directory to allow only members of a group to use sockets. This way, it is
+# possible to run wpa_supplicant as root (since it needs to change network
+# configuration and open raw sockets) and still allow GUI/CLI components to be
+# run as non-root users. However, since the control interface can be used to
+# change the network configuration, this access needs to be protected in many
+# cases. By default, wpa_supplicant is configured to use gid 0 (root). If you
+# want to allow non-root users to use the control interface, add a new group
+# and change this value to match with that group. Add users that should have
+# control interface access to this group. If this variable is commented out or
+# not included in the configuration file, group will not be changed from the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# value it got by default when the directory or socket was created.
+#
+# When configuring both the directory and group, use following format:
+# DIR=/var/run/wpa_supplicant GROUP=wheel
+# DIR=/var/run/wpa_supplicant GROUP=0
+# (group can be either group name or gid)
+#
+# For UDP connections (default on Windows): The value will be ignored.

This
+# variable is just used to select that the control interface is to be created.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# The value can be set to, e.g., udp (ctrl_interface=udp)
+#
+# For Windows Named Pipe: This value can be used to set the security

descriptor
+# for controlling access to the control interface. Security descriptor can be
+# set using Security Descriptor String Format (see
http://msdn.microsoft.com/

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# library/default.asp?url=/library/en-us/secauthz/security/
+# security_descriptor_string_format.asp). The descriptor string needs to

be
+# prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would set an empty
+# DACL (which will reject all connections). See README-Windows.txt for more

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# information about SDDL string format.
+#
+ctrl_interface=/var/run/wpa_supplicant
+
+# IEEE 802.1X/EAPOL version
+# wpa_supplicant is implemented based on IEEE Std 802.1X-2004 which

defines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# EAPOL version 2. However, there are many APs that do not handle the new
+# version number correctly (they seem to drop the frames completely). In

order
+# to make wpa_supplicant interoperate with these APs, the version number is set
+# to 1 by default. This configuration value can be used to set it to the new

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# version (2).
+eapol_version=1
+
+# AP scanning/selection
+# By default, wpa_supplicant requests driver to perform AP scanning and

then
+# uses the scan results to select a suitable AP. Another alternative is to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# allow the driver to take care of AP scanning and selection and use
+# wpa_supplicant just to process EAPOL frames based on IEEE 802.11

association

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# information from the driver.
+# 1: wpa_supplicant initiates scanning and AP selection
+# 0: driver takes care of scanning, AP selection, and IEEE 802.11

association
+# parameters (e.g., WPA IE generation); this mode can also be used
with
+# non-WPA drivers when using IEEE 802.1X mode; do not try to associate
with
+# APs (i.e., external program needs to control association). This mode
must

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and SSID (but

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    BSSID); this can be used, e.g., with ndiswrapper and NDIS drivers to
+#    enable operation with hidden SSIDs and optimized roaming; in this

mode,
+# the network blocks in the configuration file are tried one by one
until
+# the driver reports successful association; each network block should
have

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +24 -0
+#    explicit security policy (i.e., only one option in the lists) for
+#    key_mgmt, pairwise, group, proto variables
+ap_scan=1
+
+# EAP fast re-authentication
+# By default, fast re-authentication is enabled for all EAP methods that
+# support it. This variable can be used to disable fast re-authentication.
+# Normally, there is no need to disable this.
+fast_reauth=1
+
+# OpenSSL Engine support
+# These options can be used to load OpenSSL engines.
+# The two engines that are supported currently are shown below:
+# They are both from the opensc project (http://www.opensc.org/)
+# By default no engines are loaded.
+# make the opensc engine available
+#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
+# make the pkcs11 engine available
+#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
+# configure the path to the pkcs11 module required by the pkcs11 engine
+#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
+
+# Dynamic EAP methods
+# If EAP methods were built dynamically as shared object files, they need

to be
+# loaded here before being used in the network blocks. By default, EAP methods

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# are included statically in the build, so these lines are not needed
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
+
+# Driver interface parameters
+# This field can be used to configure arbitrary driver interace

parameters. The
+# format is specific to the selected driver interface. This field is not used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# in most cases.
+#driver_param="field=value"
+
+# Maximum lifetime for PMKSA in seconds; default 43200
+#dot11RSNAConfigPMKLifetime=43200
+# Threshold for reauthentication (percentage of PMK lifetime); default 70
+#dot11RSNAConfigPMKReauthThreshold=70
+# Timeout for security association negotiation in seconds; default 60
+#dot11RSNAConfigSATimeout=60
+
+# network block
+#
+# Each network (usually AP's sharing the same SSID) is configured as a

separate
+# block in this configuration file. The network blocks are in preference order

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# (the first match is used).
+#
+# network block fields:
+#
+# disabled:
+#    0 = this network can be used (default)
+#    1 = this network block is disabled (can be enabled through

ctrl_iface,

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This value is

passed

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    to external action script through wpa_cli as WPA_ID_STR environment
+#    variable to make it easier to do network specific configuration.
+#
+# ssid: SSID (mandatory); either as an ASCII string with double quotation

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    as hex string; network name
+#
+# scan_ssid:
+#    0 = do not scan this SSID with specific Probe Request frames

(default)
+# 1 = scan with SSID-specific Probe Request frames (this can be used
to
+# find APs that do not accept broadcast SSID or use multiple
SSIDs;
+# this will add latency to scanning, so enable this only when
needed)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#
+# bssid: BSSID (optional); if set, this network block is used only when
+#    associating with the AP using the configured BSSID
+#
+# priority: priority group (integer)
+# By default, all networks will get same priority group (0). If some of

the
+# networks are more desirable, this field can be used to change the order in
+# which wpa_supplicant goes through the networks when selecting a BSS. The
+# priority groups will be iterated in decreasing priority (i.e., the larger the
+# priority value, the sooner the network is matched against the scan results).

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# Within each priority group, networks will be selected based on security
+# policy, signal strength, etc.
+# Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode are

not
+# using this priority to select the order for scanning. Instead, they try the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# networks in the order that used in the configuration file.
+#
+# mode: IEEE 802.11 operation mode
+# 0 = infrastructure (Managed) mode, i.e., associate with an AP (default)
+# 1 = IBSS (ad-hoc, peer-to-peer)
+# Note: IBSS can only be used with key_mgmt NONE (plaintext and static

WEP)
+# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has
+# to be set to 2 for IBSS. WPA-None requires following network block options:
+# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+# both), and psk must also be set.
+#
+# proto: list of accepted protocols
+# WPA = WPA/IEEE 802.11i/D3.0
+# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
+# If not set, this defaults to: WPA RSN
+#
+# key_mgmt: list of accepted authenticated key management protocols
+# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
+# WPA-EAP = WPA using EAP authentication (this can use an external
+#    program, e.g., Xsupplicant, for IEEE 802.1X EAP Authentication
+# IEEE8021X = IEEE 802.1X using EAP authentication and (optionally)

dynamically

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#    generated WEP keys
+# NONE = WPA is not used; plaintext or static WEP could be used
+# If not set, this defaults to: WPA-PSK WPA-EAP
+#
+# auth_alg: list of allowed IEEE 802.11 authentication algorithms
+# OPEN = Open System authentication (required for WPA/WPA2)
+# SHARED = Shared Key authentication (requires static WEP keys)
+# LEAP = LEAP/Network EAP (only used with LEAP)
+# If not set, automatic selection is used (Open System with LEAP enabled

if

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# LEAP is allowed as one of the EAP methods).
+#
+# pairwise: list of accepted pairwise (unicast) ciphers for WPA
+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# NONE = Use only Group Keys (deprecated, should not be included if APs

support

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+#    pairwise keys)
+# If not set, this defaults to: CCMP TKIP
+#
+# group: list of accepted group (broadcast/multicast) ciphers for WPA
+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
+# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE 802.11]
+# If not set, this defaults to: CCMP TKIP WEP104 WEP40
+#
+# psk: WPA preshared key; 256-bit pre-shared key
+# The key used in WPA-PSK mode can be entered either as 64 hex-digits,

i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
+# generated using the passphrase and SSID). ASCII passphrase must be

between

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# 8 and 63 characters (inclusive).
+# This field is not needed, if WPA-EAP is used.
+# Note: Separate tool, wpa_passphrase, can be used to generate 256-bit

keys

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
+# startup and reconfiguration time can be optimized by generating the PSK

only

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# only when the passphrase or SSID has actually changed.
+#
+# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
+# Dynamic WEP key required for non-WPA mode
+# bit0 (1): require dynamically generated unicast WEP key
+# bit1 (2): require dynamically generated broadcast WEP key
+#    (3 = require both keys; default)
+# Note: When using wired authentication, eapol_flags must be set to 0 for

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+# authentication to be completed successfully.
+#
+# proactive_key_caching:
+# Enable/disable opportunistic PMKSA caching for WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#
+# wep_key0..3: Static WEP key (ASCII in double quotation, e.g. "abcde" or
+# hex without quotation, e.g., 0102030405)
+# wep_tx_keyidx: Default WEP key index (TX) (0..3)
+#
+# peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e

DLS) is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +11 -0
+# allowed. This is only used with RSN/WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#peerkey=1
+#
+# Following fields are only used with internal EAP implementation.
+# eap: space-separated list of accepted EAP methods
+#    MD5 = EAP-MD5 (unsecure and does not generate keying material ->
+#                    cannot be used with WPA; to be used as a Phase 2 method
+#                    with EAP-PEAP or EAP-TTLS)
+#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA; to

be used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       OTP = EAP-OTP (cannot be used separately with WPA; to be used
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       GTC = EAP-GTC (cannot be used separately with WPA; to be used
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#    TLS = EAP-TLS (client and server certificate)
+#    PEAP = EAP-PEAP (with tunnelled EAP authentication)
+#    TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
+#                     authentication)
+#    If not set, all compiled in methods are allowed.
+#
+# identity: Identity string for EAP
+# anonymous_identity: Anonymous identity string for EAP (to be used as

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    unencrypted identity with EAP types that support different tunnelled
+#    identity, e.g., EAP-TTLS)
+# password: Password string for EAP
+# ca_cert: File path to CA certificate file (PEM/DER). This file can have

one

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    or more trusted CA certificates. If ca_cert and ca_path are not
+#    included, server certificate will not be verified. This is insecure

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    a trusted CA certificate should always be configured when using
+#    EAP-TLS/TTLS/PEAP. Full path should be used since working directory

may

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#    change when wpa_supplicant is run in the background.
+#    On Windows, trusted CA certificates can be loaded from the system
+#    certificate store by setting this to cert_store://<name>, e.g.,
+#    ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
+#    Note that when running wpa_supplicant as an application, the user
+#    certificate store (My user account) is used, whereas computer store
+#    (Computer account) is used when running wpasvc as a service.
+# ca_path: Directory path for CA certificate files (PEM). This path may
+#    contain multiple CA certificates in OpenSSL format. Common use for

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#    is to point to system trusted CA list which is often installed into
+#    directory like /etc/ssl/certs. If configured, these certificates are
+#    added to the list of trusted CAs. ca_cert may also be included in

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#    case, but it is not required.
+# client_cert: File path to client certificate file (PEM/DER)
+#    Full path should be used since working directory may change when
+#    wpa_supplicant is run in the background.
+#    Alternatively, a named configuration blob can be used by setting

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    to blob://<blob name>.
+# private_key: File path to client private key file (PEM/DER/PFX)
+#    When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
+#    commented out. Both the private key and certificate will be read

from
+# the PKCS#12 file in this case. Full path should be used since
working

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+#    directory may change when wpa_supplicant is run in the background.
+#    Windows certificate store can be used by leaving client_cert out and
+#    configuring private_key in one of the following formats:
+#    cert://substring_to_match
+#    hash://certificate_thumbprint_in_hex
+#    for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
+#    Note that when running wpa_supplicant as an application, the user
+#    certificate store (My user account) is used, whereas computer store
+#    (Computer account) is used when running wpasvc as a service.
+#    Alternatively, a named configuration blob can be used by setting

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left out, this

will be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#    asked through control interface)
+# dh_file: File path to DH/DSA parameters file (in PEM format)
+#    This is an optional configuration file for setting parameters for an
+#    ephemeral DH key exchange. In most cases, the default RSA
+#    authentication does not use this configuration. However, it is

possible
+# setup RSA to use ephemeral DH key exchange. In addition, ciphers
with

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#    DSA keys always use ephemeral DH keys. This can be used to achieve
+#    forward secrecy. If the file is in DSA parameters format, it will be
+#    automatically converted into DH params.
+# subject_match: Substring to be matched against the subject of the
+#    authentication server certificate. If this string is set, the server
+#    sertificate is only accepted if it contains this string in the

subject.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#    The subject string is in following format:
+#    /C=US/ST=CA/L=San Francisco/CN=Test AS/[email protected]
+# altsubject_match: Semicolon separated string of entries to be matched

against
+# the alternative subject name of the authentication server
certificate.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +11 -0
+#    If this string is set, the server sertificate is only accepted if it
+#    contains one of the entries in an alternative subject name extension.
+#    altSubjectName string is in following format: TYPE:VALUE
+#    Example: EMAIL:[email protected]
+#    Example: DNS:server.example.com;DNS:server2.example.com
+#    Following types are supported: EMAIL, DNS, URI
+# phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
+#    (string with field-value pairs, e.g., "peapver=0" or
+#    "peapver=1 peaplabel=1")
+#    'peapver' can be used to force which PEAP version (0 or 1) is used.
+#    'peaplabel=1' can be used to force new label, "client PEAP

encryption",

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#    to be used during key derivation when PEAPv1 or newer. Most existing
+#    PEAPv1 implementation seem to be using the old label, "client EAP
+#    encryption", and wpa_supplicant is now using that as the default

value.
+# Some servers, e.g., Radiator, may require peaplabel=1 configuration
to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    interoperate with PEAPv1; see eap_testing.txt for more details.
+#    'peap_outer_success=0' can be used to terminate PEAP authentication

on

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+#    tunneled EAP-Success. This is required with some RADIUS servers that
+#    implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
+#    Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
+#    include_tls_length=1 can be used to force wpa_supplicant to include
+#    TLS Message Length field in all TLS messages even if they are not
+#    fragmented.
+#    sim_min_num_chal=3 can be used to configure EAP-SIM to require three
+#    challenges (by default, it accepts 2 or 3)
+# phase2: Phase2 (inner authentication with TLS tunnel) parameters
+#    (string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
+# Following certificate/private key fields are used in inner Phase2
+# authentication when using EAP-TTLS or EAP-PEAP.
+# ca_cert2: File path to CA certificate file. This file can have one or

more

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    trusted CA certificates. If ca_cert2 and ca_path2 are not included,
+#    server certificate will not be verified. This is insecure and a

trusted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#    CA certificate should always be configured.
+# ca_path2: Directory path for CA certificate files (PEM)
+# client_cert2: File path to client certificate file
+# private_key2: File path to client private key file
+# private_key2_passwd: Password for private key file
+# dh_file2: File path to DH/DSA parameters file (in PEM format)
+# subject_match2: Substring to be matched against the subject of the
+#    authentication server certificate.
+# altsubject_match2: Substring to be matched against the alternative

subject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +23 -0
+#    name of the authentication server certificate.
+#
+# fragment_size: Maximum EAP fragment size in bytes (default 1398).
+#    This value limits the fragment size for EAP methods that support
+#    fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set
+#    small enough to make the EAP messages fit in MTU of the network
+#    interface used for EAPOL. The default value is suitable for most
+#    cases.
+#
+# EAP-PSK variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex format
+# nai: user NAI
+#
+# EAP-PAX variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex format
+#
+# EAP-SAKE variables:
+# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in hex format
+#    (this is concatenation of Root-Secret-A and Root-Secret-B)
+# nai: user NAI (PEERID)
+#
+# EAP-GPSK variables:
+# eappsk: Pre-shared key in hex format (at least 128 bits, i.e., 32 hex

digits)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will need to be

able

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#    to create this file and write updates to it when PAC is being
+#    provisioned or refreshed. Full path to the file should be used since
+#    working directory may change when wpa_supplicant is run in the
+#    background. Alternatively, a named configuration blob can be used by
+#    setting this to blob://<blob name>
+# phase1: fast_provisioning=1 option enables in-line provisioning of EAP-

FAST

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#    credentials (PAC)
+#
+# wpa_supplicant supports number of "EAP workarounds" to work around
+# interoperability issues with incorrectly behaving authentication

servers.
+# These are enabled by default because some of the issues are present in large

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# number of authentication servers. Strict EAP conformance mode can be
+# configured by disabling workarounds with eap_workaround=0.
+
+# Example blocks:
+
+# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid

ciphers

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+network={
+     ssid="simple"
+     psk="very secret passphrase"
+     priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for APs that

reject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +20 -0
+# broadcast SSID)
+network={
+     ssid="second ssid"
+     scan_ssid=1
+     psk="very secret passphrase"
+     priority=2
+}
+
+# Only WPA-PSK is used. Any valid cipher combination is accepted.
+network={
+     ssid="example"
+     proto=WPA
+     key_mgmt=WPA-PSK
+     pairwise=CCMP TKIP
+     group=CCMP TKIP WEP104 WEP40
+     psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
+     priority=2
+}
+
+# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that used

WEP104

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +17 -0
+# or WEP40 as the group cipher will not be accepted.
+network={
+     ssid="example"
+     proto=RSN
+     key_mgmt=WPA-EAP
+     pairwise=CCMP TKIP
+     group=CCMP TKIP
+     eap=TLS
+     identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     priority=1
+}
+
+# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the new

peaplabel

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +14 -0
+# (e.g., Radiator)
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=PEAP
+     identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     phase1="peaplabel=1"
+     phase2="auth=MSCHAPV2"
+     priority=10
+}
+
+# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity for

the
+# unencrypted use. Real identity is sent only within an encrypted TLS tunnel.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the

unencrypted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# use. Real identity is sent only within an encrypted TLS tunnel.
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     phase2="auth=MSCHAPV2"
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for outer and

inner

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +18 -0
+# authentication.
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     # Phase1 / outer authentication
+     anonymous_identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     # Phase 2 / inner authentication
+     phase2="autheap=TLS"
+     ca_cert2="/etc/cert/ca2.pem"
+     client_cert2="/etc/cer/user.pem"
+     private_key2="/etc/cer/user.prv"
+     private_key2_passwd="password"
+     priority=2
+}
+
+# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as pairwise

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+# group cipher.
+network={
+     ssid="example"
+     bssid=00:11:22:33:44:55
+     proto=WPA RSN
+     key_mgmt=WPA-PSK WPA-EAP
+     pairwise=CCMP
+     group=CCMP
+     psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
+}
+
+# Special characters in SSID, so use hex string. Default to WPA-PSK, WPA-

EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# and all valid ciphers.
+network={
+     ssid=00010203
+     psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA)

using

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +120 -0
+# EAP-TLS for authentication and key generation; require both unicast and
+# broadcast WEP keys.
+network={
+     ssid="1x-test"
+     key_mgmt=IEEE8021X
+     eap=TLS
+     identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     eapol_flags=3
+}
+
+
+# LEAP with dynamic WEP keys
+network={
+     ssid="leap-example"
+     key_mgmt=IEEE8021X
+     eap=LEAP
+     identity="user"
+     password="foobar"
+}
+
+# Plaintext connection (no WPA, no IEEE 802.1X)
+network={
+     ssid="plaintext-test"
+     key_mgmt=NONE
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X)
+network={
+     ssid="static-wep-test"
+     key_mgmt=NONE
+     wep_key0="abcde"
+     wep_key1=0102030405
+     wep_key2="1234567890123"
+     wep_tx_keyidx=0
+     priority=5
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared Key
+# IEEE 802.11 authentication
+network={
+     ssid="static-wep-test2"
+     key_mgmt=NONE
+     wep_key0="abcde"
+     wep_key1=0102030405
+     wep_key2="1234567890123"
+     wep_tx_keyidx=0
+     priority=5
+     auth_alg=SHARED
+}
+
+
+# IBSS/ad-hoc network with WPA-None/TKIP.
+network={
+     ssid="test adhoc"
+     mode=1
+     proto=WPA
+     key_mgmt=WPA-NONE
+     pairwise=NONE
+     group=TKIP
+     psk="secret passphrase"
+}
+
+
+# Catch all example that allows more or less all configuration modes
+network={
+     ssid="example"
+     scan_ssid=1
+     key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
+     pairwise=CCMP TKIP
+     group=CCMP TKIP WEP104 WEP40
+     psk="very secret passphrase"
+     eap=TTLS PEAP TLS
+     identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     phase1="peaplabel=0"
+}
+
+# Example of EAP-TLS with smartcard (openssl engine)
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TLS
+     proto=RSN
+     pairwise=CCMP TKIP
+     group=CCMP TKIP
+     identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+
+     engine=1
+
+     # The engine configured here must be available. Look at
+     # OpenSSL engine support in the global section.
+     # The key available through the engine must be the private key
+     # matching the client certificate configured above.
+
+     # use the opensc engine
+     #engine_id="opensc"
+     #key_id="45"
+
+     # use the pkcs11 engine
+     engine_id="pkcs11"
+     key_id="id_45"
+
+     # Optional PIN configuration; this can be left out and PIN will be
+     # asked through the control interface
+     pin="1234"
+}
+
+# Example configuration showing how to use an inlined blob as a CA

certificate

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +22 -0
+# data instead of using external file
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="blob://exampleblob"
+     priority=20
+}
+
+blob-base64-exampleblob={
+SGVsbG8gV29ybGQhCg==
+}
+
+
+# Wildcard match for SSID (plaintext APs only). This example select any
+# open AP regardless of its SSID.
+network={
+     key_mgmt=NONE
+}
(quoted diff) +0 -0

git/wpa_supplicant.conf-sane b/recipes/wpa-supplicant/wpa-supplicant- git/wpa_supplicant.conf-sane
new file mode 100755
index 0000000..c91ffe0

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf-sane new file +7 -0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
recipes/wpa- renamed from recipes/wpa-supplicant/wpa-supplicant_git.bb +0 -0

supplicant/wpa-supplicant_git.bb
new file mode 100755
index 0000000..5292a2c

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
@@ -0,0 +1,103 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+BUGTRACKER = "http://hostap.epitest.fi/bugz/"
+SECTION = "network"
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM =

"file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+ file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738
\
+ file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136ea ce747260e"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+
+SRCREV = "b8fb017272ed4794339978c9fbc0e74571a44728"
+PR = "r0"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+DEPENDS = "gnutls dbus libnl openssl ${@base_contains("COMBINED_FEATURES",

"madwifi", "madwifi-ng", "",d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +23 -0
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+SRC_URI = "git://w1.fi/srv/git/hostap.git;protocol=git \
+           file://defconfig \
+           file://defaults-sane \
+           file://wpa-supplicant.sh \
+           file://wpa_supplicant.conf \
+           file://wpa_supplicant.conf-sane \
+           file://99_wpa_supplicant"
+
+S = "${WORKDIR}/git/wpa_supplicant"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+FILES_${PN} += " /usr/share/dbus-1/system-services/*"
+
+do_configure () {
+     install -m 0755 ${WORKDIR}/defconfig .config
+     echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+     echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+     echo "LIBS_p += -L${STAGING_LIBDIR}" >> .config
+     if [ "${@base_contains('COMBINED_FEATURES', 'madwifi', 1, 0, d)}" =

"1" ]; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +17 -0
+             echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+             echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
+     fi
+}
+
+do_compile () {
+     make
+}
+
+do_install () {
+     install -d ${D}${sbindir}
+     install -m 755 wpa_supplicant ${D}${sbindir}
+     install -m 755 wpa_passphrase ${D}${sbindir}
+     install -m 755 wpa_cli        ${D}${sbindir}
+
+     install -d ${D}${docdir}/wpa_supplicant
+     install -m 644 README ${WORKDIR}/wpa_supplicant.conf

${D}${docdir}/wpa_supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+
+     install -d ${D}${sysconfdir}/default
+     install -m 600 ${WORKDIR}/defaults-sane

${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane
${D}${sysconfdir}/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
+
+     install -d ${D}${sysconfdir}/network/if-pre-up.d/
+     install -d ${D}${sysconfdir}/network/if-post-down.d/
+     install -d ${D}${sysconfdir}/network/if-down.d/
+     install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
+     install -m 755 ${WORKDIR}/wpa-supplicant.sh

${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +4 -0
+     cd ${D}${sysconfdir}/network/ && \
+     ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
+
+     if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config || grep -q

^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+             install -d ${D}/${sysconfdir}/dbus-1/system.d
+             install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf

${D}/${sysconfdir}/dbus-1/system.d

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+             install -d ${D}/${datadir}/dbus-1/system-services
+             if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config; then
+                     sed -i -e s:/sbin:${sbindir}:g

${S}/dbus/fi.epitest.hostap.WPASupplicant.service
+ install -m 644
${S}/dbus/fi.epitest.hostap.WPASupplicant.service ${D}/${datadir}/dbus- 1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+             fi
+             if grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then
+                     sed -i -e s:/sbin:${sbindir}:g

${S}/dbus/fi.w1.wpa_supplicant1.service
+ install -m 644 ${S}/dbus/fi.w1.wpa_supplicant1.service
${D}/${datadir}/dbus-1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+             fi
+     fi
+
+     install -d ${D}/etc/default/volatiles
+     install -m 0644 ${WORKDIR}/99_wpa_supplicant

${D}/etc/default/volatiles

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+}
+
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the misleading

'arm' on armv5te builds

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi',

'${MACHINE_ARCH}', '${MY_ARCH}', d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -1
+
+pkg_postinst_wpa-supplicant () {
+     # can't do this offline
+     if [ "x$D" != "x" ]; then
+             exit 1
+     fi
+
+     DBUSPID=`pidof dbus-daemon`
+
+     if [ "x$DBUSPID" != "x" ]; then
+             /etc/init.d/dbus-1 reload
+     fi
+}
--

1.7.0.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

I will improve the commit message to clear this confusion.

The version built from the git is actually version 0.8.x which is a new family of versions and include new features (like wifi-direct) used by new mac80211 versions. It would look proper if we include a 0.7.inc file in it.

As this is currently the only 0.8 version I think it is better to wait until 0.8 comes out as an official zip and than create such an include file as well for 0.8

Quoted 1,865 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, April 13, 2011 7:54 AM
To: [email protected]
Cc: Reizer, Eyal
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf

Of

Quoted 6 lines

Eyal Reizer
Sent: Tuesday, April 12, 2011 4:54 PM
To: [email protected]
Cc: Reizer, Eyal
Subject: [oe] [PATCH] wpa-supplicant: Build from git sources

Need a more detailed commit message. Can you re-use the wpa- supplicant-0.7.inc include file? 90% of this stuff seems the same.

Quoted 5 lines
---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422

++++++++++++

Quoted 9 lines
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690
++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defaults-

Quoted 2 lines

sane

 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defconfig

Review

Quoted 9 lines
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa-
supplicant.sh
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant_git.bb
(quoted diff) +0 -0

git/99_wpa_supplicant

Quoted 14 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file mode 100755
index 0000000..6ff4dd8

recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file +1 -0
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +0 -0
new file mode 100755
index 0000000..67c4cbd

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane line 2

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +2 -0
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified in

config)

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +6 -0
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +0 -0
new file mode 100755
index 0000000..d9be1a8

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 3

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
@@ -0,0 +1,422 @@
+# Example wpa_supplicant build time configuration
+#
+# This file lists the configuration options that are used when

building

Quoted 2 lines

the
+# hostapd binary. All lines starting with # are ignored.

Configuration

Quoted 2 lines

option
+# lines must be commented out complete, if they are not to be

included,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and

LIBS

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines

can also
+# be modified from here. In most cases, these lines should use += in order not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have

installed

Quoted 8 lines

OpenSSL

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or GnuTLS in non-default location
+#CFLAGS += -I/usr/local/openssl/include
+#LIBS += -L/usr/local/openssl/lib
+
+# Some Red Hat versions seem to include kerberos header files from

OpenSSL, but
+# the kerberos files are not in the default include path. Following

line

Quoted 9 lines

can be

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# used to fix build issues on such systems (krb5.h not found).
+#CFLAGS += -I/usr/include/kerberos
+
+# Example configuration for various cross-compilation platforms
+
+#### sveasoft (e.g., for Linksys WRT54G)

######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 30

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS += -I../src/include -I../../src/router/openssl/include
+#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib -lssl

+######################################################################
###

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 39

Quoted 11 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### openwrt (e.g., for Linksys WRT54G)

#######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include \
+#  -I../WRT54GS/release/src/include
+#LIBS = -lssl

+######################################################################
###

Quoted 39 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +38 -0
+
+CC=$(CROSS_COMPILE)gcc
+#CFLAGS += -DCONFIG_LIBNL20
+#CPPFLAGS += -DCONFIG_LIBNL20
+#LIBS += -L$(NFSROOT)/lib -lnl
+#LIBS_p += -L$(NFSROOT)/lib
+#LIBDIR = $(NFSROOT)/lib
+#BINDIR = $(NFSROOT)/usr/sbin
+
+CONFIG_WAPI=y
+CONFIG_LIBNL20=y
+NEED_BGSCAN=y
+CONFIG_BGSCAN_LEARN=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for Agere driver
+#CONFIG_DRIVER_HERMES=y
+# Change include directories to match with the local setup
+#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
+#CFLAGS += -I../../include/wireless
+
+# Driver interface for madwifi driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_MADWIFI=y
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
+
+# Driver interface for ndiswrapper
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_NDISWRAPPER=y
+
+# Driver interface for Atmel driver
+#CONFIG_DRIVER_ATMEL=y
+
+# Driver interface for old Broadcom driver
+# Please note that the newer Broadcom driver ("hybrid Linux driver")
Quoted 2 lines

supports
+# Linux wireless extensions and does not need (or even work) with

the old

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# driver wrapper. Use CONFIG_DRIVER_WEXT=y with that driver.
+#CONFIG_DRIVER_BROADCOM=y
+# Example path for wlioctl.h; change to match your configuration
+#CFLAGS += -I/opt/WRT54GS/release/src/include
+
+# Driver interface for Intel ipw2100/2200 driver

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_IPW=y
+
+# Driver interface for Ralink driver
+#CONFIG_DRIVER_RALINK=y
+
+# Driver interface for generic Linux wireless extensions
+CONFIG_DRIVER_WEXT=y
+
+# Driver interface for Linux drivers using the nl80211 kernel

interface

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#LIBS_p += -L/usr/local/lib
+#LIBS_c += -L/usr/local/lib
+
+# Driver interface for Windows NDIS
+#CONFIG_DRIVER_NDIS=y
+#CFLAGS += -I/usr/include/w32api/ddk
+#LIBS += -L/usr/local/lib
+# For native build using mingw
+#CONFIG_NATIVE_WINDOWS=y
+# Additional directories for cross-compilation on Linux host for

mingw

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

target

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CFLAGS += -I/opt/mingw/mingw32/include/ddk
+#LIBS += -L/opt/mingw/mingw32/lib
+#CC=mingw32-gcc
+# By default, driver_ndis uses WinPcap for low-level operations.

This can

Quoted 2 lines

be
+# replaced with the following option which replaces WinPcap calls

with

Quoted 2 lines

NDISUIO.
+# However, this requires that WZC is disabled (net stop wzcsvc)

before

Quoted 17 lines

starting

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# wpa_supplicant.
+# CONFIG_USE_NDISUIO=y
+
+# Driver interface for development testing
+#CONFIG_DRIVER_TEST=y
+
+# Include client MLME (management frame processing) for test driver
+# This can be used to test MLME operations in hostapd with the test

interface.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# space.
+#CONFIG_CLIENT_MLME=y
+
+# Driver interface for wired Ethernet drivers
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for the Broadcom RoboSwitch family

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_DRIVER_ROBOSWITCH=y
+
+# Driver interface for no driver (e.g., WPS ER only)
+#CONFIG_DRIVER_NONE=y
+
+# Solaris libraries
+#LIBS += -lsocket -ldlpi -lnsl
+#LIBS_c += -lsocket
+
+# Enable IEEE 802.1X Supplicant (automatically included if any EAP

method

Quoted 12 lines

is

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +11 -0
+# included)
+CONFIG_IEEE8021X_EAPOL=y
+
+# EAP-MD5
+CONFIG_EAP_MD5=y
+
+# EAP-MSCHAPv2
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-TLS
+CONFIG_EAP_TLS=y

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+
+# EAL-PEAP
+CONFIG_EAP_PEAP=y
+
+# EAP-TTLS
+CONFIG_EAP_TTLS=y
+
+# EAP-FAST
+# Note: Default OpenSSL package does not include support for all the
+# functionality needed for EAP-FAST. If EAP-FAST is enabled with

OpenSSL,

Quoted 44 lines

+# the OpenSSL library must be patched (openssl-0.9.8d-tls- extensions.patch)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +41 -0
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# EAP-GTC
+CONFIG_EAP_GTC=y
 
+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
+#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA
+#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support (experimental)
+#CONFIG_EAP_TNC=y

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate

file

Quoted 7 lines

from

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g., with

openssl

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +1 -0
+# engine.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g,

wpa_cli:

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not included

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in wpa_cli.
+# When building a wpa_cli binary for distribution, please note that

these

Quoted 1 line

+# libraries are licensed under GPL and as such, BSD license may not

apply

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

for

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to

stdout.

Quoted 1 line

+# This can be used to reduce the size of the wpa_supplicant

considerably

Quoted 1 line

+# if debugging code is not needed. The size reduction can be around

35%

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant,

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

save

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes WPA2

code

Quoted 2 lines

to
+# save about 1 kB in code size when building only WPA-Personal (no

EAP

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

support)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing support

for

Quoted 1 line

+# converting ASCII passphrases into PSK. If this functionality is

removed,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# PSK can only be configured as the 64-octet hexstring (e.g., from
+# wpa_passphrase). This saves about 0.5 kB in code size.
+#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size by

about 1

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# This can be used if ap_scan=1 mode is never enabled.
+#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the

configuration

Quoted 2 lines

file
+# path is given on command line, not here; this option is just used

to

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#  select the backend that allows configuration files to be used)
+# winreg = Windows registry (see win_example.reg for an example)
+CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the

configuration
+# file to be updated based on runtime configuration changes). The

runtime

Quoted 1 line

+# configuration can still be changed, the changes are just not going

to

Quoted 2 lines

be
+# persistent over restarts. This option can be used to reduce code

size

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size by

about 1.5

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from registry)
+# main_none = Very basic example (development use only)
+#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific

functions

Quoted 29 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +25 -0
+# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
+CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE

802.11w/D1.0
+# draft and is subject to change since the standard has not yet been finalized.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +1 -0
+# Driver support is also needed for IEEE 802.11w.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also CONFIG_GNUTLS_EXTRA)
+# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-

TTLSv1.

Quoted 1 line

+# You need CONFIG_TLS=gnutls for this to have any effect. Please

note

Quoted 2 lines

that
+# even though the core GnuTLS library is released under LGPL, this

extra

Quoted 1 line

+# library uses GPL and as such, the terms of GPL apply to the

combination

Quoted 1 line

+# of wpa_supplicant and GnuTLS if this option is enabled. BSD

license may

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# apply for distribution of the resulting binary.
+#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and include

paths

Quoted 2 lines

are
+# needed for LibTomMath. Alternatively, an integrated, minimal

version of

Quoted 1 line

+# LibTomMath can be used. See beginning of libtommath.c for details

on

Quoted 10 lines

benefits

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH
+#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the internal
Quoted 2 lines

LibTomMath
+# can be configured to include faster routines for exptmod, sqr, and

div

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# speed up DH and RSA calculation considerably
+#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into

wpa_supplicant/wpasvc.

Quoted 1 line

+# This is only for Windows builds and requires WMI-related header

files

Quoted 7 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# WbemUuid.Lib from Platform SDK even when building with MinGW.
+#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface
+#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared

libraries.

Quoted 1 line

+# When this option is enabled, each EAP method can be either

included

Quoted 3 lines

+# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
+# Dynamic EAP methods are build as shared objects (eap_*.so) and

they

Quoted 2 lines

need to
+# be loaded in the beginning of the wpa_supplicant configuration

file

Quoted 1 line

+# (see load_dynamic_eap parameter in the example file) before being

used

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in the

main

Quoted 2 lines

program
+# and in order to be able to use dynamic EAP methods using these

parts,

Quoted 2 lines

the
+# main program must have been build with the EAP method enabled (=y

or

Quoted 4 lines

=dyn).
+# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as dynamic libraries
+# unless at least one of them was included in the main build to

force

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

inclusion
+# of the shared code. Similarly, at least one of EAP-SIM/AKA must be included

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# in the main build to be able to load these methods dynamically.
+#
+# Please also note that using dynamic libraries will increase the

total

Quoted 2 lines

binary
+# size. Thus, it may not be the best option for targets that have

limited

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file (/tmp/wpa_supplicant-

log-

Quoted 10 lines

#.txt)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege separation' for

details)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by delaying

Michael
+# MIC error reports by a random amount of time between 0 and 60

seconds

Review

Quoted 22 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other registrations and

reports

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# incorrect use with a backtrace of call (or allocation) location.
+#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for the

backtraces

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz
(quoted diff) +0 -0

supplicant.sh

Quoted 17 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file mode 100755
index 0000000..5c9e5d3

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +11 -0
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+
+WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
+WPA_SUP_PNAME="wpa_supplicant"
+WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
+WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
+
+VERBOSITY=0
+
+

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh line 21

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+if [ -s "$IF_WPA_CONF" ]; then
+   WPA_SUP_CONF="-c $IF_WPA_CONF"
+else
+   exit 0
+fi
+
+if [ ! -x "$WPA_SUP_BIN" ]; then
+
+   if [ "$VERBOSITY" = "1" ]; then
+           echo "$WPA_SUP_PNAME: binaries not executable or missing

from

Quoted 26 lines

$WPA_SUP_BIN"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +13 -0
+   fi
+
+   exit 1
+fi
+
+if [ "$MODE" = "start" ] ; then
+   # driver type of interface, defaults to wext when undefined
+   if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
+           IF_WPA_DRIVER=$(cat "/etc/wpa_supplicant/driver.$IFACE")
+   elif [ -z "$IF_WPA_DRIVER" ]; then
+
+           if [ "$VERBOSITY" = "1" ]; then
+                   echo "$WPA_SUP_PNAME: wpa-driver not provided, using

\"wext\""

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+           fi
+
+           IF_WPA_DRIVER="wext"
+   fi
+
+   # if we have passed the criteria, start wpa_supplicant
+   if [ -n "$WPA_SUP_CONF" ]; then
+
+           if [ "$VERBOSITY" = "1" ]; then
+                   echo "$WPA_SUP_PNAME: $WPA_SUP_BIN $WPA_SUP_OPTIONS

$WPA_SUP_CONF -D $IF_WPA_DRIVER"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+           fi
+
+           start-stop-daemon --start --quiet \
+                   --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --

pidfile

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 10 lines

$WPA_SUP_PIDFILE \

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+                   --  $WPA_SUP_OPTIONS $WPA_SUP_CONF -D $IF_WPA_DRIVER
+   fi
+
+   # if the interface socket exists, then wpa_supplicant was invoked

successfully

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+   if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+
+           if [ "$VERBOSITY" = "1" ]; then
+                   echo "$WPA_SUP_PNAME: ctrl_interface socket located

at

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 13 lines

$WPA_COMMON_CTRL_IFACE/$IFACE"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +12 -0
+           fi
+
+           exit 0
+
+   fi
+
+elif [ "$MODE" = "stop" ]; then
+
+   if [ -f "$WPA_SUP_PIDFILE" ]; then
+
+           if [ "$VERBOSITY" = "1" ]; then
+                   echo "$WPA_SUP_PNAME: terminating $WPA_SUP_PNAME

daemon"

Review

Quoted 18 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +17 -0
+           fi
+
+           start-stop-daemon --stop --quiet \
+                   --name $WPA_SUP_PNAME --pidfile $WPA_SUP_PIDFILE
+
+           if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+                   rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
+           fi
+
+           if [ -f "$WPA_SUP_PIDFILE" ]; then
+                   rm -f $WPA_SUP_PIDFILE
+           fi
+   fi
+
+fi
+
+exit 0
(quoted diff) +0 -0

git/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file mode 100755
index 0000000..f0c993d

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +1 -0
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file

###############################

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This file describes configuration file format and lists all

available

Quoted 2 lines

option.
+# Please also take a look at simpler configuration examples in

'examples'

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# subdirectory.
+#
+# Empty lines and lines starting with # are ignored
+
+# NOTE! This file may contain password information and should

probably be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 11 lines

made

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# readable only by root user on multiuser systems.
+
+# Note: All file paths in this configuration file should use full

(absolute,
+# not relative to working directory) path in order to allow working directory
+# to be changed. This can happen if wpa_supplicant is run in the background.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+
+# Whether to allow wpa_supplicant to update (overwrite)

configuration

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This option can be used to allow wpa_supplicant to overwrite

configuration
+# file whenever configuration is changed (e.g., new network block is added with
+# wpa_cli or wpa_gui, or a password is changed). This is required

for

Quoted 10 lines

+# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
+# Please note that overwriting configuration file will remove the comments from

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# it.
+#update_config=1
+
+# global configuration (shared by all network blocks)
+#
+# Parameters for the control interface. If this is specified,
Quoted 2 lines

wpa_supplicant
+# will open a control interface that is available for external

programs

Quoted 6 lines

to
+# manage wpa_supplicant. The meaning of this string depends on which control
+# interface mechanism is used. For all cases, the existance of this parameter
+# in configuration is used to determine whether the control

interface is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# enabled.
+#
+# For UNIX domain sockets (default on Linux and BSD): This is a

directory

Quoted 2 lines

that
+# will be created for UNIX domain sockets for listening to requests

from

Quoted 3 lines

+# external programs (CLI/GUI, etc.) for status information and configuration.
+# The socket file will be named based on the interface name, so

multiple

Quoted 1 line

+# wpa_supplicant processes can be run at the same time if more than

one

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# interface is used.
+# /var/run/wpa_supplicant is the recommended directory for sockets

and by

Quoted 1 line

+# default, wpa_cli will use it when trying to connect with

wpa_supplicant.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# Access control for the control interface can be configured by

setting

Quoted 2 lines

the
+# directory to allow only members of a group to use sockets. This

way, it

Quoted 4 lines

is
+# possible to run wpa_supplicant as root (since it needs to change network
+# configuration and open raw sockets) and still allow GUI/CLI

components

Quoted 2 lines

to be
+# run as non-root users. However, since the control interface can be

used

Quoted 2 lines

to
+# change the network configuration, this access needs to be

protected in

Quoted 2 lines

many
+# cases. By default, wpa_supplicant is configured to use gid 0

(root). If

Quoted 2 lines

you
+# want to allow non-root users to use the control interface, add a

new

Quoted 2 lines

group
+# and change this value to match with that group. Add users that

should

Quoted 2 lines

have
+# control interface access to this group. If this variable is

commented

Quoted 2 lines

out or
+# not included in the configuration file, group will not be changed

from

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# value it got by default when the directory or socket was created.
+#
+# When configuring both the directory and group, use following

format:

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# DIR=/var/run/wpa_supplicant GROUP=wheel
+# DIR=/var/run/wpa_supplicant GROUP=0
+# (group can be either group name or gid)
+#
+# For UDP connections (default on Windows): The value will be

ignored.

Quoted 2 lines

This
+# variable is just used to select that the control interface is to

be

Quoted 6 lines

created.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# The value can be set to, e.g., udp (ctrl_interface=udp)
+#
+# For Windows Named Pipe: This value can be used to set the security

descriptor
+# for controlling access to the control interface. Security

descriptor

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

can be
+# set using Security Descriptor String Format (see
http://msdn.microsoft.com/

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# library/default.asp?url=/library/en-us/secauthz/security/
+# security_descriptor_string_format.asp). The descriptor string

needs to

Quoted 2 lines

be
+# prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would set

an

Quoted 2 lines

empty
+# DACL (which will reject all connections). See README-Windows.txt

for

Quoted 9 lines

more

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# information about SDDL string format.
+#
+ctrl_interface=/var/run/wpa_supplicant
+
+# IEEE 802.1X/EAPOL version
+# wpa_supplicant is implemented based on IEEE Std 802.1X-2004 which

defines
+# EAPOL version 2. However, there are many APs that do not handle

the new

Quoted 1 line

+# version number correctly (they seem to drop the frames

completely). In

Quoted 2 lines

order
+# to make wpa_supplicant interoperate with these APs, the version

number

Quoted 2 lines

is set
+# to 1 by default. This configuration value can be used to set it to

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

new

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# version (2).
+eapol_version=1
+
+# AP scanning/selection
+# By default, wpa_supplicant requests driver to perform AP scanning

and

Quoted 2 lines

then
+# uses the scan results to select a suitable AP. Another alternative

is

Quoted 9 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# allow the driver to take care of AP scanning and selection and use
+# wpa_supplicant just to process EAPOL frames based on IEEE 802.11

association

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# information from the driver.
+# 1: wpa_supplicant initiates scanning and AP selection
+# 0: driver takes care of scanning, AP selection, and IEEE 802.11

association
+# parameters (e.g., WPA IE generation); this mode can also be

used

Quoted 2 lines

with
+# non-WPA drivers when using IEEE 802.1X mode; do not try to

associate

Quoted 2 lines

with
+# APs (i.e., external program needs to control association). This

mode

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

must

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and SSID

(but

Quoted 2 lines

not
+# BSSID); this can be used, e.g., with ndiswrapper and NDIS

drivers to

Quoted 1 line

+# enable operation with hidden SSIDs and optimized roaming; in

this

Quoted 2 lines

mode,
+# the network blocks in the configuration file are tried one by

one

Quoted 2 lines

until
+# the driver reports successful association; each network block

should

Quoted 2 lines

have
+# explicit security policy (i.e., only one option in the lists)

for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#    key_mgmt, pairwise, group, proto variables
+ap_scan=1
+
+# EAP fast re-authentication
+# By default, fast re-authentication is enabled for all EAP methods

that

Quoted 1 line

+# support it. This variable can be used to disable fast re-

authentication.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# Normally, there is no need to disable this.
+fast_reauth=1
+
+# OpenSSL Engine support
+# These options can be used to load OpenSSL engines.
+# The two engines that are supported currently are shown below:
+# They are both from the opensc project (http://www.opensc.org/)
+# By default no engines are loaded.
+# make the opensc engine available
+#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
+# make the pkcs11 engine available
+#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
+# configure the path to the pkcs11 module required by the pkcs11

engine

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
+
+# Dynamic EAP methods
+# If EAP methods were built dynamically as shared object files, they

need

Quoted 2 lines

to be
+# loaded here before being used in the network blocks. By default,

EAP

Quoted 2 lines

methods
+# are included statically in the build, so these lines are not

needed

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
+
+# Driver interface parameters
+# This field can be used to configure arbitrary driver interace

parameters. The
+# format is specific to the selected driver interface. This field is

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# in most cases.
+#driver_param="field=value"
+
+# Maximum lifetime for PMKSA in seconds; default 43200
+#dot11RSNAConfigPMKLifetime=43200
+# Threshold for reauthentication (percentage of PMK lifetime);

default 70

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#dot11RSNAConfigPMKReauthThreshold=70
+# Timeout for security association negotiation in seconds; default

60

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#dot11RSNAConfigSATimeout=60
+
+# network block
+#
+# Each network (usually AP's sharing the same SSID) is configured as

a

Quoted 2 lines

separate
+# block in this configuration file. The network blocks are in

preference

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 12 lines

order

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# (the first match is used).
+#
+# network block fields:
+#
+# disabled:
+#  0 = this network can be used (default)
+#  1 = this network block is disabled (can be enabled through

ctrl_iface,

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This value

is

Quoted 2 lines

passed
+# to external action script through wpa_cli as WPA_ID_STR

environment

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  variable to make it easier to do network specific configuration.
+#
+# ssid: SSID (mandatory); either as an ASCII string with double

quotation

Quoted 7 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  as hex string; network name
+#
+# scan_ssid:
+#  0 = do not scan this SSID with specific Probe Request frames

(default)
+# 1 = scan with SSID-specific Probe Request frames (this can be

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

to
+# find APs that do not accept broadcast SSID or use multiple
SSIDs;
+# this will add latency to scanning, so enable this only when
needed)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# bssid: BSSID (optional); if set, this network block is used only

when

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  associating with the AP using the configured BSSID
+#
+# priority: priority group (integer)
+# By default, all networks will get same priority group (0). If some

of

Quoted 2 lines

the
+# networks are more desirable, this field can be used to change the

order

Quoted 2 lines

in
+# which wpa_supplicant goes through the networks when selecting a

BSS.

Quoted 6 lines

The
+# priority groups will be iterated in decreasing priority (i.e., the larger the
+# priority value, the sooner the network is matched against the scan results).
+# Within each priority group, networks will be selected based on

security

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# policy, signal strength, etc.
+# Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode

are

Quoted 2 lines

not
+# using this priority to select the order for scanning. Instead,

they try

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# networks in the order that used in the configuration file.
+#
+# mode: IEEE 802.11 operation mode
+# 0 = infrastructure (Managed) mode, i.e., associate with an AP

(default)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# 1 = IBSS (ad-hoc, peer-to-peer)
+# Note: IBSS can only be used with key_mgmt NONE (plaintext and

static

Quoted 2 lines

WEP)
+# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition,

ap_scan

Quoted 4 lines

has
+# to be set to 2 for IBSS. WPA-None requires following network block options:
+# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP,

but

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# both), and psk must also be set.
+#
+# proto: list of accepted protocols
+# WPA = WPA/IEEE 802.11i/D3.0
+# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for

RSN)

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# If not set, this defaults to: WPA RSN
+#
+# key_mgmt: list of accepted authenticated key management protocols
+# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
+# WPA-EAP = WPA using EAP authentication (this can use an external
+#  program, e.g., Xsupplicant, for IEEE 802.1X EAP Authentication
+# IEEE8021X = IEEE 802.1X using EAP authentication and (optionally)

dynamically

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#  generated WEP keys
+# NONE = WPA is not used; plaintext or static WEP could be used
+# If not set, this defaults to: WPA-PSK WPA-EAP
+#
+# auth_alg: list of allowed IEEE 802.11 authentication algorithms
+# OPEN = Open System authentication (required for WPA/WPA2)
+# SHARED = Shared Key authentication (requires static WEP keys)
+# LEAP = LEAP/Network EAP (only used with LEAP)
+# If not set, automatic selection is used (Open System with LEAP

enabled

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

if

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# LEAP is allowed as one of the EAP methods).
+#
+# pairwise: list of accepted pairwise (unicast) ciphers for WPA
+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# NONE = Use only Group Keys (deprecated, should not be included if

APs

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

support

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  pairwise keys)
+# If not set, this defaults to: CCMP TKIP
+#
+# group: list of accepted group (broadcast/multicast) ciphers for

WPA

Quoted 1 line

+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
+# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE

802.11]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# If not set, this defaults to: CCMP TKIP WEP104 WEP40
+#
+# psk: WPA preshared key; 256-bit pre-shared key
+# The key used in WPA-PSK mode can be entered either as 64 hex-

digits,

Quoted 2 lines

i.e.,
+# 32 bytes or as an ASCII passphrase (in which case, the real PSK

will be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

+# generated using the passphrase and SSID). ASCII passphrase must be between

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# 8 and 63 characters (inclusive).
+# This field is not needed, if WPA-EAP is used.
+# Note: Separate tool, wpa_passphrase, can be used to generate 256-

bit

Quoted 2 lines

keys
+# from ASCII passphrase. This process uses lot of CPU and

wpa_supplicant

Quoted 1 line

+# startup and reconfiguration time can be optimized by generating

the PSK

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

only

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# only when the passphrase or SSID has actually changed.
+#
+# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
+# Dynamic WEP key required for non-WPA mode
+# bit0 (1): require dynamically generated unicast WEP key
+# bit1 (2): require dynamically generated broadcast WEP key
+#  (3 = require both keys; default)
+# Note: When using wired authentication, eapol_flags must be set to

0 for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication to be completed successfully.
+#
+# proactive_key_caching:
+# Enable/disable opportunistic PMKSA caching for WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#
+# wep_key0..3: Static WEP key (ASCII in double quotation, e.g.

"abcde" or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# hex without quotation, e.g., 0102030405)
+# wep_tx_keyidx: Default WEP key index (TX) (0..3)
+#
+# peerkey: Whether PeerKey negotiation for direct links (IEEE

802.11e

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

DLS) is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+# allowed. This is only used with RSN/WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#peerkey=1
+#
+# Following fields are only used with internal EAP implementation.
+# eap: space-separated list of accepted EAP methods
+#  MD5 = EAP-MD5 (unsecure and does not generate keying material ->
+#                  cannot be used with WPA; to be used as a Phase 2

method

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#                  with EAP-PEAP or EAP-TTLS)
+#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with WPA;

to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

be used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#          as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       OTP = EAP-OTP (cannot be used separately with WPA; to be

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#          as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       GTC = EAP-GTC (cannot be used separately with WPA; to be

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#          as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#  TLS = EAP-TLS (client and server certificate)
+#  PEAP = EAP-PEAP (with tunnelled EAP authentication)
+#  TTLS = EAP-TTLS (with tunnelled EAP or PAP/CHAP/MSCHAP/MSCHAPV2
+#                   authentication)
+#  If not set, all compiled in methods are allowed.
+#
+# identity: Identity string for EAP
+# anonymous_identity: Anonymous identity string for EAP (to be used

as

Quoted 2 lines

the
+# unencrypted identity with EAP types that support different

tunnelled

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  identity, e.g., EAP-TTLS)
+# password: Password string for EAP
+# ca_cert: File path to CA certificate file (PEM/DER). This file can

have

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

one

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  or more trusted CA certificates. If ca_cert and ca_path are not
+#  included, server certificate will not be verified. This is

insecure

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  a trusted CA certificate should always be configured when using
+#  EAP-TLS/TTLS/PEAP. Full path should be used since working

directory

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

may

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#  change when wpa_supplicant is run in the background.
+#  On Windows, trusted CA certificates can be loaded from the system
+#  certificate store by setting this to cert_store://<name>, e.g.,
+#  ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
+#  Note that when running wpa_supplicant as an application, the user
+#  certificate store (My user account) is used, whereas computer

store

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  (Computer account) is used when running wpasvc as a service.
+# ca_path: Directory path for CA certificate files (PEM). This path

may

Quoted 1 line

+# contain multiple CA certificates in OpenSSL format. Common use

for

Quoted 2 lines

this
+# is to point to system trusted CA list which is often installed

into

Quoted 1 line

+# directory like /etc/ssl/certs. If configured, these certificates

are

Quoted 12 lines

+# added to the list of trusted CAs. ca_cert may also be included in that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#  case, but it is not required.
+# client_cert: File path to client certificate file (PEM/DER)
+#  Full path should be used since working directory may change when
+#  wpa_supplicant is run in the background.
+#  Alternatively, a named configuration blob can be used by setting

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  to blob://<blob name>.
+# private_key: File path to client private key file (PEM/DER/PFX)
+#  When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be
+#  commented out. Both the private key and certificate will be read
Quoted 4 lines

from
+# the PKCS#12 file in this case. Full path should be used since working
+# directory may change when wpa_supplicant is run in the

background.

Quoted 1 line

+# Windows certificate store can be used by leaving client_cert out

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#  configuring private_key in one of the following formats:
+#  cert://substring_to_match
+#  hash://certificate_thumbprint_in_hex
+#  for example: private_key="hash://63093aa9c47f56ae88334c7b65a4"
+#  Note that when running wpa_supplicant as an application, the user
+#  certificate store (My user account) is used, whereas computer

store

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  (Computer account) is used when running wpasvc as a service.
+#  Alternatively, a named configuration blob can be used by setting

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left out,

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

will be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  asked through control interface)
+# dh_file: File path to DH/DSA parameters file (in PEM format)
+#  This is an optional configuration file for setting parameters for

an

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  ephemeral DH key exchange. In most cases, the default RSA
+#  authentication does not use this configuration. However, it is

possible
+# setup RSA to use ephemeral DH key exchange. In addition, ciphers with
+# DSA keys always use ephemeral DH keys. This can be used to

achieve

Quoted 1 line

+# forward secrecy. If the file is in DSA parameters format, it will

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  automatically converted into DH params.
+# subject_match: Substring to be matched against the subject of the
+#  authentication server certificate. If this string is set, the

server

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

+# sertificate is only accepted if it contains this string in the subject.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  The subject string is in following format:
+#  /C=US/ST=CA/L=San Francisco/CN=Test

AS/[email protected]

Quoted 1 line

+# altsubject_match: Semicolon separated string of entries to be

matched

Quoted 4 lines

against
+# the alternative subject name of the authentication server certificate.
+# If this string is set, the server sertificate is only accepted if

it

Quoted 1 line

+# contains one of the entries in an alternative subject name

extension.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+#  altSubjectName string is in following format: TYPE:VALUE
+#  Example: EMAIL:[email protected]
+#  Example: DNS:server.example.com;DNS:server2.example.com
+#  Following types are supported: EMAIL, DNS, URI
+# phase1: Phase1 (outer authentication, i.e., TLS tunnel) parameters
+#  (string with field-value pairs, e.g., "peapver=0" or
+#  "peapver=1 peaplabel=1")
+#  'peapver' can be used to force which PEAP version (0 or 1) is

used.

Quoted 3 lines

+# 'peaplabel=1' can be used to force new label, "client PEAP encryption",
+# to be used during key derivation when PEAPv1 or newer. Most

existing

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  PEAPv1 implementation seem to be using the old label, "client EAP
+#  encryption", and wpa_supplicant is now using that as the default

value.
+# Some servers, e.g., Radiator, may require peaplabel=1

configuration

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  interoperate with PEAPv1; see eap_testing.txt for more details.
+#  'peap_outer_success=0' can be used to terminate PEAP

authentication

Quoted 2 lines

on
+# tunneled EAP-Success. This is required with some RADIUS servers

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
+#  Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
+#  include_tls_length=1 can be used to force wpa_supplicant to

include

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  TLS Message Length field in all TLS messages even if they are not
+#  fragmented.
+#  sim_min_num_chal=3 can be used to configure EAP-SIM to require

three

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#  challenges (by default, it accepts 2 or 3)
+# phase2: Phase2 (inner authentication with TLS tunnel) parameters
+#  (string with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-

PEAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
+# Following certificate/private key fields are used in inner Phase2
+# authentication when using EAP-TTLS or EAP-PEAP.
+# ca_cert2: File path to CA certificate file. This file can have one

or

Quoted 2 lines

more
+# trusted CA certificates. If ca_cert2 and ca_path2 are not

included,

Quoted 12 lines

+# server certificate will not be verified. This is insecure and a trusted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#  CA certificate should always be configured.
+# ca_path2: Directory path for CA certificate files (PEM)
+# client_cert2: File path to client certificate file
+# private_key2: File path to client private key file
+# private_key2_passwd: Password for private key file
+# dh_file2: File path to DH/DSA parameters file (in PEM format)
+# subject_match2: Substring to be matched against the subject of the
+#  authentication server certificate.
+# altsubject_match2: Substring to be matched against the alternative

subject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#  name of the authentication server certificate.
+#
+# fragment_size: Maximum EAP fragment size in bytes (default 1398).
+#  This value limits the fragment size for EAP methods that support
+#  fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be

set

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+#  small enough to make the EAP messages fit in MTU of the network
+#  interface used for EAPOL. The default value is suitable for most
+#  cases.
+#
+# EAP-PSK variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI
+#
+# EAP-PAX variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#
+# EAP-SAKE variables:
+# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#  (this is concatenation of Root-Secret-A and Root-Secret-B)
+# nai: user NAI (PEERID)
+#
+# EAP-GPSK variables:
+# eappsk: Pre-shared key in hex format (at least 128 bits, i.e., 32

hex

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

digits)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will need

to be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

able

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  to create this file and write updates to it when PAC is being
+#  provisioned or refreshed. Full path to the file should be used

since

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  working directory may change when wpa_supplicant is run in the
+#  background. Alternatively, a named configuration blob can be used

by

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#  setting this to blob://<blob name>
+# phase1: fast_provisioning=1 option enables in-line provisioning of

EAP-

Quoted 7 lines

FAST

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#  credentials (PAC)
+#
+# wpa_supplicant supports number of "EAP workarounds" to work around
+# interoperability issues with incorrectly behaving authentication

servers.
+# These are enabled by default because some of the issues are

present in

Quoted 2 lines

large
+# number of authentication servers. Strict EAP conformance mode can

be

Quoted 20 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# configured by disabling workarounds with eap_workaround=0.
+
+# Example blocks:
+
+# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid

ciphers

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+network={
+   ssid="simple"
+   psk="very secret passphrase"
+   priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for APs that

reject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# broadcast SSID)
+network={
+   ssid="second ssid"
+   scan_ssid=1
+   psk="very secret passphrase"
+   priority=2

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 452

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+}
+
+# Only WPA-PSK is used. Any valid cipher combination is accepted.
+network={
+   ssid="example"
+   proto=WPA
+   key_mgmt=WPA-PSK
+   pairwise=CCMP TKIP
+   group=CCMP TKIP WEP104 WEP40
+
      psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac

7bb

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+   priority=2
+}
+
+# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that

used

Quoted 8 lines

WEP104

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# or WEP40 as the group cipher will not be accepted.
+network={
+   ssid="example"
+   proto=RSN
+   key_mgmt=WPA-EAP
+   pairwise=CCMP TKIP
+   group=CCMP TKIP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+   eap=TLS
+   identity="[email protected]"
+   ca_cert="/etc/cert/ca.pem"
+   client_cert="/etc/cert/user.pem"
+   private_key="/etc/cert/user.prv"
+   private_key_passwd="password"
+   priority=1
+}
+
+# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the

new

Quoted 5 lines

peaplabel

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# (e.g., Radiator)
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+   eap=PEAP
+   identity="[email protected]"
+   password="foobar"
+   ca_cert="/etc/cert/ca.pem"
+   phase1="peaplabel=1"
+   phase2="auth=MSCHAPV2"
+   priority=10
+}
+
+# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity

for

Quoted 2 lines

the
+# unencrypted use. Real identity is sent only within an encrypted

TLS

Quoted 36 lines

tunnel.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP
+   eap=TTLS
+   identity="[email protected]"
+   anonymous_identity="[email protected]"
+   password="foobar"
+   ca_cert="/etc/cert/ca.pem"
+   priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the

unencrypted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# use. Real identity is sent only within an encrypted TLS tunnel.
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP
+   eap=TTLS
+   identity="[email protected]"
+   anonymous_identity="[email protected]"
+   password="foobar"
+   ca_cert="/etc/cert/ca.pem"
+   phase2="auth=MSCHAPV2"
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for outer and

inner

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication.
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP
+   eap=TTLS
+   # Phase1 / outer authentication
+   anonymous_identity="[email protected]"
+   ca_cert="/etc/cert/ca.pem"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+   # Phase 2 / inner authentication
+   phase2="autheap=TLS"
+   ca_cert2="/etc/cert/ca2.pem"
+   client_cert2="/etc/cer/user.pem"
+   private_key2="/etc/cer/user.prv"
+   private_key2_passwd="password"
+   priority=2
+}
+
+# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as

pairwise

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 539

Quoted 10 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+# group cipher.
+network={
+   ssid="example"
+   bssid=00:11:22:33:44:55
+   proto=WPA RSN
+   key_mgmt=WPA-PSK WPA-EAP
+   pairwise=CCMP
+   group=CCMP
+
      psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac

7bb

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# Special characters in SSID, so use hex string. Default to WPA-PSK,

WPA-

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 546

Quoted 5 lines

EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# and all valid ciphers.
+network={
+   ssid=00010203
+
      psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1

e1f

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no

WPA)

Quoted 2 lines

using
+# EAP-TLS for authentication and key generation; require both

unicast and

Quoted 33 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +33 -0
+# broadcast WEP keys.
+network={
+   ssid="1x-test"
+   key_mgmt=IEEE8021X
+   eap=TLS
+   identity="[email protected]"
+   ca_cert="/etc/cert/ca.pem"
+   client_cert="/etc/cert/user.pem"
+   private_key="/etc/cert/user.prv"
+   private_key_passwd="password"
+   eapol_flags=3
+}
+
+
+# LEAP with dynamic WEP keys
+network={
+   ssid="leap-example"
+   key_mgmt=IEEE8021X
+   eap=LEAP
+   identity="user"
+   password="foobar"
+}
+
+# Plaintext connection (no WPA, no IEEE 802.1X)
+network={
+   ssid="plaintext-test"
+   key_mgmt=NONE
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X)
+network={
+   ssid="static-wep-test"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+   key_mgmt=NONE
+   wep_key0="abcde"
+   wep_key1=0102030405
+   wep_key2="1234567890123"
+   wep_tx_keyidx=0
+   priority=5
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared

Key

Quoted 61 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +61 -0
+# IEEE 802.11 authentication
+network={
+   ssid="static-wep-test2"
+   key_mgmt=NONE
+   wep_key0="abcde"
+   wep_key1=0102030405
+   wep_key2="1234567890123"
+   wep_tx_keyidx=0
+   priority=5
+   auth_alg=SHARED
+}
+
+
+# IBSS/ad-hoc network with WPA-None/TKIP.
+network={
+   ssid="test adhoc"
+   mode=1
+   proto=WPA
+   key_mgmt=WPA-NONE
+   pairwise=NONE
+   group=TKIP
+   psk="secret passphrase"
+}
+
+
+# Catch all example that allows more or less all configuration modes
+network={
+   ssid="example"
+   scan_ssid=1
+   key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
+   pairwise=CCMP TKIP
+   group=CCMP TKIP WEP104 WEP40
+   psk="very secret passphrase"
+   eap=TTLS PEAP TLS
+   identity="[email protected]"
+   password="foobar"
+   ca_cert="/etc/cert/ca.pem"
+   client_cert="/etc/cert/user.pem"
+   private_key="/etc/cert/user.prv"
+   private_key_passwd="password"
+   phase1="peaplabel=0"
+}
+
+# Example of EAP-TLS with smartcard (openssl engine)
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP
+   eap=TLS
+   proto=RSN
+   pairwise=CCMP TKIP
+   group=CCMP TKIP
+   identity="[email protected]"
+   ca_cert="/etc/cert/ca.pem"
+   client_cert="/etc/cert/user.pem"
+
+   engine=1
+
+   # The engine configured here must be available. Look at
+   # OpenSSL engine support in the global section.
+   # The key available through the engine must be the private key
+   # matching the client certificate configured above.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+
+   # use the opensc engine
+   #engine_id="opensc"
+   #key_id="45"
+
+   # use the pkcs11 engine
+   engine_id="pkcs11"
+   key_id="id_45"
+
+   # Optional PIN configuration; this can be left out and PIN will

be

Quoted 14 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+   # asked through the control interface
+   pin="1234"
+}
+
+# Example configuration showing how to use an inlined blob as a CA

certificate

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# data instead of using external file
+network={
+   ssid="example"
+   key_mgmt=WPA-EAP
+   eap=TTLS
+   identity="[email protected]"
+   anonymous_identity="[email protected]"
+   password="foobar"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+   ca_cert="blob://exampleblob"
+   priority=20
+}
+
+blob-base64-exampleblob={
+SGVsbG8gV29ybGQhCg==
+}
+
+
+# Wildcard match for SSID (plaintext APs only). This example select

any

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf-

Quoted 11 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# open AP regardless of its SSID.
+network={
+   key_mgmt=NONE
+}
(quoted diff) +0 -0

git/wpa_supplicant.conf-sane b/recipes/wpa-supplicant/wpa-supplicant- git/wpa_supplicant.conf-sane
new file mode 100755
index 0000000..c91ffe0

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf- new file +0 -0

sane

Review

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf- new file +7 -0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
(quoted diff) +0 -0

b/recipes/wpa-

Quoted 12 lines

supplicant/wpa-supplicant_git.bb
new file mode 100755
index 0000000..5292a2c

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
@@ -0,0 +1,103 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+BUGTRACKER = "http://hostap.epitest.fi/bugz/"
+SECTION = "network"
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM =
Quoted 2 lines

"file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+

file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738

Quoted 3 lines

\
+

file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f13 6ea

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 9 lines

ce747260e"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+
+SRCREV = "b8fb017272ed4794339978c9fbc0e74571a44728"
+PR = "r0"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+DEPENDS = "gnutls dbus libnl openssl

${@base_contains("COMBINED_FEATURES",

Quoted 14 lines

"madwifi", "madwifi-ng", "",d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -0
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+SRC_URI = "git://w1.fi/srv/git/hostap.git;protocol=git \
+           file://defconfig \
+           file://defaults-sane \
+           file://wpa-supplicant.sh \
+           file://wpa_supplicant.conf \
+           file://wpa_supplicant.conf-sane \
+           file://99_wpa_supplicant"
+
+S = "${WORKDIR}/git/wpa_supplicant"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +10 -0
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+FILES_${PN} += " /usr/share/dbus-1/system-services/*"
+
+do_configure () {
+   install -m 0755 ${WORKDIR}/defconfig .config
+   echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+   echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+   echo "LIBS_p += -L${STAGING_LIBDIR}" >> .config
+   if [ "${@base_contains('COMBINED_FEATURES', 'madwifi', 1, 0, d)}"

=

Quoted 32 lines

"1" ]; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +17 -0
+           echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+           echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
+   fi
+}
+
+do_compile () {
+   make
+}
+
+do_install () {
+   install -d ${D}${sbindir}
+   install -m 755 wpa_supplicant ${D}${sbindir}
+   install -m 755 wpa_passphrase ${D}${sbindir}
+   install -m 755 wpa_cli        ${D}${sbindir}
+
+   install -d ${D}${docdir}/wpa_supplicant
+   install -m 644 README ${WORKDIR}/wpa_supplicant.conf

${D}${docdir}/wpa_supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+
+   install -d ${D}${sysconfdir}/default
+   install -m 600 ${WORKDIR}/defaults-sane

${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane
${D}${sysconfdir}/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
+
+   install -d ${D}${sysconfdir}/network/if-pre-up.d/
+   install -d ${D}${sysconfdir}/network/if-post-down.d/
+   install -d ${D}${sysconfdir}/network/if-down.d/
+   install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
+   install -m 755 ${WORKDIR}/wpa-supplicant.sh

${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+   cd ${D}${sysconfdir}/network/ && \
+   ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-

supplicant

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+
+   if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config || grep -q

^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+           install -d ${D}/${sysconfdir}/dbus-1/system.d
+           install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf

${D}/${sysconfdir}/dbus-1/system.d

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+           install -d ${D}/${datadir}/dbus-1/system-services
+           if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config; then
+                   sed -i -e s:/sbin:${sbindir}:g
Quoted 3 lines

${S}/dbus/fi.epitest.hostap.WPASupplicant.service
+ install -m 644
${S}/dbus/fi.epitest.hostap.WPASupplicant.service

${D}/${datadir}/dbus-

Quoted 6 lines

1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+           fi
+           if grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then
+                   sed -i -e s:/sbin:${sbindir}:g

${S}/dbus/fi.w1.wpa_supplicant1.service
+ install -m 644

${S}/dbus/fi.w1.wpa_supplicant1.service

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines

${D}/${datadir}/dbus-1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+           fi
+   fi
+
+   install -d ${D}/etc/default/volatiles
+   install -m 0644 ${WORKDIR}/99_wpa_supplicant

${D}/etc/default/volatiles

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+}
+
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the

misleading

Quoted 21 lines

'arm' on armv5te builds

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi',

'${MACHINE_ARCH}', '${MY_ARCH}', d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -1
+
+pkg_postinst_wpa-supplicant () {
+   # can't do this offline
+   if [ "x$D" != "x" ]; then
+           exit 1
+   fi
+
+   DBUSPID=`pidof dbus-daemon`
+
+   if [ "x$DBUSPID" != "x" ]; then
+           /etc/init.d/dbus-1 reload
+   fi
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-

devel

#3 lore raw
In reply to Maupin, Chase

I have also checked the option of using 0.7.inc the git recipe.
However there are a couple of differences like in the do_configure section and also in SRC_URI (which uses a git address instead of a zip).
I would need to make significant modification to the include file as well as to both 0.7.3 and The git recipe to be able to use the same include file which I don't think are worth the effort, and adds a risk of breaking the 0.7.3 recipe.

Quoted 2,030 lines

-----Original Message-----
From: Reizer, Eyal
Sent: Wednesday, April 13, 2011 9:20 AM
To: Maupin, Chase; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

I will improve the commit message to clear this confusion.

The version built from the git is actually version 0.8.x which is a new family of versions and include new features (like wifi-direct) used by new mac80211 versions.
It would look proper if we include a 0.7.inc file in it.

As this is currently the only 0.8 version I think it is better to wait until 0.8 comes out as an official zip and than create such an include file as well for 0.8

Quoted 10 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, April 13, 2011 7:54 AM
To: [email protected]
Cc: Reizer, Eyal
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On

Behalf

Quoted 40 lines

Of

Quoted 6 lines

Eyal Reizer
Sent: Tuesday, April 12, 2011 4:54 PM
To: [email protected]
Cc: Reizer, Eyal
Subject: [oe] [PATCH] wpa-supplicant: Build from git sources

Need a more detailed commit message. Can you re-use the wpa- supplicant-0.7.inc include file? 90% of this stuff seems the same.

Quoted 5 lines
---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422

++++++++++++

Quoted 9 lines
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690
++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defaults-

Quoted 2 lines

sane

 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defconfig

Review

Quoted 9 lines
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa-
supplicant.sh
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant_git.bb
(quoted diff) +0 -0

git/99_wpa_supplicant

Quoted 8 lines

Review

Quoted 8 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file mode 100755
index 0000000..6ff4dd8

recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file +1 -0
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
(quoted diff) +0 -0

sane

Quoted 29 lines

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane line 2

Quoted 8 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file mode 100755
index 0000000..67c4cbd

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +2 -0
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified in

config)

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +6 -0
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +0 -0
new file mode 100755
index 0000000..d9be1a8

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 3

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
@@ -0,0 +1,422 @@
+# Example wpa_supplicant build time configuration
+#
+# This file lists the configuration options that are used when

building

Quoted 2 lines

the
+# hostapd binary. All lines starting with # are ignored.

Configuration

Quoted 10 lines
Quoted 2 lines

option
+# lines must be commented out complete, if they are not to be

included,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and

LIBS

Quoted 2 lines

can also
+# be modified from here. In most cases, these lines should use +=

in

Quoted 6 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

order not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have

installed

Quoted 8 lines
Quoted 8 lines

OpenSSL

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or GnuTLS in non-default location
+#CFLAGS += -I/usr/local/openssl/include
+#LIBS += -L/usr/local/openssl/lib
+
+# Some Red Hat versions seem to include kerberos header files from

OpenSSL, but
+# the kerberos files are not in the default include path.

Following

Quoted 16 lines

line

Quoted 9 lines

can be

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# used to fix build issues on such systems (krb5.h not found).
+#CFLAGS += -I/usr/include/kerberos
+
+# Example configuration for various cross-compilation platforms
+
+#### sveasoft (e.g., for Linksys WRT54G)

######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 30

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS += -I../src/include -I../../src/router/openssl/include
+#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib -lssl

+######################################################################

Quoted 13 lines

###

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 39

Quoted 11 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### openwrt (e.g., for Linksys WRT54G)

#######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include \
+#        -I../WRT54GS/release/src/include
+#LIBS = -lssl

+######################################################################

Quoted 32 lines

###

Quoted 31 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +30 -0
+
+CC=$(CROSS_COMPILE)gcc
+#CFLAGS += -DCONFIG_LIBNL20
+#CPPFLAGS += -DCONFIG_LIBNL20
+#LIBS += -L$(NFSROOT)/lib -lnl
+#LIBS_p += -L$(NFSROOT)/lib
+#LIBDIR = $(NFSROOT)/lib
+#BINDIR = $(NFSROOT)/usr/sbin
+
+CONFIG_WAPI=y
+CONFIG_LIBNL20=y
+NEED_BGSCAN=y
+CONFIG_BGSCAN_LEARN=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for Agere driver
+#CONFIG_DRIVER_HERMES=y
+# Change include directories to match with the local setup
+#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
+#CFLAGS += -I../../include/wireless
+
+# Driver interface for madwifi driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_MADWIFI=y
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
+
+# Driver interface for ndiswrapper
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_NDISWRAPPER=y
+
+# Driver interface for Atmel driver
+#CONFIG_DRIVER_ATMEL=y
+
+# Driver interface for old Broadcom driver
+# Please note that the newer Broadcom driver ("hybrid Linux

driver")

Quoted 20 lines
Quoted 2 lines

supports
+# Linux wireless extensions and does not need (or even work) with

the old

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# driver wrapper. Use CONFIG_DRIVER_WEXT=y with that driver.
+#CONFIG_DRIVER_BROADCOM=y
+# Example path for wlioctl.h; change to match your configuration
+#CFLAGS += -I/opt/WRT54GS/release/src/include
+
+# Driver interface for Intel ipw2100/2200 driver

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_IPW=y
+
+# Driver interface for Ralink driver
+#CONFIG_DRIVER_RALINK=y
+
+# Driver interface for generic Linux wireless extensions
+CONFIG_DRIVER_WEXT=y
+
+# Driver interface for Linux drivers using the nl80211 kernel

interface

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros

driver)

Quoted 26 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +13 -0
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+#LIBS_p += -L/usr/local/lib
+#LIBS_c += -L/usr/local/lib
+
+# Driver interface for Windows NDIS
+#CONFIG_DRIVER_NDIS=y
+#CFLAGS += -I/usr/include/w32api/ddk
+#LIBS += -L/usr/local/lib
+# For native build using mingw
+#CONFIG_NATIVE_WINDOWS=y
+# Additional directories for cross-compilation on Linux host for

mingw

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

target

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CFLAGS += -I/opt/mingw/mingw32/include/ddk
+#LIBS += -L/opt/mingw/mingw32/lib
+#CC=mingw32-gcc
+# By default, driver_ndis uses WinPcap for low-level operations.

This can

Quoted 2 lines

be
+# replaced with the following option which replaces WinPcap calls

with

Quoted 2 lines

NDISUIO.
+# However, this requires that WZC is disabled (net stop wzcsvc)

before

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines

starting

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# wpa_supplicant.
+# CONFIG_USE_NDISUIO=y
+
+# Driver interface for development testing
+#CONFIG_DRIVER_TEST=y
+
+# Include client MLME (management frame processing) for test

driver

Quoted 1 line
Quoted 1 line

+# This can be used to test MLME operations in hostapd with the

test

Quoted 32 lines
Quoted 8 lines

interface.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# space.
+#CONFIG_CLIENT_MLME=y
+
+# Driver interface for wired Ethernet drivers
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for the Broadcom RoboSwitch family

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_DRIVER_ROBOSWITCH=y
+
+# Driver interface for no driver (e.g., WPS ER only)
+#CONFIG_DRIVER_NONE=y
+
+# Solaris libraries
+#LIBS += -lsocket -ldlpi -lnsl
+#LIBS_c += -lsocket
+
+# Enable IEEE 802.1X Supplicant (automatically included if any EAP

method

Quoted 13 lines

is

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +12 -0
+# included)
+CONFIG_IEEE8021X_EAPOL=y
+
+# EAP-MD5
+CONFIG_EAP_MD5=y
+
+# EAP-MSCHAPv2
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-TLS
+CONFIG_EAP_TLS=y
+
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# EAL-PEAP
+CONFIG_EAP_PEAP=y
+
+# EAP-TTLS
+CONFIG_EAP_TTLS=y
+
+# EAP-FAST
+# Note: Default OpenSSL package does not include support for all

the

Quoted 37 lines
Quoted 1 line

+# functionality needed for EAP-FAST. If EAP-FAST is enabled with

OpenSSL,

Quoted 35 lines

+# the OpenSSL library must be patched (openssl-0.9.8d-tls- extensions.patch)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +32 -0
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# EAP-GTC
+CONFIG_EAP_GTC=y
 
+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
+#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA
+#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support

(experimental)

Quoted 30 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 11 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +11 -0
+#CONFIG_EAP_TNC=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate

file

Quoted 7 lines

from

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g., with

openssl

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +1 -0
+# engine.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g,

wpa_cli:

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not

included

Quoted 6 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in

wpa_cli.

Quoted 1 line
Quoted 1 line

+# When building a wpa_cli binary for distribution, please note

that

Quoted 2 lines

these

Quoted 1 line

+# libraries are licensed under GPL and as such, BSD license may

not

Quoted 10 lines

apply

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

for

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to

stdout.

Quoted 1 line

+# This can be used to reduce the size of the wpa_supplicant

considerably

Quoted 1 line

+# if debugging code is not needed. The size reduction can be

around

Quoted 11 lines

35%

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant,

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

save

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes

WPA2

Quoted 20 lines

code

Quoted 2 lines

to
+# save about 1 kB in code size when building only WPA-Personal (no

EAP

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

support)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing support

for

Quoted 1 line

+# converting ASCII passphrases into PSK. If this functionality is

removed,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# PSK can only be configured as the 64-octet hexstring (e.g., from
+# wpa_passphrase). This saves about 0.5 kB in code size.
+#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size by

about 1

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# This can be used if ap_scan=1 mode is never enabled.
+#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the

configuration

Quoted 2 lines

file
+# path is given on command line, not here; this option is

just used

Quoted 2 lines

to

Quoted 1 line

+# select the backend that allows configuration files to be

used)

Quoted 8 lines
Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# winreg = Windows registry (see win_example.reg for an example)
+CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the

configuration
+# file to be updated based on runtime configuration changes). The

runtime

Quoted 1 line

+# configuration can still be changed, the changes are just not

going

Quoted 40 lines

to

Quoted 2 lines

be
+# persistent over restarts. This option can be used to reduce code

size

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size by

about 1.5

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from registry)
+# main_none = Very basic example (development use only)
+#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific

functions

Quoted 19 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +19 -0
+# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
Quoted 8 lines
Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
+CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE

802.11w/D1.0
+# draft and is subject to change since the standard has not yet

been

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines

finalized.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# Driver support is also needed for IEEE 802.11w.
+#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also

CONFIG_GNUTLS_EXTRA)

Quoted 21 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-

TTLSv1.

Quoted 1 line

+# You need CONFIG_TLS=gnutls for this to have any effect. Please

note

Quoted 2 lines

that
+# even though the core GnuTLS library is released under LGPL, this

extra

Quoted 1 line

+# library uses GPL and as such, the terms of GPL apply to the

combination

Quoted 1 line

+# of wpa_supplicant and GnuTLS if this option is enabled. BSD

license may

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# apply for distribution of the resulting binary.
+#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and include

paths

Quoted 4 lines
Quoted 2 lines

are
+# needed for LibTomMath. Alternatively, an integrated, minimal

version of

Quoted 1 line

+# LibTomMath can be used. See beginning of libtommath.c for

details

Quoted 11 lines

on

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

benefits

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH
+#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the

internal

Quoted 2 lines
Quoted 2 lines

LibTomMath
+# can be configured to include faster routines for exptmod, sqr,

and

Quoted 28 lines

div

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# speed up DH and RSA calculation considerably
+#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into

wpa_supplicant/wpasvc.

Quoted 1 line

+# This is only for Windows builds and requires WMI-related header

files

Quoted 7 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# WbemUuid.Lib from Platform SDK even when building with MinGW.
+#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface
+#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared

libraries.

Quoted 1 line

+# When this option is enabled, each EAP method can be either

Quoted 9 lines

included

Quoted 3 lines

+# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
+# Dynamic EAP methods are build as shared objects (eap_*.so) and

they

Quoted 2 lines

need to
+# be loaded in the beginning of the wpa_supplicant configuration

file

Quoted 1 line

+# (see load_dynamic_eap parameter in the example file) before

being

Quoted 11 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in the

main

Quoted 2 lines

program
+# and in order to be able to use dynamic EAP methods using these

parts,

Quoted 2 lines

the
+# main program must have been build with the EAP method enabled

(=y

Quoted 3 lines

or

Quoted 2 lines

=dyn).
+# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as

dynamic

Quoted 5 lines
Quoted 2 lines

libraries
+# unless at least one of them was included in the main build to

force

Quoted 2 lines

inclusion
+# of the shared code. Similarly, at least one of EAP-SIM/AKA must

be

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

included

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# in the main build to be able to load these methods dynamically.
+#
+# Please also note that using dynamic libraries will increase the

total

Quoted 2 lines

binary
+# size. Thus, it may not be the best option for targets that have

Quoted 8 lines

limited

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file

(/tmp/wpa_supplicant-

Quoted 5 lines

log-

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

#.txt)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege separation'

for

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

details)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by

delaying

Quoted 7 lines
Quoted 2 lines

Michael
+# MIC error reports by a random amount of time between 0 and 60

seconds

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other registrations

and

Quoted 142 lines

Review

Quoted 18 lines

reports

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# incorrect use with a backtrace of call (or allocation) location.
+#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for the

backtraces

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz
(quoted diff) +0 -0

supplicant.sh

Quoted 17 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file mode 100755
index 0000000..5c9e5d3

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +11 -0
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+
+WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
+WPA_SUP_PNAME="wpa_supplicant"
+WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
+WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
+
+VERBOSITY=0
+
+

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh line 21

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+if [ -s "$IF_WPA_CONF" ]; then
+ WPA_SUP_CONF="-c $IF_WPA_CONF"
+else
+ exit 0
+fi
+
+if [ ! -x "$WPA_SUP_BIN" ]; then
+
+ if [ "$VERBOSITY" = "1" ]; then
+         echo "$WPA_SUP_PNAME: binaries not executable or missing

from

Quoted 26 lines

$WPA_SUP_BIN"
+ fi

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +12 -0
+
+ exit 1
+fi
+
+if [ "$MODE" = "start" ] ; then
+ # driver type of interface, defaults to wext when undefined
+ if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
+         IF_WPA_DRIVER=$(cat "/etc/wpa_supplicant/driver.$IFACE")
+ elif [ -z "$IF_WPA_DRIVER" ]; then
+
+         if [ "$VERBOSITY" = "1" ]; then
+                 echo "$WPA_SUP_PNAME: wpa-driver not provided, using

\"wext\""

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+         fi
+
+         IF_WPA_DRIVER="wext"
+ fi
+
+ # if we have passed the criteria, start wpa_supplicant
+ if [ -n "$WPA_SUP_CONF" ]; then
+
+         if [ "$VERBOSITY" = "1" ]; then
+                 echo "$WPA_SUP_PNAME: $WPA_SUP_BIN $WPA_SUP_OPTIONS

$WPA_SUP_CONF -D $IF_WPA_DRIVER"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+         fi
+
+         start-stop-daemon --start --quiet \
+                 --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --

pidfile

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 10 lines

$WPA_SUP_PIDFILE \

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+                 --  $WPA_SUP_OPTIONS $WPA_SUP_CONF -D $IF_WPA_DRIVER
+ fi
+
+ # if the interface socket exists, then wpa_supplicant was invoked

successfully
+ if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +3 -0
+
+         if [ "$VERBOSITY" = "1" ]; then
+                 echo "$WPA_SUP_PNAME: ctrl_interface socket located

at

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 13 lines

$WPA_COMMON_CTRL_IFACE/$IFACE"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +12 -0
+         fi
+
+         exit 0
+
+ fi
+
+elif [ "$MODE" = "stop" ]; then
+
+ if [ -f "$WPA_SUP_PIDFILE" ]; then
+
+         if [ "$VERBOSITY" = "1" ]; then
+                 echo "$WPA_SUP_PNAME: terminating $WPA_SUP_PNAME

daemon"

Review

Quoted 18 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +17 -0
+         fi
+
+         start-stop-daemon --stop --quiet \
+                 --name $WPA_SUP_PNAME --pidfile $WPA_SUP_PIDFILE
+
+         if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+                 rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
+         fi
+
+         if [ -f "$WPA_SUP_PIDFILE" ]; then
+                 rm -f $WPA_SUP_PIDFILE
+         fi
+ fi
+
+fi
+
+exit 0
(quoted diff) +0 -0

git/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file mode 100755
index 0000000..f0c993d

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +1 -0
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file

###############################

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This file describes configuration file format and lists all

available

Quoted 2 lines

option.
+# Please also take a look at simpler configuration examples in

'examples'

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# subdirectory.
+#
+# Empty lines and lines starting with # are ignored
+
+# NOTE! This file may contain password information and should

probably be

Quoted 6 lines
Quoted 6 lines

made

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# readable only by root user on multiuser systems.
+
+# Note: All file paths in this configuration file should use full

(absolute,
+# not relative to working directory) path in order to allow

working

Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

directory
+# to be changed. This can happen if wpa_supplicant is run in the background.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+
+# Whether to allow wpa_supplicant to update (overwrite)

configuration

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This option can be used to allow wpa_supplicant to overwrite

configuration
+# file whenever configuration is changed (e.g., new network block

is

Quoted 18 lines
Quoted 2 lines

added with
+# wpa_cli or wpa_gui, or a password is changed). This is required

for

Quoted 10 lines

+# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
+# Please note that overwriting configuration file will remove the comments from

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# it.
+#update_config=1
+
+# global configuration (shared by all network blocks)
+#
+# Parameters for the control interface. If this is specified,
Quoted 2 lines

wpa_supplicant
+# will open a control interface that is available for external

programs

Quoted 2 lines

to
+# manage wpa_supplicant. The meaning of this string depends on

which

Quoted 2 lines
Quoted 2 lines

control
+# interface mechanism is used. For all cases, the existance of

this

Quoted 9 lines
Quoted 2 lines

parameter
+# in configuration is used to determine whether the control

interface is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# enabled.
+#
+# For UNIX domain sockets (default on Linux and BSD): This is a

directory

Quoted 2 lines

that
+# will be created for UNIX domain sockets for listening to

requests

Quoted 6 lines

from

Quoted 3 lines

+# external programs (CLI/GUI, etc.) for status information and configuration.
+# The socket file will be named based on the interface name, so

multiple

Quoted 1 line

+# wpa_supplicant processes can be run at the same time if more

than

Quoted 9 lines

one

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# interface is used.
+# /var/run/wpa_supplicant is the recommended directory for sockets

and by

Quoted 1 line

+# default, wpa_cli will use it when trying to connect with

wpa_supplicant.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# Access control for the control interface can be configured by

setting

Quoted 10 lines
Quoted 2 lines

the
+# directory to allow only members of a group to use sockets. This

way, it

Quoted 4 lines

is
+# possible to run wpa_supplicant as root (since it needs to change network
+# configuration and open raw sockets) and still allow GUI/CLI

components

Quoted 2 lines

to be
+# run as non-root users. However, since the control interface can

be

Quoted 9 lines

used

Quoted 2 lines

to
+# change the network configuration, this access needs to be

protected in

Quoted 2 lines

many
+# cases. By default, wpa_supplicant is configured to use gid 0

(root). If

Quoted 2 lines

you
+# want to allow non-root users to use the control interface, add a

Quoted 9 lines

new

Quoted 2 lines

group
+# and change this value to match with that group. Add users that

should

Quoted 2 lines

have
+# control interface access to this group. If this variable is

commented

Quoted 2 lines

out or
+# not included in the configuration file, group will not be

changed

Quoted 3 lines

from

Quoted 2 lines

the
+# value it got by default when the directory or socket was

created.

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# When configuring both the directory and group, use following

format:

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# DIR=/var/run/wpa_supplicant GROUP=wheel
+# DIR=/var/run/wpa_supplicant GROUP=0
+# (group can be either group name or gid)
+#
+# For UDP connections (default on Windows): The value will be

ignored.

Quoted 7 lines
Quoted 2 lines

This
+# variable is just used to select that the control interface is to

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

created.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# The value can be set to, e.g., udp (ctrl_interface=udp)
+#
+# For Windows Named Pipe: This value can be used to set the

security

Quoted 11 lines
Quoted 2 lines

descriptor
+# for controlling access to the control interface. Security

descriptor

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

can be
+# set using Security Descriptor String Format (see
http://msdn.microsoft.com/

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# library/default.asp?url=/library/en-us/secauthz/security/
+# security_descriptor_string_format.asp). The descriptor string

needs to

Quoted 2 lines

be
+# prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would

set

Quoted 11 lines

an

Quoted 2 lines

empty
+# DACL (which will reject all connections). See README-Windows.txt

for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

more

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# information about SDDL string format.
+#
+ctrl_interface=/var/run/wpa_supplicant
+
+# IEEE 802.1X/EAPOL version
+# wpa_supplicant is implemented based on IEEE Std 802.1X-2004

which

Quoted 10 lines
Quoted 2 lines

defines
+# EAPOL version 2. However, there are many APs that do not handle

the new

Quoted 1 line

+# version number correctly (they seem to drop the frames

completely). In

Quoted 2 lines

order
+# to make wpa_supplicant interoperate with these APs, the version

number

Quoted 2 lines

is set
+# to 1 by default. This configuration value can be used to set it

to

Quoted 7 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

new

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# version (2).
+eapol_version=1
+
+# AP scanning/selection
+# By default, wpa_supplicant requests driver to perform AP

scanning

Quoted 3 lines

and

Quoted 2 lines

then
+# uses the scan results to select a suitable AP. Another

alternative

Quoted 3 lines

is

Quoted 2 lines

to
+# allow the driver to take care of AP scanning and selection and

use

Quoted 8 lines
Quoted 7 lines

+# wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# information from the driver.
+# 1: wpa_supplicant initiates scanning and AP selection
+# 0: driver takes care of scanning, AP selection, and IEEE 802.11

association
+# parameters (e.g., WPA IE generation); this mode can also be

used

Quoted 5 lines
Quoted 2 lines

with
+# non-WPA drivers when using IEEE 802.1X mode; do not try to

associate

Quoted 2 lines

with
+# APs (i.e., external program needs to control association).

This

Quoted 16 lines

mode

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

must

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and SSID

(but

Quoted 2 lines

not
+# BSSID); this can be used, e.g., with ndiswrapper and NDIS

drivers to

Quoted 1 line

+# enable operation with hidden SSIDs and optimized roaming; in

this

Quoted 2 lines

mode,
+# the network blocks in the configuration file are tried one by

one

Quoted 2 lines

until
+# the driver reports successful association; each network block

should

Quoted 8 lines
Quoted 2 lines

have
+# explicit security policy (i.e., only one option in the lists)

for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#    key_mgmt, pairwise, group, proto variables
+ap_scan=1
+
+# EAP fast re-authentication
+# By default, fast re-authentication is enabled for all EAP

methods

Quoted 17 lines

that

Quoted 1 line

+# support it. This variable can be used to disable fast re-

authentication.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# Normally, there is no need to disable this.
+fast_reauth=1
+
+# OpenSSL Engine support
+# These options can be used to load OpenSSL engines.
+# The two engines that are supported currently are shown below:
+# They are both from the opensc project (http://www.opensc.org/)
+# By default no engines are loaded.
+# make the opensc engine available
+#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
+# make the pkcs11 engine available
+#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
+# configure the path to the pkcs11 module required by the pkcs11

engine

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
+
+# Dynamic EAP methods
+# If EAP methods were built dynamically as shared object files,

they

Quoted 6 lines

need

Quoted 2 lines

to be
+# loaded here before being used in the network blocks. By default,

EAP

Quoted 2 lines

methods
+# are included statically in the build, so these lines are not

Quoted 8 lines

needed

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
+
+# Driver interface parameters
+# This field can be used to configure arbitrary driver interace

parameters. The
+# format is specific to the selected driver interface. This field

is

Quoted 9 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# in most cases.
+#driver_param="field=value"
+
+# Maximum lifetime for PMKSA in seconds; default 43200
+#dot11RSNAConfigPMKLifetime=43200
+# Threshold for reauthentication (percentage of PMK lifetime);

default 70

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#dot11RSNAConfigPMKReauthThreshold=70
+# Timeout for security association negotiation in seconds; default

60

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#dot11RSNAConfigSATimeout=60
+
+# network block
+#
+# Each network (usually AP's sharing the same SSID) is configured

as

Quoted 4 lines

a

Quoted 2 lines

separate
+# block in this configuration file. The network blocks are in

preference

Quoted 12 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 12 lines

order

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# (the first match is used).
+#
+# network block fields:
+#
+# disabled:
+#        0 = this network can be used (default)
+#        1 = this network block is disabled (can be enabled through

ctrl_iface,

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#            e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This

value

Quoted 5 lines

is

Quoted 2 lines

passed
+# to external action script through wpa_cli as WPA_ID_STR

environment

Quoted 1 line

+# variable to make it easier to do network specific

configuration.

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# ssid: SSID (mandatory); either as an ASCII string with double

quotation

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#        as hex string; network name
+#
+# scan_ssid:
+#        0 = do not scan this SSID with specific Probe Request

frames

Quoted 2 lines
Quoted 2 lines

(default)
+# 1 = scan with SSID-specific Probe Request frames (this can

be

Quoted 3 lines

used

Quoted 2 lines

to
+# find APs that do not accept broadcast SSID or use

multiple

Quoted 2 lines
Quoted 2 lines

SSIDs;
+# this will add latency to scanning, so enable this only

when

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

needed)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# bssid: BSSID (optional); if set, this network block is used only

when

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#        associating with the AP using the configured BSSID
+#
+# priority: priority group (integer)
+# By default, all networks will get same priority group (0). If

some

Quoted 3 lines

of

Quoted 2 lines

the
+# networks are more desirable, this field can be used to change

the

Quoted 6 lines

order

Quoted 2 lines

in
+# which wpa_supplicant goes through the networks when selecting a

BSS.

Quoted 2 lines

The
+# priority groups will be iterated in decreasing priority (i.e.,

the

Quoted 2 lines
Quoted 2 lines

larger the
+# priority value, the sooner the network is matched against the

scan

Quoted 15 lines
Quoted 2 lines

results).
+# Within each priority group, networks will be selected based on

security

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# policy, signal strength, etc.
+# Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode

are

Quoted 2 lines

not
+# using this priority to select the order for scanning. Instead,

they try

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# networks in the order that used in the configuration file.
+#
+# mode: IEEE 802.11 operation mode
+# 0 = infrastructure (Managed) mode, i.e., associate with an AP

(default)

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# 1 = IBSS (ad-hoc, peer-to-peer)
+# Note: IBSS can only be used with key_mgmt NONE (plaintext and

static

Quoted 2 lines

WEP)
+# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition,

ap_scan

Quoted 2 lines

has
+# to be set to 2 for IBSS. WPA-None requires following network

block

Quoted 2 lines
Quoted 2 lines

options:
+# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or

CCMP,

Quoted 11 lines

but

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# both), and psk must also be set.
+#
+# proto: list of accepted protocols
+# WPA = WPA/IEEE 802.11i/D3.0
+# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for

RSN)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# If not set, this defaults to: WPA RSN
+#
+# key_mgmt: list of accepted authenticated key management

protocols

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
+# WPA-EAP = WPA using EAP authentication (this can use an external
+#        program, e.g., Xsupplicant, for IEEE 802.1X EAP

Authentication

Quoted 1 line
Quoted 1 line

+# IEEE8021X = IEEE 802.1X using EAP authentication and

(optionally)

Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

dynamically

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#        generated WEP keys
+# NONE = WPA is not used; plaintext or static WEP could be used
+# If not set, this defaults to: WPA-PSK WPA-EAP
+#
+# auth_alg: list of allowed IEEE 802.11 authentication algorithms
+# OPEN = Open System authentication (required for WPA/WPA2)
+# SHARED = Shared Key authentication (requires static WEP keys)
+# LEAP = LEAP/Network EAP (only used with LEAP)
+# If not set, automatic selection is used (Open System with LEAP

enabled

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

if

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# LEAP is allowed as one of the EAP methods).
+#
+# pairwise: list of accepted pairwise (unicast) ciphers for WPA
+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# NONE = Use only Group Keys (deprecated, should not be included

if

Quoted 13 lines

APs

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

support

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#        pairwise keys)
+# If not set, this defaults to: CCMP TKIP
+#
+# group: list of accepted group (broadcast/multicast) ciphers for

WPA

Quoted 1 line

+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
+# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE

802.11]

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# If not set, this defaults to: CCMP TKIP WEP104 WEP40
+#
+# psk: WPA preshared key; 256-bit pre-shared key
+# The key used in WPA-PSK mode can be entered either as 64 hex-

digits,

Quoted 2 lines

i.e.,
+# 32 bytes or as an ASCII passphrase (in which case, the real PSK

will be

Quoted 1 line

+# generated using the passphrase and SSID). ASCII passphrase must

be

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

between

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# 8 and 63 characters (inclusive).
+# This field is not needed, if WPA-EAP is used.
+# Note: Separate tool, wpa_passphrase, can be used to generate

256-

Quoted 6 lines

bit

Quoted 2 lines

keys
+# from ASCII passphrase. This process uses lot of CPU and

wpa_supplicant

Quoted 1 line

+# startup and reconfiguration time can be optimized by generating

the PSK

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

only

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# only when the passphrase or SSID has actually changed.
+#
+# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
+# Dynamic WEP key required for non-WPA mode
+# bit0 (1): require dynamically generated unicast WEP key
+# bit1 (2): require dynamically generated broadcast WEP key
+#        (3 = require both keys; default)
+# Note: When using wired authentication, eapol_flags must be set

to

Quoted 16 lines

0 for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication to be completed successfully.
+#
+# proactive_key_caching:
+# Enable/disable opportunistic PMKSA caching for WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#
+# wep_key0..3: Static WEP key (ASCII in double quotation, e.g.

"abcde" or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# hex without quotation, e.g., 0102030405)
+# wep_tx_keyidx: Default WEP key index (TX) (0..3)
+#
+# peerkey: Whether PeerKey negotiation for direct links (IEEE

802.11e

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

DLS) is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# allowed. This is only used with RSN/WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#peerkey=1
+#
+# Following fields are only used with internal EAP implementation.
+# eap: space-separated list of accepted EAP methods
+#        MD5 = EAP-MD5 (unsecure and does not generate keying

material ->

Quoted 1 line
Quoted 1 line

+# cannot be used with WPA; to be used as a Phase

2

Quoted 3 lines

method

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#                        with EAP-PEAP or EAP-TTLS)
+#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with

WPA;

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

be used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#                as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       OTP = EAP-OTP (cannot be used separately with WPA; to be

used

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#                as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       GTC = EAP-GTC (cannot be used separately with WPA; to be

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#                as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#        TLS = EAP-TLS (client and server certificate)
+#        PEAP = EAP-PEAP (with tunnelled EAP authentication)
+#        TTLS = EAP-TTLS (with tunnelled EAP or

PAP/CHAP/MSCHAP/MSCHAPV2

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#                         authentication)
+#        If not set, all compiled in methods are allowed.
+#
+# identity: Identity string for EAP
+# anonymous_identity: Anonymous identity string for EAP (to be

used

Quoted 7 lines

as

Quoted 2 lines

the
+# unencrypted identity with EAP types that support different

tunnelled

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        identity, e.g., EAP-TTLS)
+# password: Password string for EAP
+# ca_cert: File path to CA certificate file (PEM/DER). This file

can

Quoted 3 lines

have

Quoted 2 lines

one
+# or more trusted CA certificates. If ca_cert and ca_path are

not

Quoted 4 lines
Quoted 1 line

+# included, server certificate will not be verified. This is

insecure

Quoted 2 lines

and
+# a trusted CA certificate should always be configured when

using

Quoted 5 lines
Quoted 1 line

+# EAP-TLS/TTLS/PEAP. Full path should be used since working

directory

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

may

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        change when wpa_supplicant is run in the background.
+#        On Windows, trusted CA certificates can be loaded from the

system

Quoted 1 line
Quoted 1 line

+# certificate store by setting this to cert_store://<name>,

e.g.,

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
+#        Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# ca_path: Directory path for CA certificate files (PEM). This

path

Quoted 2 lines

may

Quoted 1 line

+# contain multiple CA certificates in OpenSSL format. Common

use

Quoted 3 lines

for

Quoted 2 lines

this
+# is to point to system trusted CA list which is often

installed

Quoted 2 lines

into

Quoted 1 line

+# directory like /etc/ssl/certs. If configured, these

certificates

Quoted 2 lines

are

Quoted 1 line

+# added to the list of trusted CAs. ca_cert may also be

included in

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        case, but it is not required.
+# client_cert: File path to client certificate file (PEM/DER)
+#        Full path should be used since working directory may change

when

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        wpa_supplicant is run in the background.
+#        Alternatively, a named configuration blob can be used by

setting

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        to blob://<blob name>.
+# private_key: File path to client private key file (PEM/DER/PFX)
+#        When PKCS#12/PFX file (.p12/.pfx) is used, client_cert

should be

Quoted 1 line
Quoted 1 line

+# commented out. Both the private key and certificate will be

read

Quoted 2 lines
Quoted 2 lines

from
+# the PKCS#12 file in this case. Full path should be used

since

Quoted 4 lines
Quoted 2 lines

working
+# directory may change when wpa_supplicant is run in the

background.

Quoted 1 line

+# Windows certificate store can be used by leaving

client_cert out

Quoted 5 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#        configuring private_key in one of the following formats:
+#        cert://substring_to_match
+#        hash://certificate_thumbprint_in_hex
+#        for example:

private_key="hash://63093aa9c47f56ae88334c7b65a4"

Quoted 1 line
Quoted 1 line

+# Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# Alternatively, a named configuration blob can be used by

setting

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left out,

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

will be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        asked through control interface)
+# dh_file: File path to DH/DSA parameters file (in PEM format)
+#        This is an optional configuration file for setting

parameters for

Quoted 3 lines

an

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        ephemeral DH key exchange. In most cases, the default RSA
+#        authentication does not use this configuration. However, it

is

Quoted 2 lines
Quoted 2 lines

possible
+# setup RSA to use ephemeral DH key exchange. In addition,

ciphers

Quoted 4 lines
Quoted 2 lines

with
+# DSA keys always use ephemeral DH keys. This can be used to

achieve

Quoted 1 line

+# forward secrecy. If the file is in DSA parameters format,

it will

Quoted 3 lines

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        automatically converted into DH params.
+# subject_match: Substring to be matched against the subject of

the

Quoted 1 line
Quoted 1 line

+# authentication server certificate. If this string is set,

the

Quoted 2 lines

server

Quoted 1 line

+# sertificate is only accepted if it contains this string in

the

Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

subject.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        The subject string is in following format:
+#        /C=US/ST=CA/L=San Francisco/CN=Test

AS/[email protected]

Quoted 1 line

+# altsubject_match: Semicolon separated string of entries to be

matched

Quoted 4 lines

against
+# the alternative subject name of the authentication server
certificate.
+# If this string is set, the server sertificate is only

accepted if

Quoted 8 lines

it

Quoted 1 line

+# contains one of the entries in an alternative subject name

extension.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#        altSubjectName string is in following format: TYPE:VALUE
+#        Example: EMAIL:[email protected]
+#        Example: DNS:server.example.com;DNS:server2.example.com
+#        Following types are supported: EMAIL, DNS, URI
+# phase1: Phase1 (outer authentication, i.e., TLS tunnel)

parameters

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        (string with field-value pairs, e.g., "peapver=0" or
+#        "peapver=1 peaplabel=1")
+#        'peapver' can be used to force which PEAP version (0 or 1)

is

Quoted 6 lines

used.

Quoted 3 lines

+# 'peaplabel=1' can be used to force new label, "client PEAP
encryption",
+# to be used during key derivation when PEAPv1 or newer. Most

existing

Quoted 1 line

+# PEAPv1 implementation seem to be using the old label,

"client EAP

Quoted 1 line
Quoted 1 line

+# encryption", and wpa_supplicant is now using that as the

default

Quoted 5 lines
Quoted 2 lines

value.
+# Some servers, e.g., Radiator, may require peaplabel=1

configuration

Quoted 2 lines

to
+# interoperate with PEAPv1; see eap_testing.txt for more

details.

Quoted 4 lines
Quoted 1 line

+# 'peap_outer_success=0' can be used to terminate PEAP

authentication

Quoted 2 lines

on
+# tunneled EAP-Success. This is required with some RADIUS

servers

Quoted 6 lines

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
+#        Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
+#        include_tls_length=1 can be used to force wpa_supplicant to

include

Quoted 1 line

+# TLS Message Length field in all TLS messages even if they

are not

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        fragmented.
+#        sim_min_num_chal=3 can be used to configure EAP-SIM to

require

Quoted 4 lines

three

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        challenges (by default, it accepts 2 or 3)
+# phase2: Phase2 (inner authentication with TLS tunnel) parameters
+#        (string with field-value pairs, e.g., "auth=MSCHAPV2" for

EAP-

Quoted 4 lines

PEAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
+# Following certificate/private key fields are used in inner

Phase2

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# authentication when using EAP-TTLS or EAP-PEAP.
+# ca_cert2: File path to CA certificate file. This file can have

one

Quoted 5 lines

or

Quoted 2 lines

more
+# trusted CA certificates. If ca_cert2 and ca_path2 are not

included,

Quoted 1 line

+# server certificate will not be verified. This is insecure

and a

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

trusted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+#        CA certificate should always be configured.
+# ca_path2: Directory path for CA certificate files (PEM)
+# client_cert2: File path to client certificate file
+# private_key2: File path to client private key file
+# private_key2_passwd: Password for private key file
+# dh_file2: File path to DH/DSA parameters file (in PEM format)
+# subject_match2: Substring to be matched against the subject of

the

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        authentication server certificate.
+# altsubject_match2: Substring to be matched against the

alternative

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

subject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        name of the authentication server certificate.
+#
+# fragment_size: Maximum EAP fragment size in bytes (default

1398).

Quoted 1 line
Quoted 1 line

+# This value limits the fragment size for EAP methods that

support

Quoted 1 line
Quoted 1 line

+# fragmentation (e.g., EAP-TLS and EAP-PEAP). This value

should be

Quoted 2 lines

set

Quoted 1 line

+# small enough to make the EAP messages fit in MTU of the

network

Quoted 1 line
Quoted 1 line

+# interface used for EAPOL. The default value is suitable for

most

Quoted 14 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#        cases.
+#
+# EAP-PSK variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI
+#
+# EAP-PAX variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#
+# EAP-SAKE variables:
+# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in hex

format

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#        (this is concatenation of Root-Secret-A and Root-Secret-B)
+# nai: user NAI (PEERID)
+#
+# EAP-GPSK variables:
+# eappsk: Pre-shared key in hex format (at least 128 bits, i.e.,

32

Quoted 6 lines

hex

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

digits)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will

need

Quoted 3 lines

to be

Quoted 2 lines

able
+# to create this file and write updates to it when PAC is

being

Quoted 1 line
Quoted 1 line

+# provisioned or refreshed. Full path to the file should be

used

Quoted 2 lines

since

Quoted 1 line

+# working directory may change when wpa_supplicant is run in

the

Quoted 1 line
Quoted 1 line

+# background. Alternatively, a named configuration blob can

be used

Quoted 3 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#        setting this to blob://<blob name>
+# phase1: fast_provisioning=1 option enables in-line provisioning

of

Quoted 5 lines

EAP-

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

FAST

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#        credentials (PAC)
+#
+# wpa_supplicant supports number of "EAP workarounds" to work

around

Quoted 6 lines
Quoted 3 lines

+# interoperability issues with incorrectly behaving authentication servers.
+# These are enabled by default because some of the issues are

present in

Quoted 2 lines

large
+# number of authentication servers. Strict EAP conformance mode

can

Quoted 6 lines

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# configured by disabling workarounds with eap_workaround=0.
+
+# Example blocks:
+
+# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all

valid

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

ciphers

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+network={
+ ssid="simple"
+ psk="very secret passphrase"
+ priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for APs

that

Quoted 81 lines
Quoted 7 lines

reject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# broadcast SSID)
+network={
+ ssid="second ssid"
+ scan_ssid=1
+ psk="very secret passphrase"
+ priority=2

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 452

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+}
+
+# Only WPA-PSK is used. Any valid cipher combination is accepted.
+network={
+ ssid="example"
+ proto=WPA
+ key_mgmt=WPA-PSK
+ pairwise=CCMP TKIP
+ group=CCMP TKIP WEP104 WEP40
+
    psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac

7bb

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

+ priority=2

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that

used

Quoted 8 lines

WEP104

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# or WEP40 as the group cipher will not be accepted.
+network={
+ ssid="example"
+ proto=RSN
+ key_mgmt=WPA-EAP
+ pairwise=CCMP TKIP
+ group=CCMP TKIP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+ eap=TLS
+ identity="[email protected]"
+ ca_cert="/etc/cert/ca.pem"
+ client_cert="/etc/cert/user.pem"
+ private_key="/etc/cert/user.prv"
+ private_key_passwd="password"
+ priority=1
+}
+
+# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the

new

Quoted 5 lines

peaplabel

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# (e.g., Radiator)
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+ eap=PEAP
+ identity="[email protected]"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ phase1="peaplabel=1"
+ phase2="auth=MSCHAPV2"
+ priority=10
+}
+
+# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity

for

Quoted 2 lines

the
+# unencrypted use. Real identity is sent only within an encrypted

TLS

Quoted 19 lines

tunnel.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ identity="[email protected]"
+ anonymous_identity="[email protected]"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the

unencrypted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# use. Real identity is sent only within an encrypted TLS tunnel.
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

+ identity="[email protected]"
+ anonymous_identity="[email protected]"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ phase2="auth=MSCHAPV2"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for outer

and

Quoted 31 lines
Quoted 9 lines

inner

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication.
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ # Phase1 / outer authentication
+ anonymous_identity="[email protected]"
+ ca_cert="/etc/cert/ca.pem"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+ # Phase 2 / inner authentication
+ phase2="autheap=TLS"
+ ca_cert2="/etc/cert/ca2.pem"
+ client_cert2="/etc/cer/user.pem"
+ private_key2="/etc/cer/user.prv"
+ private_key2_passwd="password"
+ priority=2
+}
+
+# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as

pairwise

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 539

Quoted 10 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+# group cipher.
+network={
+ ssid="example"
+ bssid=00:11:22:33:44:55
+ proto=WPA RSN
+ key_mgmt=WPA-PSK WPA-EAP
+ pairwise=CCMP
+ group=CCMP
+
    psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac
Quoted 4 lines

7bb

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# Special characters in SSID, so use hex string. Default to WPA-

PSK,

Quoted 78 lines

WPA-

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 546

Quoted 5 lines

EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# and all valid ciphers.
+network={
+ ssid=00010203
+
    psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1

e1f

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no

WPA)

Quoted 2 lines

using
+# EAP-TLS for authentication and key generation; require both

unicast and

Quoted 33 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +33 -0
+# broadcast WEP keys.
+network={
+ ssid="1x-test"
+ key_mgmt=IEEE8021X
+ eap=TLS
+ identity="[email protected]"
+ ca_cert="/etc/cert/ca.pem"
+ client_cert="/etc/cert/user.pem"
+ private_key="/etc/cert/user.prv"
+ private_key_passwd="password"
+ eapol_flags=3
+}
+
+
+# LEAP with dynamic WEP keys
+network={
+ ssid="leap-example"
+ key_mgmt=IEEE8021X
+ eap=LEAP
+ identity="user"
+ password="foobar"
+}
+
+# Plaintext connection (no WPA, no IEEE 802.1X)
+network={
+ ssid="plaintext-test"
+ key_mgmt=NONE
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X)
+network={
+ ssid="static-wep-test"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+ key_mgmt=NONE
+ wep_key0="abcde"
+ wep_key1=0102030405
+ wep_key2="1234567890123"
+ wep_tx_keyidx=0
+ priority=5
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared

Key

Quoted 18 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +18 -0
+# IEEE 802.11 authentication
+network={
+ ssid="static-wep-test2"
+ key_mgmt=NONE
+ wep_key0="abcde"
+ wep_key1=0102030405
+ wep_key2="1234567890123"
+ wep_tx_keyidx=0
+ priority=5
+ auth_alg=SHARED
+}
+
+
+# IBSS/ad-hoc network with WPA-None/TKIP.
+network={
+ ssid="test adhoc"
+ mode=1
+ proto=WPA
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

+ key_mgmt=WPA-NONE
+ pairwise=NONE
+ group=TKIP
+ psk="secret passphrase"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+}
+
+
+# Catch all example that allows more or less all configuration

modes

Quoted 62 lines
Quoted 35 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +35 -0
+network={
+ ssid="example"
+ scan_ssid=1
+ key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
+ pairwise=CCMP TKIP
+ group=CCMP TKIP WEP104 WEP40
+ psk="very secret passphrase"
+ eap=TTLS PEAP TLS
+ identity="[email protected]"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ client_cert="/etc/cert/user.pem"
+ private_key="/etc/cert/user.prv"
+ private_key_passwd="password"
+ phase1="peaplabel=0"
+}
+
+# Example of EAP-TLS with smartcard (openssl engine)
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TLS
+ proto=RSN
+ pairwise=CCMP TKIP
+ group=CCMP TKIP
+ identity="[email protected]"
+ ca_cert="/etc/cert/ca.pem"
+ client_cert="/etc/cert/user.pem"
+
+ engine=1
+
+ # The engine configured here must be available. Look at
+ # OpenSSL engine support in the global section.
+ # The key available through the engine must be the private key
+ # matching the client certificate configured above.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+
+ # use the opensc engine
+ #engine_id="opensc"
+ #key_id="45"
+
+ # use the pkcs11 engine
+ engine_id="pkcs11"
+ key_id="id_45"
+
+ # Optional PIN configuration; this can be left out and PIN will

be

Quoted 16 lines

+ # asked through the control interface
+ pin="1234"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# Example configuration showing how to use an inlined blob as a CA

certificate

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+# data instead of using external file
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ identity="[email protected]"
+ anonymous_identity="[email protected]"
+ password="foobar"
+ ca_cert="blob://exampleblob"
+ priority=20
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+}
+
+blob-base64-exampleblob={
+SGVsbG8gV29ybGQhCg==
+}
+
+
+# Wildcard match for SSID (plaintext APs only). This example

select

Quoted 7 lines

any

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# open AP regardless of its SSID.
+network={
+ key_mgmt=NONE
+}
(quoted diff) +0 -0

git/wpa_supplicant.conf-sane b/recipes/wpa-supplicant/wpa-

supplicant-

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

git/wpa_supplicant.conf-sane
new file mode 100755
index 0000000..c91ffe0

recipes/wpa-supplicant/wpa-supplicant- new file +0 -0

git/wpa_supplicant.conf-

Quoted 11 lines

sane

Review

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
(quoted diff) +0 -0

b/recipes/wpa-

Quoted 19 lines
Quoted 12 lines

supplicant/wpa-supplicant_git.bb
new file mode 100755
index 0000000..5292a2c

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
@@ -0,0 +1,103 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+BUGTRACKER = "http://hostap.epitest.fi/bugz/"
+SECTION = "network"
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM =
Quoted 2 lines

"file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+

file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738

Quoted 3 lines

\
+

file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f13

Quoted 128 lines

6ea

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 9 lines

ce747260e"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+
+SRCREV = "b8fb017272ed4794339978c9fbc0e74571a44728"
+PR = "r0"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+DEPENDS = "gnutls dbus libnl openssl

${@base_contains("COMBINED_FEATURES",

Quoted 14 lines

"madwifi", "madwifi-ng", "",d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -0
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+SRC_URI = "git://w1.fi/srv/git/hostap.git;protocol=git \
+           file://defconfig \
+           file://defaults-sane \
+           file://wpa-supplicant.sh \
+           file://wpa_supplicant.conf \
+           file://wpa_supplicant.conf-sane \
+           file://99_wpa_supplicant"
+
+S = "${WORKDIR}/git/wpa_supplicant"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +10 -0
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+FILES_${PN} += " /usr/share/dbus-1/system-services/*"
+
+do_configure () {
+ install -m 0755 ${WORKDIR}/defconfig .config
+ echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+ echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+ echo "LIBS_p += -L${STAGING_LIBDIR}" >> .config
+ if [ "${@base_contains('COMBINED_FEATURES', 'madwifi', 1, 0, d)}"

=

Quoted 26 lines

"1" ]; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +17 -0
+         echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+         echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
+ fi
+}
+
+do_compile () {
+ make
+}
+
+do_install () {
+ install -d ${D}${sbindir}
+ install -m 755 wpa_supplicant ${D}${sbindir}
+ install -m 755 wpa_passphrase ${D}${sbindir}
+ install -m 755 wpa_cli        ${D}${sbindir}
+
+ install -d ${D}${docdir}/wpa_supplicant
+ install -m 644 README ${WORKDIR}/wpa_supplicant.conf

${D}${docdir}/wpa_supplicant
+
+ install -d ${D}${sysconfdir}/default
+ install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
+

Quoted 8 lines

+ install -d ${D}${sysconfdir}/network/if-pre-up.d/
+ install -d ${D}${sysconfdir}/network/if-post-down.d/
+ install -d ${D}${sysconfdir}/network/if-down.d/
+ install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
+ install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
+ cd ${D}${sysconfdir}/network/ && \
+ ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-

supplicant

Quoted 9 lines

+
+ if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config || grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+         install -d ${D}/${sysconfdir}/dbus-1/system.d
+         install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf

${D}/${sysconfdir}/dbus-1/system.d

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+         install -d ${D}/${datadir}/dbus-1/system-services
+         if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config; then
+                 sed -i -e s:/sbin:${sbindir}:g
Quoted 3 lines

${S}/dbus/fi.epitest.hostap.WPASupplicant.service
+ install -m 644
${S}/dbus/fi.epitest.hostap.WPASupplicant.service

${D}/${datadir}/dbus-

Quoted 6 lines

1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+         fi
+         if grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then
+                 sed -i -e s:/sbin:${sbindir}:g

${S}/dbus/fi.w1.wpa_supplicant1.service
+ install -m 644

${S}/dbus/fi.w1.wpa_supplicant1.service

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines

${D}/${datadir}/dbus-1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+         fi
+ fi
+
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/99_wpa_supplicant

${D}/etc/default/volatiles

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+}
+
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the

misleading

Quoted 21 lines

'arm' on armv5te builds

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi',

'${MACHINE_ARCH}', '${MY_ARCH}', d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -1
+
+pkg_postinst_wpa-supplicant () {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+         exit 1
+ fi
+
+ DBUSPID=`pidof dbus-daemon`
+
+ if [ "x$DBUSPID" != "x" ]; then
+         /etc/init.d/dbus-1 reload
+ fi
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-

devel

#4 lore raw
Quoted 7 lines

-----Original Message-----
From: Reizer, Eyal
Sent: Wednesday, April 13, 2011 11:38 AM
To: Maupin, Chase; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 9 lines

I have also checked the option of using 0.7.inc the git recipe. However there are a couple of differences like in the do_configure section and also
in SRC_URI (which uses a git address instead of a zip).
I would need to make significant modification to the include file as well as to both 0.7.3 and
The git recipe to be able to use the same include file which I don't think are worth the effort,
and adds a risk of breaking the 0.7.3 recipe.

Eyal,

Why don't you just include the .inc file and then override the parts that need to be different? No reason to duplicate all the other functions.

Quoted 2,041 lines
Quoted 706 lines

-----Original Message-----
From: Reizer, Eyal
Sent: Wednesday, April 13, 2011 9:20 AM
To: Maupin, Chase; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

I will improve the commit message to clear this confusion.

The version built from the git is actually version 0.8.x which is a new family of versions and include new features (like wifi-direct) used by new mac80211 versions.
It would look proper if we include a 0.7.inc file in it.

As this is currently the only 0.8 version I think it is better to wait until 0.8 comes out as an official zip and than create such an include file as well for 0.8

Quoted 10 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, April 13, 2011 7:54 AM
To: [email protected]
Cc: Reizer, Eyal
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On

Behalf

Quoted 40 lines

Of

Quoted 6 lines

Eyal Reizer
Sent: Tuesday, April 12, 2011 4:54 PM
To: [email protected]
Cc: Reizer, Eyal
Subject: [oe] [PATCH] wpa-supplicant: Build from git sources

Need a more detailed commit message. Can you re-use the wpa- supplicant-0.7.inc include file? 90% of this stuff seems the same.

Quoted 5 lines
---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422

++++++++++++

Quoted 9 lines
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690
++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defaults-

Quoted 2 lines

sane

 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defconfig

Review

Quoted 9 lines
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-git/wpa-
supplicant.sh
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant_git.bb
(quoted diff) +0 -0

git/99_wpa_supplicant

Quoted 8 lines

Review

Quoted 8 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file mode 100755
index 0000000..6ff4dd8

recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file +1 -0
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
(quoted diff) +0 -0

sane

Quoted 29 lines

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane line 2

Quoted 8 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file mode 100755
index 0000000..67c4cbd

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +2 -0
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified in

config)

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +6 -0
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +0 -0
new file mode 100755
index 0000000..d9be1a8

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 3

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
@@ -0,0 +1,422 @@
+# Example wpa_supplicant build time configuration
+#
+# This file lists the configuration options that are used when

building

Quoted 2 lines

the
+# hostapd binary. All lines starting with # are ignored.

Configuration

Quoted 10 lines
Quoted 2 lines

option
+# lines must be commented out complete, if they are not to be

included,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and

LIBS

Quoted 2 lines

can also
+# be modified from here. In most cases, these lines should use +=

in

Quoted 6 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

order not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have

installed

Quoted 8 lines
Quoted 8 lines

OpenSSL

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or GnuTLS in non-default location
+#CFLAGS += -I/usr/local/openssl/include
+#LIBS += -L/usr/local/openssl/lib
+
+# Some Red Hat versions seem to include kerberos header files from

OpenSSL, but
+# the kerberos files are not in the default include path.

Following

Quoted 16 lines

line

Quoted 9 lines

can be

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# used to fix build issues on such systems (krb5.h not found).
+#CFLAGS += -I/usr/include/kerberos
+
+# Example configuration for various cross-compilation platforms
+
+#### sveasoft (e.g., for Linksys WRT54G)

######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 30

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS += -I../src/include -I../../src/router/openssl/include
+#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib -lssl

+######################################################################

Quoted 13 lines

###

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 39

Quoted 11 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### openwrt (e.g., for Linksys WRT54G)

#######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include \
+#      -I../WRT54GS/release/src/include
+#LIBS = -lssl

+######################################################################

Quoted 32 lines

###

Quoted 31 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +30 -0
+
+CC=$(CROSS_COMPILE)gcc
+#CFLAGS += -DCONFIG_LIBNL20
+#CPPFLAGS += -DCONFIG_LIBNL20
+#LIBS += -L$(NFSROOT)/lib -lnl
+#LIBS_p += -L$(NFSROOT)/lib
+#LIBDIR = $(NFSROOT)/lib
+#BINDIR = $(NFSROOT)/usr/sbin
+
+CONFIG_WAPI=y
+CONFIG_LIBNL20=y
+NEED_BGSCAN=y
+CONFIG_BGSCAN_LEARN=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for Agere driver
+#CONFIG_DRIVER_HERMES=y
+# Change include directories to match with the local setup
+#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
+#CFLAGS += -I../../include/wireless
+
+# Driver interface for madwifi driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_MADWIFI=y
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
+
+# Driver interface for ndiswrapper
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_NDISWRAPPER=y
+
+# Driver interface for Atmel driver
+#CONFIG_DRIVER_ATMEL=y
+
+# Driver interface for old Broadcom driver
+# Please note that the newer Broadcom driver ("hybrid Linux

driver")

Quoted 20 lines
Quoted 2 lines

supports
+# Linux wireless extensions and does not need (or even work) with

the old

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# driver wrapper. Use CONFIG_DRIVER_WEXT=y with that driver.
+#CONFIG_DRIVER_BROADCOM=y
+# Example path for wlioctl.h; change to match your configuration
+#CFLAGS += -I/opt/WRT54GS/release/src/include
+
+# Driver interface for Intel ipw2100/2200 driver

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_IPW=y
+
+# Driver interface for Ralink driver
+#CONFIG_DRIVER_RALINK=y
+
+# Driver interface for generic Linux wireless extensions
+CONFIG_DRIVER_WEXT=y
+
+# Driver interface for Linux drivers using the nl80211 kernel

interface

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros

driver)

Quoted 26 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +13 -0
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+#LIBS_p += -L/usr/local/lib
+#LIBS_c += -L/usr/local/lib
+
+# Driver interface for Windows NDIS
+#CONFIG_DRIVER_NDIS=y
+#CFLAGS += -I/usr/include/w32api/ddk
+#LIBS += -L/usr/local/lib
+# For native build using mingw
+#CONFIG_NATIVE_WINDOWS=y
+# Additional directories for cross-compilation on Linux host for

mingw

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

target

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CFLAGS += -I/opt/mingw/mingw32/include/ddk
+#LIBS += -L/opt/mingw/mingw32/lib
+#CC=mingw32-gcc
+# By default, driver_ndis uses WinPcap for low-level operations.

This can

Quoted 2 lines

be
+# replaced with the following option which replaces WinPcap calls

with

Quoted 2 lines

NDISUIO.
+# However, this requires that WZC is disabled (net stop wzcsvc)

before

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines

starting

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# wpa_supplicant.
+# CONFIG_USE_NDISUIO=y
+
+# Driver interface for development testing
+#CONFIG_DRIVER_TEST=y
+
+# Include client MLME (management frame processing) for test

driver

Quoted 1 line
Quoted 1 line

+# This can be used to test MLME operations in hostapd with the

test

Quoted 32 lines
Quoted 8 lines

interface.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# space.
+#CONFIG_CLIENT_MLME=y
+
+# Driver interface for wired Ethernet drivers
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for the Broadcom RoboSwitch family

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_DRIVER_ROBOSWITCH=y
+
+# Driver interface for no driver (e.g., WPS ER only)
+#CONFIG_DRIVER_NONE=y
+
+# Solaris libraries
+#LIBS += -lsocket -ldlpi -lnsl
+#LIBS_c += -lsocket
+
+# Enable IEEE 802.1X Supplicant (automatically included if any EAP

method

Quoted 13 lines

is

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +12 -0
+# included)
+CONFIG_IEEE8021X_EAPOL=y
+
+# EAP-MD5
+CONFIG_EAP_MD5=y
+
+# EAP-MSCHAPv2
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-TLS
+CONFIG_EAP_TLS=y
+
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# EAL-PEAP
+CONFIG_EAP_PEAP=y
+
+# EAP-TTLS
+CONFIG_EAP_TTLS=y
+
+# EAP-FAST
+# Note: Default OpenSSL package does not include support for all

the

Quoted 37 lines
Quoted 1 line

+# functionality needed for EAP-FAST. If EAP-FAST is enabled with

OpenSSL,

Quoted 35 lines

+# the OpenSSL library must be patched (openssl-0.9.8d-tls- extensions.patch)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +32 -0
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# EAP-GTC
+CONFIG_EAP_GTC=y
 
+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
+#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA
+#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support

(experimental)

Quoted 30 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 11 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +11 -0
+#CONFIG_EAP_TNC=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate

file

Quoted 7 lines

from

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g., with

openssl

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +1 -0
+# engine.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g,

wpa_cli:

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not

included

Quoted 6 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in

wpa_cli.

Quoted 1 line
Quoted 1 line

+# When building a wpa_cli binary for distribution, please note

that

Quoted 2 lines

these

Quoted 1 line

+# libraries are licensed under GPL and as such, BSD license may

not

Quoted 10 lines

apply

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

for

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to

stdout.

Quoted 1 line

+# This can be used to reduce the size of the wpa_supplicant

considerably

Quoted 1 line

+# if debugging code is not needed. The size reduction can be

around

Quoted 11 lines

35%

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant,

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

save

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes

WPA2

Quoted 20 lines

code

Quoted 2 lines

to
+# save about 1 kB in code size when building only WPA-Personal (no

EAP

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

support)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing support

for

Quoted 1 line

+# converting ASCII passphrases into PSK. If this functionality is

removed,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# PSK can only be configured as the 64-octet hexstring (e.g., from
+# wpa_passphrase). This saves about 0.5 kB in code size.
+#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size by

about 1

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# This can be used if ap_scan=1 mode is never enabled.
+#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the

configuration

Quoted 2 lines

file
+# path is given on command line, not here; this option is

just used

Quoted 2 lines

to

Quoted 1 line

+# select the backend that allows configuration files to be

used)

Quoted 8 lines
Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# winreg = Windows registry (see win_example.reg for an example)
+CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the

configuration
+# file to be updated based on runtime configuration changes). The

runtime

Quoted 1 line

+# configuration can still be changed, the changes are just not

going

Quoted 40 lines

to

Quoted 2 lines

be
+# persistent over restarts. This option can be used to reduce code

size

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size by

about 1.5

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from registry)
+# main_none = Very basic example (development use only)
+#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific

functions

Quoted 19 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +19 -0
+# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
Quoted 8 lines
Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
+CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE

802.11w/D1.0
+# draft and is subject to change since the standard has not yet

been

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines

finalized.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# Driver support is also needed for IEEE 802.11w.
+#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also

CONFIG_GNUTLS_EXTRA)

Quoted 21 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-

TTLSv1.

Quoted 1 line

+# You need CONFIG_TLS=gnutls for this to have any effect. Please

note

Quoted 2 lines

that
+# even though the core GnuTLS library is released under LGPL, this

extra

Quoted 1 line

+# library uses GPL and as such, the terms of GPL apply to the

combination

Quoted 1 line

+# of wpa_supplicant and GnuTLS if this option is enabled. BSD

license may

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# apply for distribution of the resulting binary.
+#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and include

paths

Quoted 4 lines
Quoted 2 lines

are
+# needed for LibTomMath. Alternatively, an integrated, minimal

version of

Quoted 1 line

+# LibTomMath can be used. See beginning of libtommath.c for

details

Quoted 11 lines

on

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

benefits

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH
+#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the

internal

Quoted 2 lines
Quoted 2 lines

LibTomMath
+# can be configured to include faster routines for exptmod, sqr,

and

Quoted 28 lines

div

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# speed up DH and RSA calculation considerably
+#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into

wpa_supplicant/wpasvc.

Quoted 1 line

+# This is only for Windows builds and requires WMI-related header

files

Quoted 7 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# WbemUuid.Lib from Platform SDK even when building with MinGW.
+#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform SDK/Lib"
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +10 -0
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface
+#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared

libraries.

Quoted 1 line

+# When this option is enabled, each EAP method can be either

Quoted 9 lines

included

Quoted 3 lines

+# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
+# Dynamic EAP methods are build as shared objects (eap_*.so) and

they

Quoted 2 lines

need to
+# be loaded in the beginning of the wpa_supplicant configuration

file

Quoted 1 line

+# (see load_dynamic_eap parameter in the example file) before

being

Quoted 11 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in the

main

Quoted 2 lines

program
+# and in order to be able to use dynamic EAP methods using these

parts,

Quoted 2 lines

the
+# main program must have been build with the EAP method enabled

(=y

Quoted 3 lines

or

Quoted 2 lines

=dyn).
+# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as

dynamic

Quoted 5 lines
Quoted 2 lines

libraries
+# unless at least one of them was included in the main build to

force

Quoted 2 lines

inclusion
+# of the shared code. Similarly, at least one of EAP-SIM/AKA must

be

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

included

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# in the main build to be able to load these methods dynamically.
+#
+# Please also note that using dynamic libraries will increase the

total

Quoted 2 lines

binary
+# size. Thus, it may not be the best option for targets that have

Quoted 8 lines

limited

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file

(/tmp/wpa_supplicant-

Quoted 5 lines

log-

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

#.txt)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege separation'

for

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

details)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by

delaying

Quoted 7 lines
Quoted 2 lines

Michael
+# MIC error reports by a random amount of time between 0 and 60

seconds

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other registrations

and

Quoted 47 lines

Review

Quoted 18 lines

reports

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# incorrect use with a backtrace of call (or allocation) location.
+#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for the

backtraces

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz
(quoted diff) +0 -0

supplicant.sh

Quoted 17 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file mode 100755
index 0000000..5c9e5d3

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +11 -0
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+
+WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
+WPA_SUP_PNAME="wpa_supplicant"
+WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
+WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
+
+VERBOSITY=0
+
+

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh line 21

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+if [ -s "$IF_WPA_CONF" ]; then
+       WPA_SUP_CONF="-c $IF_WPA_CONF"
+else
+       exit 0
+fi
+
+if [ ! -x "$WPA_SUP_BIN" ]; then
+
+       if [ "$VERBOSITY" = "1" ]; then
+               echo "$WPA_SUP_PNAME: binaries not executable or missing

from

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines

$WPA_SUP_BIN"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +5 -0
+       fi
+
+       exit 1
+fi
+
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +8 -0
+if [ "$MODE" = "start" ] ; then
+       # driver type of interface, defaults to wext when undefined
+       if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
+               IF_WPA_DRIVER=$(cat "/etc/wpa_supplicant/driver.$IFACE")
+       elif [ -z "$IF_WPA_DRIVER" ]; then
+
+               if [ "$VERBOSITY" = "1" ]; then
+                       echo "$WPA_SUP_PNAME: wpa-driver not provided,

using

Quoted 11 lines
Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 11 lines

\"wext\""

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +10 -0
+               fi
+
+               IF_WPA_DRIVER="wext"
+       fi
+
+       # if we have passed the criteria, start wpa_supplicant
+       if [ -n "$WPA_SUP_CONF" ]; then
+
+               if [ "$VERBOSITY" = "1" ]; then
+                       echo "$WPA_SUP_PNAME: $WPA_SUP_BIN

$WPA_SUP_OPTIONS

Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 5 lines

$WPA_SUP_CONF -D $IF_WPA_DRIVER"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+               fi
+
+               start-stop-daemon --start --quiet \
+                       --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --

pidfile

Quoted 2 lines

$WPA_SUP_PIDFILE \
+ -- $WPA_SUP_OPTIONS $WPA_SUP_CONF -D

$IF_WPA_DRIVER

Quoted 3 lines
Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +3 -0
+       fi
+
+       # if the interface socket exists, then wpa_supplicant was

invoked

Quoted 5 lines
Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 5 lines

successfully

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+       if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+
+               if [ "$VERBOSITY" = "1" ]; then
+                       echo "$WPA_SUP_PNAME: ctrl_interface socket

located

Quoted 15 lines
Quoted 15 lines

at

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 13 lines

$WPA_COMMON_CTRL_IFACE/$IFACE"

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +12 -0
+               fi
+
+               exit 0
+
+       fi
+
+elif [ "$MODE" = "stop" ]; then
+
+       if [ -f "$WPA_SUP_PIDFILE" ]; then
+
+               if [ "$VERBOSITY" = "1" ]; then
+                       echo "$WPA_SUP_PNAME: terminating $WPA_SUP_PNAME

daemon"

Quoted 4 lines
Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +4 -0
+               fi
+
+               start-stop-daemon --stop --quiet \
+                       --name $WPA_SUP_PNAME --pidfile

$WPA_SUP_PIDFILE

Quoted 1,058 lines
Quoted 35 lines

Review

Quoted 14 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file +13 -0
+
+               if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+                       rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
+               fi
+
+               if [ -f "$WPA_SUP_PIDFILE" ]; then
+                       rm -f $WPA_SUP_PIDFILE
+               fi
+       fi
+
+fi
+
+exit 0
(quoted diff) +0 -0

git/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file mode 100755
index 0000000..f0c993d

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +1 -0
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file

###############################

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This file describes configuration file format and lists all

available

Quoted 2 lines

option.
+# Please also take a look at simpler configuration examples in

'examples'

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# subdirectory.
+#
+# Empty lines and lines starting with # are ignored
+
+# NOTE! This file may contain password information and should

probably be

Quoted 6 lines
Quoted 6 lines

made

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# readable only by root user on multiuser systems.
+
+# Note: All file paths in this configuration file should use full

(absolute,
+# not relative to working directory) path in order to allow

working

Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

directory
+# to be changed. This can happen if wpa_supplicant is run in the background.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+
+# Whether to allow wpa_supplicant to update (overwrite)

configuration

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# This option can be used to allow wpa_supplicant to overwrite

configuration
+# file whenever configuration is changed (e.g., new network block

is

Quoted 18 lines
Quoted 2 lines

added with
+# wpa_cli or wpa_gui, or a password is changed). This is required

for

Quoted 10 lines

+# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
+# Please note that overwriting configuration file will remove the comments from

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# it.
+#update_config=1
+
+# global configuration (shared by all network blocks)
+#
+# Parameters for the control interface. If this is specified,
Quoted 2 lines

wpa_supplicant
+# will open a control interface that is available for external

programs

Quoted 2 lines

to
+# manage wpa_supplicant. The meaning of this string depends on

which

Quoted 2 lines
Quoted 2 lines

control
+# interface mechanism is used. For all cases, the existance of

this

Quoted 9 lines
Quoted 2 lines

parameter
+# in configuration is used to determine whether the control

interface is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# enabled.
+#
+# For UNIX domain sockets (default on Linux and BSD): This is a

directory

Quoted 2 lines

that
+# will be created for UNIX domain sockets for listening to

requests

Quoted 6 lines

from

Quoted 3 lines

+# external programs (CLI/GUI, etc.) for status information and configuration.
+# The socket file will be named based on the interface name, so

multiple

Quoted 1 line

+# wpa_supplicant processes can be run at the same time if more

than

Quoted 9 lines

one

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# interface is used.
+# /var/run/wpa_supplicant is the recommended directory for sockets

and by

Quoted 1 line

+# default, wpa_cli will use it when trying to connect with

wpa_supplicant.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# Access control for the control interface can be configured by

setting

Quoted 10 lines
Quoted 2 lines

the
+# directory to allow only members of a group to use sockets. This

way, it

Quoted 4 lines

is
+# possible to run wpa_supplicant as root (since it needs to change network
+# configuration and open raw sockets) and still allow GUI/CLI

components

Quoted 2 lines

to be
+# run as non-root users. However, since the control interface can

be

Quoted 9 lines

used

Quoted 2 lines

to
+# change the network configuration, this access needs to be

protected in

Quoted 2 lines

many
+# cases. By default, wpa_supplicant is configured to use gid 0

(root). If

Quoted 2 lines

you
+# want to allow non-root users to use the control interface, add a

Quoted 9 lines

new

Quoted 2 lines

group
+# and change this value to match with that group. Add users that

should

Quoted 2 lines

have
+# control interface access to this group. If this variable is

commented

Quoted 2 lines

out or
+# not included in the configuration file, group will not be

changed

Quoted 3 lines

from

Quoted 2 lines

the
+# value it got by default when the directory or socket was

created.

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# When configuring both the directory and group, use following

format:

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# DIR=/var/run/wpa_supplicant GROUP=wheel
+# DIR=/var/run/wpa_supplicant GROUP=0
+# (group can be either group name or gid)
+#
+# For UDP connections (default on Windows): The value will be

ignored.

Quoted 7 lines
Quoted 2 lines

This
+# variable is just used to select that the control interface is to

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

created.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# The value can be set to, e.g., udp (ctrl_interface=udp)
+#
+# For Windows Named Pipe: This value can be used to set the

security

Quoted 11 lines
Quoted 2 lines

descriptor
+# for controlling access to the control interface. Security

descriptor

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

can be
+# set using Security Descriptor String Format (see
http://msdn.microsoft.com/

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# library/default.asp?url=/library/en-us/secauthz/security/
+# security_descriptor_string_format.asp). The descriptor string

needs to

Quoted 2 lines

be
+# prefixed with SDDL=. For example, ctrl_interface=SDDL=D: would

set

Quoted 11 lines

an

Quoted 2 lines

empty
+# DACL (which will reject all connections). See README-Windows.txt

for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

more

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# information about SDDL string format.
+#
+ctrl_interface=/var/run/wpa_supplicant
+
+# IEEE 802.1X/EAPOL version
+# wpa_supplicant is implemented based on IEEE Std 802.1X-2004

which

Quoted 10 lines
Quoted 2 lines

defines
+# EAPOL version 2. However, there are many APs that do not handle

the new

Quoted 1 line

+# version number correctly (they seem to drop the frames

completely). In

Quoted 2 lines

order
+# to make wpa_supplicant interoperate with these APs, the version

number

Quoted 2 lines

is set
+# to 1 by default. This configuration value can be used to set it

to

Quoted 7 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

new

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# version (2).
+eapol_version=1
+
+# AP scanning/selection
+# By default, wpa_supplicant requests driver to perform AP

scanning

Quoted 3 lines

and

Quoted 2 lines

then
+# uses the scan results to select a suitable AP. Another

alternative

Quoted 3 lines

is

Quoted 2 lines

to
+# allow the driver to take care of AP scanning and selection and

use

Quoted 8 lines
Quoted 7 lines

+# wpa_supplicant just to process EAPOL frames based on IEEE 802.11 association

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# information from the driver.
+# 1: wpa_supplicant initiates scanning and AP selection
+# 0: driver takes care of scanning, AP selection, and IEEE 802.11

association
+# parameters (e.g., WPA IE generation); this mode can also be

used

Quoted 5 lines
Quoted 2 lines

with
+# non-WPA drivers when using IEEE 802.1X mode; do not try to

associate

Quoted 2 lines

with
+# APs (i.e., external program needs to control association).

This

Quoted 16 lines

mode

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

must

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#    also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and SSID

(but

Quoted 2 lines

not
+# BSSID); this can be used, e.g., with ndiswrapper and NDIS

drivers to

Quoted 1 line

+# enable operation with hidden SSIDs and optimized roaming; in

this

Quoted 2 lines

mode,
+# the network blocks in the configuration file are tried one by

one

Quoted 2 lines

until
+# the driver reports successful association; each network block

should

Quoted 8 lines
Quoted 2 lines

have
+# explicit security policy (i.e., only one option in the lists)

for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#    key_mgmt, pairwise, group, proto variables
+ap_scan=1
+
+# EAP fast re-authentication
+# By default, fast re-authentication is enabled for all EAP

methods

Quoted 17 lines

that

Quoted 1 line

+# support it. This variable can be used to disable fast re-

authentication.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +13 -0
+# Normally, there is no need to disable this.
+fast_reauth=1
+
+# OpenSSL Engine support
+# These options can be used to load OpenSSL engines.
+# The two engines that are supported currently are shown below:
+# They are both from the opensc project (http://www.opensc.org/)
+# By default no engines are loaded.
+# make the opensc engine available
+#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
+# make the pkcs11 engine available
+#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
+# configure the path to the pkcs11 module required by the pkcs11

engine

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
+
+# Dynamic EAP methods
+# If EAP methods were built dynamically as shared object files,

they

Quoted 6 lines

need

Quoted 2 lines

to be
+# loaded here before being used in the network blocks. By default,

EAP

Quoted 2 lines

methods
+# are included statically in the build, so these lines are not

Quoted 8 lines

needed

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
+
+# Driver interface parameters
+# This field can be used to configure arbitrary driver interace

parameters. The
+# format is specific to the selected driver interface. This field

is

Quoted 9 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 7 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# in most cases.
+#driver_param="field=value"
+
+# Maximum lifetime for PMKSA in seconds; default 43200
+#dot11RSNAConfigPMKLifetime=43200
+# Threshold for reauthentication (percentage of PMK lifetime);

default 70

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#dot11RSNAConfigPMKReauthThreshold=70
+# Timeout for security association negotiation in seconds; default

60

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#dot11RSNAConfigSATimeout=60
+
+# network block
+#
+# Each network (usually AP's sharing the same SSID) is configured

as

Quoted 4 lines

a

Quoted 2 lines

separate
+# block in this configuration file. The network blocks are in

preference

Quoted 12 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 12 lines

order

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# (the first match is used).
+#
+# network block fields:
+#
+# disabled:
+#      0 = this network can be used (default)
+#      1 = this network block is disabled (can be enabled through

ctrl_iface,

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#          e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This

value

Quoted 5 lines

is

Quoted 2 lines

passed
+# to external action script through wpa_cli as WPA_ID_STR

environment

Quoted 1 line

+# variable to make it easier to do network specific

configuration.

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# ssid: SSID (mandatory); either as an ASCII string with double

quotation

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#      as hex string; network name
+#
+# scan_ssid:
+#      0 = do not scan this SSID with specific Probe Request

frames

Quoted 2 lines
Quoted 2 lines

(default)
+# 1 = scan with SSID-specific Probe Request frames (this can

be

Quoted 3 lines

used

Quoted 2 lines

to
+# find APs that do not accept broadcast SSID or use

multiple

Quoted 2 lines
Quoted 2 lines

SSIDs;
+# this will add latency to scanning, so enable this only

when

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

needed)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#
+# bssid: BSSID (optional); if set, this network block is used only

when

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#      associating with the AP using the configured BSSID
+#
+# priority: priority group (integer)
+# By default, all networks will get same priority group (0). If

some

Quoted 3 lines

of

Quoted 2 lines

the
+# networks are more desirable, this field can be used to change

the

Quoted 6 lines

order

Quoted 2 lines

in
+# which wpa_supplicant goes through the networks when selecting a

BSS.

Quoted 2 lines

The
+# priority groups will be iterated in decreasing priority (i.e.,

the

Quoted 2 lines
Quoted 2 lines

larger the
+# priority value, the sooner the network is matched against the

scan

Quoted 15 lines
Quoted 2 lines

results).
+# Within each priority group, networks will be selected based on

security

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# policy, signal strength, etc.
+# Please note that AP scanning with scan_ssid=1 and ap_scan=2 mode

are

Quoted 2 lines

not
+# using this priority to select the order for scanning. Instead,

they try

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# networks in the order that used in the configuration file.
+#
+# mode: IEEE 802.11 operation mode
+# 0 = infrastructure (Managed) mode, i.e., associate with an AP

(default)

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# 1 = IBSS (ad-hoc, peer-to-peer)
+# Note: IBSS can only be used with key_mgmt NONE (plaintext and

static

Quoted 2 lines

WEP)
+# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition,

ap_scan

Quoted 2 lines

has
+# to be set to 2 for IBSS. WPA-None requires following network

block

Quoted 2 lines
Quoted 2 lines

options:
+# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or

CCMP,

Quoted 11 lines

but

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 6 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# both), and psk must also be set.
+#
+# proto: list of accepted protocols
+# WPA = WPA/IEEE 802.11i/D3.0
+# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for

RSN)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# If not set, this defaults to: WPA RSN
+#
+# key_mgmt: list of accepted authenticated key management

protocols

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
+# WPA-EAP = WPA using EAP authentication (this can use an external
+#      program, e.g., Xsupplicant, for IEEE 802.1X EAP

Authentication

Quoted 1 line
Quoted 1 line

+# IEEE8021X = IEEE 802.1X using EAP authentication and

(optionally)

Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines

dynamically

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+#      generated WEP keys
+# NONE = WPA is not used; plaintext or static WEP could be used
+# If not set, this defaults to: WPA-PSK WPA-EAP
+#
+# auth_alg: list of allowed IEEE 802.11 authentication algorithms
+# OPEN = Open System authentication (required for WPA/WPA2)
+# SHARED = Shared Key authentication (requires static WEP keys)
+# LEAP = LEAP/Network EAP (only used with LEAP)
+# If not set, automatic selection is used (Open System with LEAP

enabled

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

if

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# LEAP is allowed as one of the EAP methods).
+#
+# pairwise: list of accepted pairwise (unicast) ciphers for WPA
+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# NONE = Use only Group Keys (deprecated, should not be included

if

Quoted 13 lines

APs

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

support

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#      pairwise keys)
+# If not set, this defaults to: CCMP TKIP
+#
+# group: list of accepted group (broadcast/multicast) ciphers for

WPA

Quoted 1 line

+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
+# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE

802.11]

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# If not set, this defaults to: CCMP TKIP WEP104 WEP40
+#
+# psk: WPA preshared key; 256-bit pre-shared key
+# The key used in WPA-PSK mode can be entered either as 64 hex-

digits,

Quoted 2 lines

i.e.,
+# 32 bytes or as an ASCII passphrase (in which case, the real PSK

will be

Quoted 1 line

+# generated using the passphrase and SSID). ASCII passphrase must

be

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

between

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+# 8 and 63 characters (inclusive).
+# This field is not needed, if WPA-EAP is used.
+# Note: Separate tool, wpa_passphrase, can be used to generate

256-

Quoted 6 lines

bit

Quoted 2 lines

keys
+# from ASCII passphrase. This process uses lot of CPU and

wpa_supplicant

Quoted 1 line

+# startup and reconfiguration time can be optimized by generating

the PSK

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

only

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# only when the passphrase or SSID has actually changed.
+#
+# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
+# Dynamic WEP key required for non-WPA mode
+# bit0 (1): require dynamically generated unicast WEP key
+# bit1 (2): require dynamically generated broadcast WEP key
+#      (3 = require both keys; default)
+# Note: When using wired authentication, eapol_flags must be set

to

Quoted 16 lines

0 for

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication to be completed successfully.
+#
+# proactive_key_caching:
+# Enable/disable opportunistic PMKSA caching for WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#
+# wep_key0..3: Static WEP key (ASCII in double quotation, e.g.

"abcde" or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# hex without quotation, e.g., 0102030405)
+# wep_tx_keyidx: Default WEP key index (TX) (0..3)
+#
+# peerkey: Whether PeerKey negotiation for direct links (IEEE

802.11e

Quoted 9 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 9 lines

DLS) is

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# allowed. This is only used with RSN/WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#peerkey=1
+#
+# Following fields are only used with internal EAP implementation.
+# eap: space-separated list of accepted EAP methods
+#      MD5 = EAP-MD5 (unsecure and does not generate keying

material ->

Quoted 1 line
Quoted 1 line

+# cannot be used with WPA; to be used as a Phase

2

Quoted 3 lines

method

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#                      with EAP-PEAP or EAP-TTLS)
+#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately with

WPA;

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

be used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#              as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       OTP = EAP-OTP (cannot be used separately with WPA; to be

used

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#              as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       GTC = EAP-GTC (cannot be used separately with WPA; to be

used

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#              as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#      TLS = EAP-TLS (client and server certificate)
+#      PEAP = EAP-PEAP (with tunnelled EAP authentication)
+#      TTLS = EAP-TTLS (with tunnelled EAP or

PAP/CHAP/MSCHAP/MSCHAPV2

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#                       authentication)
+#      If not set, all compiled in methods are allowed.
+#
+# identity: Identity string for EAP
+# anonymous_identity: Anonymous identity string for EAP (to be

used

Quoted 7 lines

as

Quoted 2 lines

the
+# unencrypted identity with EAP types that support different

tunnelled

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      identity, e.g., EAP-TTLS)
+# password: Password string for EAP
+# ca_cert: File path to CA certificate file (PEM/DER). This file

can

Quoted 3 lines

have

Quoted 2 lines

one
+# or more trusted CA certificates. If ca_cert and ca_path are

not

Quoted 4 lines
Quoted 1 line

+# included, server certificate will not be verified. This is

insecure

Quoted 2 lines

and
+# a trusted CA certificate should always be configured when

using

Quoted 5 lines
Quoted 1 line

+# EAP-TLS/TTLS/PEAP. Full path should be used since working

directory

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

may

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      change when wpa_supplicant is run in the background.
+#      On Windows, trusted CA certificates can be loaded from the

system

Quoted 1 line
Quoted 1 line

+# certificate store by setting this to cert_store://<name>,

e.g.,

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
+#      Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# ca_path: Directory path for CA certificate files (PEM). This

path

Quoted 2 lines

may

Quoted 1 line

+# contain multiple CA certificates in OpenSSL format. Common

use

Quoted 3 lines

for

Quoted 2 lines

this
+# is to point to system trusted CA list which is often

installed

Quoted 2 lines

into

Quoted 1 line

+# directory like /etc/ssl/certs. If configured, these

certificates

Quoted 2 lines

are

Quoted 1 line

+# added to the list of trusted CAs. ca_cert may also be

included in

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      case, but it is not required.
+# client_cert: File path to client certificate file (PEM/DER)
+#      Full path should be used since working directory may change

when

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      wpa_supplicant is run in the background.
+#      Alternatively, a named configuration blob can be used by

setting

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      to blob://<blob name>.
+# private_key: File path to client private key file (PEM/DER/PFX)
+#      When PKCS#12/PFX file (.p12/.pfx) is used, client_cert

should be

Quoted 1 line
Quoted 1 line

+# commented out. Both the private key and certificate will be

read

Quoted 2 lines
Quoted 2 lines

from
+# the PKCS#12 file in this case. Full path should be used

since

Quoted 4 lines
Quoted 2 lines

working
+# directory may change when wpa_supplicant is run in the

background.

Quoted 1 line

+# Windows certificate store can be used by leaving

client_cert out

Quoted 5 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#      configuring private_key in one of the following formats:
+#      cert://substring_to_match
+#      hash://certificate_thumbprint_in_hex
+#      for example:

private_key="hash://63093aa9c47f56ae88334c7b65a4"

Quoted 1 line
Quoted 1 line

+# Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# Alternatively, a named configuration blob can be used by

setting

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left out,

this

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

will be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      asked through control interface)
+# dh_file: File path to DH/DSA parameters file (in PEM format)
+#      This is an optional configuration file for setting

parameters for

Quoted 3 lines

an

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      ephemeral DH key exchange. In most cases, the default RSA
+#      authentication does not use this configuration. However, it

is

Quoted 2 lines
Quoted 2 lines

possible
+# setup RSA to use ephemeral DH key exchange. In addition,

ciphers

Quoted 4 lines
Quoted 2 lines

with
+# DSA keys always use ephemeral DH keys. This can be used to

achieve

Quoted 1 line

+# forward secrecy. If the file is in DSA parameters format,

it will

Quoted 3 lines

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      automatically converted into DH params.
+# subject_match: Substring to be matched against the subject of

the

Quoted 1 line
Quoted 1 line

+# authentication server certificate. If this string is set,

the

Quoted 2 lines

server

Quoted 1 line

+# sertificate is only accepted if it contains this string in

the

Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

subject.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      The subject string is in following format:
+#      /C=US/ST=CA/L=San Francisco/CN=Test

AS/[email protected]

Quoted 1 line

+# altsubject_match: Semicolon separated string of entries to be

matched

Quoted 4 lines

against
+# the alternative subject name of the authentication server
certificate.
+# If this string is set, the server sertificate is only

accepted if

Quoted 8 lines

it

Quoted 1 line

+# contains one of the entries in an alternative subject name

extension.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#      altSubjectName string is in following format: TYPE:VALUE
+#      Example: EMAIL:[email protected]
+#      Example: DNS:server.example.com;DNS:server2.example.com
+#      Following types are supported: EMAIL, DNS, URI
+# phase1: Phase1 (outer authentication, i.e., TLS tunnel)

parameters

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      (string with field-value pairs, e.g., "peapver=0" or
+#      "peapver=1 peaplabel=1")
+#      'peapver' can be used to force which PEAP version (0 or 1)

is

Quoted 6 lines

used.

Quoted 3 lines

+# 'peaplabel=1' can be used to force new label, "client PEAP
encryption",
+# to be used during key derivation when PEAPv1 or newer. Most

existing

Quoted 1 line

+# PEAPv1 implementation seem to be using the old label,

"client EAP

Quoted 1 line
Quoted 1 line

+# encryption", and wpa_supplicant is now using that as the

default

Quoted 5 lines
Quoted 2 lines

value.
+# Some servers, e.g., Radiator, may require peaplabel=1

configuration

Quoted 2 lines

to
+# interoperate with PEAPv1; see eap_testing.txt for more

details.

Quoted 4 lines
Quoted 1 line

+# 'peap_outer_success=0' can be used to terminate PEAP

authentication

Quoted 2 lines

on
+# tunneled EAP-Success. This is required with some RADIUS

servers

Quoted 6 lines

that

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
+#      Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
+#      include_tls_length=1 can be used to force wpa_supplicant to

include

Quoted 1 line

+# TLS Message Length field in all TLS messages even if they

are not

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      fragmented.
+#      sim_min_num_chal=3 can be used to configure EAP-SIM to

require

Quoted 4 lines

three

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      challenges (by default, it accepts 2 or 3)
+# phase2: Phase2 (inner authentication with TLS tunnel) parameters
+#      (string with field-value pairs, e.g., "auth=MSCHAPV2" for

EAP-

Quoted 4 lines

PEAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines

or

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
+# Following certificate/private key fields are used in inner

Phase2

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+# authentication when using EAP-TTLS or EAP-PEAP.
+# ca_cert2: File path to CA certificate file. This file can have

one

Quoted 5 lines

or

Quoted 2 lines

more
+# trusted CA certificates. If ca_cert2 and ca_path2 are not

included,

Quoted 1 line

+# server certificate will not be verified. This is insecure

and a

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

trusted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+#      CA certificate should always be configured.
+# ca_path2: Directory path for CA certificate files (PEM)
+# client_cert2: File path to client certificate file
+# private_key2: File path to client private key file
+# private_key2_passwd: Password for private key file
+# dh_file2: File path to DH/DSA parameters file (in PEM format)
+# subject_match2: Substring to be matched against the subject of

the

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      authentication server certificate.
+# altsubject_match2: Substring to be matched against the

alternative

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

subject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      name of the authentication server certificate.
+#
+# fragment_size: Maximum EAP fragment size in bytes (default

1398).

Quoted 1 line
Quoted 1 line

+# This value limits the fragment size for EAP methods that

support

Quoted 1 line
Quoted 1 line

+# fragmentation (e.g., EAP-TLS and EAP-PEAP). This value

should be

Quoted 2 lines

set

Quoted 1 line

+# small enough to make the EAP messages fit in MTU of the

network

Quoted 1 line
Quoted 1 line

+# interface used for EAPOL. The default value is suitable for

most

Quoted 14 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+#      cases.
+#
+# EAP-PSK variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI
+#
+# EAP-PAX variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in hex

format

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#
+# EAP-SAKE variables:
+# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in hex

format

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+#      (this is concatenation of Root-Secret-A and Root-Secret-B)
+# nai: user NAI (PEERID)
+#
+# EAP-GPSK variables:
+# eappsk: Pre-shared key in hex format (at least 128 bits, i.e.,

32

Quoted 6 lines

hex

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines

digits)

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will

need

Quoted 3 lines

to be

Quoted 2 lines

able
+# to create this file and write updates to it when PAC is

being

Quoted 1 line
Quoted 1 line

+# provisioned or refreshed. Full path to the file should be

used

Quoted 2 lines

since

Quoted 1 line

+# working directory may change when wpa_supplicant is run in

the

Quoted 1 line
Quoted 1 line

+# background. Alternatively, a named configuration blob can

be used

Quoted 3 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +2 -0
+#      setting this to blob://<blob name>
+# phase1: fast_provisioning=1 option enables in-line provisioning

of

Quoted 5 lines

EAP-

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines

FAST

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+#      credentials (PAC)
+#
+# wpa_supplicant supports number of "EAP workarounds" to work

around

Quoted 6 lines
Quoted 3 lines

+# interoperability issues with incorrectly behaving authentication servers.
+# These are enabled by default because some of the issues are

present in

Quoted 2 lines

large
+# number of authentication servers. Strict EAP conformance mode

can

Quoted 6 lines

be

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# configured by disabling workarounds with eap_workaround=0.
+
+# Example blocks:
+
+# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all

valid

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines

ciphers

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+network={
+       ssid="simple"
+       psk="very secret passphrase"
+       priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for APs

that

Quoted 81 lines
Quoted 7 lines

reject

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +6 -0
+# broadcast SSID)
+network={
+       ssid="second ssid"
+       scan_ssid=1
+       psk="very secret passphrase"
+       priority=2

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 452

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+}
+
+# Only WPA-PSK is used. Any valid cipher combination is accepted.
+network={
+       ssid="example"
+       proto=WPA
+       key_mgmt=WPA-PSK
+       pairwise=CCMP TKIP
+       group=CCMP TKIP WEP104 WEP40
+

psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac
7bb

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+       priority=2
+}
+
+# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP that

used

Quoted 8 lines

WEP104

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +7 -0
+# or WEP40 as the group cipher will not be accepted.
+network={
+       ssid="example"
+       proto=RSN
+       key_mgmt=WPA-EAP
+       pairwise=CCMP TKIP
+       group=CCMP TKIP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+       eap=TLS
+       identity="[email protected]"
+       ca_cert="/etc/cert/ca.pem"
+       client_cert="/etc/cert/user.pem"
+       private_key="/etc/cert/user.prv"
+       private_key_passwd="password"
+       priority=1
+}
+
+# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use the

new

Quoted 5 lines

peaplabel

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# (e.g., Radiator)
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+       eap=PEAP
+       identity="[email protected]"
+       password="foobar"
+       ca_cert="/etc/cert/ca.pem"
+       phase1="peaplabel=1"
+       phase2="auth=MSCHAPV2"
+       priority=10
+}
+
+# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous identity

for

Quoted 2 lines

the
+# unencrypted use. Real identity is sent only within an encrypted

TLS

Quoted 19 lines

tunnel.

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +12 -0
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP
+       eap=TTLS
+       identity="[email protected]"
+       anonymous_identity="[email protected]"
+       password="foobar"
+       ca_cert="/etc/cert/ca.pem"
+       priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the

unencrypted

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+# use. Real identity is sent only within an encrypted TLS tunnel.
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP
+       eap=TTLS
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+       identity="[email protected]"
+       anonymous_identity="[email protected]"
+       password="foobar"
+       ca_cert="/etc/cert/ca.pem"
+       phase2="auth=MSCHAPV2"
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for outer

and

Quoted 32 lines
Quoted 9 lines

inner

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+# authentication.
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP
+       eap=TTLS
+       # Phase1 / outer authentication
+       anonymous_identity="[email protected]"
+       ca_cert="/etc/cert/ca.pem"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+       # Phase 2 / inner authentication
+       phase2="autheap=TLS"
+       ca_cert2="/etc/cert/ca2.pem"
+       client_cert2="/etc/cer/user.pem"
+       private_key2="/etc/cer/user.prv"
+       private_key2_passwd="password"
+       priority=2
+}
+
+# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted as

pairwise

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 539

Quoted 10 lines

and

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +9 -0
+# group cipher.
+network={
+       ssid="example"
+       bssid=00:11:22:33:44:55
+       proto=WPA RSN
+       key_mgmt=WPA-PSK WPA-EAP
+       pairwise=CCMP
+       group=CCMP
+

psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac
7bb

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +3 -0
+}
+
+# Special characters in SSID, so use hex string. Default to WPA-

PSK,

Quoted 78 lines

WPA-

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf line 546

Quoted 5 lines

EAP

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# and all valid ciphers.
+network={
+       ssid=00010203
+

psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1
e1f

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no

WPA)

Quoted 2 lines

using
+# EAP-TLS for authentication and key generation; require both

unicast and

Quoted 33 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +33 -0
+# broadcast WEP keys.
+network={
+       ssid="1x-test"
+       key_mgmt=IEEE8021X
+       eap=TLS
+       identity="[email protected]"
+       ca_cert="/etc/cert/ca.pem"
+       client_cert="/etc/cert/user.pem"
+       private_key="/etc/cert/user.prv"
+       private_key_passwd="password"
+       eapol_flags=3
+}
+
+
+# LEAP with dynamic WEP keys
+network={
+       ssid="leap-example"
+       key_mgmt=IEEE8021X
+       eap=LEAP
+       identity="user"
+       password="foobar"
+}
+
+# Plaintext connection (no WPA, no IEEE 802.1X)
+network={
+       ssid="plaintext-test"
+       key_mgmt=NONE
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X)
+network={
+       ssid="static-wep-test"

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+       key_mgmt=NONE
+       wep_key0="abcde"
+       wep_key1=0102030405
+       wep_key2="1234567890123"
+       wep_tx_keyidx=0
+       priority=5
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X) using Shared

Key

Quoted 18 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +18 -0
+# IEEE 802.11 authentication
+network={
+       ssid="static-wep-test2"
+       key_mgmt=NONE
+       wep_key0="abcde"
+       wep_key1=0102030405
+       wep_key2="1234567890123"
+       wep_tx_keyidx=0
+       priority=5
+       auth_alg=SHARED
+}
+
+
+# IBSS/ad-hoc network with WPA-None/TKIP.
+network={
+       ssid="test adhoc"
+       mode=1
+       proto=WPA
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+       key_mgmt=WPA-NONE
+       pairwise=NONE
+       group=TKIP
+       psk="secret passphrase"
+}
+
+
+# Catch all example that allows more or less all configuration

modes

Quoted 37 lines
Quoted 37 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +37 -0
+network={
+       ssid="example"
+       scan_ssid=1
+       key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
+       pairwise=CCMP TKIP
+       group=CCMP TKIP WEP104 WEP40
+       psk="very secret passphrase"
+       eap=TTLS PEAP TLS
+       identity="[email protected]"
+       password="foobar"
+       ca_cert="/etc/cert/ca.pem"
+       client_cert="/etc/cert/user.pem"
+       private_key="/etc/cert/user.prv"
+       private_key_passwd="password"
+       phase1="peaplabel=0"
+}
+
+# Example of EAP-TLS with smartcard (openssl engine)
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP
+       eap=TLS
+       proto=RSN
+       pairwise=CCMP TKIP
+       group=CCMP TKIP
+       identity="[email protected]"
+       ca_cert="/etc/cert/ca.pem"
+       client_cert="/etc/cert/user.pem"
+
+       engine=1
+
+       # The engine configured here must be available. Look at
+       # OpenSSL engine support in the global section.
+       # The key available through the engine must be the private key
+       # matching the client certificate configured above.
+
+       # use the opensc engine
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+       #engine_id="opensc"
+       #key_id="45"
+
+       # use the pkcs11 engine
+       engine_id="pkcs11"
+       key_id="id_45"
+
+       # Optional PIN configuration; this can be left out and PIN

will

Quoted 98 lines
Quoted 17 lines

be

Quoted 16 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +5 -0
+       # asked through the control interface
+       pin="1234"
+}
+
+# Example configuration showing how to use an inlined blob as a CA

certificate

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +10 -0
+# data instead of using external file
+network={
+       ssid="example"
+       key_mgmt=WPA-EAP
+       eap=TTLS
+       identity="[email protected]"
+       anonymous_identity="[email protected]"
+       password="foobar"
+       ca_cert="blob://exampleblob"
+       priority=20
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +8 -0
+}
+
+blob-base64-exampleblob={
+SGVsbG8gV29ybGQhCg==
+}
+
+
+# Wildcard match for SSID (plaintext APs only). This example

select

Quoted 7 lines

any

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file +4 -0
+# open AP regardless of its SSID.
+network={
+       key_mgmt=NONE
+}
(quoted diff) +0 -0

git/wpa_supplicant.conf-sane b/recipes/wpa-supplicant/wpa-

supplicant-

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

git/wpa_supplicant.conf-sane
new file mode 100755
index 0000000..c91ffe0

recipes/wpa-supplicant/wpa-supplicant- new file +0 -0

git/wpa_supplicant.conf-

Quoted 11 lines

sane

Review

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
(quoted diff) +0 -0

b/recipes/wpa-

Quoted 19 lines
Quoted 12 lines

supplicant/wpa-supplicant_git.bb
new file mode 100755
index 0000000..5292a2c

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
@@ -0,0 +1,103 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+BUGTRACKER = "http://hostap.epitest.fi/bugz/"
+SECTION = "network"
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM =
Quoted 2 lines

"file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+

file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738

Quoted 3 lines

\
+

file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f13

Quoted 27 lines

6ea

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 9 lines

ce747260e"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+
+SRCREV = "b8fb017272ed4794339978c9fbc0e74571a44728"
+PR = "r0"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+DEPENDS = "gnutls dbus libnl openssl

${@base_contains("COMBINED_FEATURES",

Quoted 16 lines

"madwifi", "madwifi-ng", "",d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +15 -0
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+SRC_URI = "git://w1.fi/srv/git/hostap.git;protocol=git \
+           file://defconfig \
+           file://defaults-sane \
+           file://wpa-supplicant.sh \
+           file://wpa_supplicant.conf \
+           file://wpa_supplicant.conf-sane \
+           file://99_wpa_supplicant"
+
+S = "${WORKDIR}/git/wpa_supplicant"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+FILES_${PN} += " /usr/share/dbus-1/system-services/*"
+
+do_configure () {
+       install -m 0755 ${WORKDIR}/defconfig .config
+       echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+       echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+       echo "LIBS_p += -L${STAGING_LIBDIR}" >> .config
+       if [ "${@base_contains('COMBINED_FEATURES', 'madwifi', 1, 0,

d)}"

Quoted 24 lines
Quoted 24 lines

=

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 3 lines

"1" ]; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+               echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+               echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng"

.config

Quoted 19 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +15 -0
+       fi
+}
+
+do_compile () {
+       make
+}
+
+do_install () {
+       install -d ${D}${sbindir}
+       install -m 755 wpa_supplicant ${D}${sbindir}
+       install -m 755 wpa_passphrase ${D}${sbindir}
+       install -m 755 wpa_cli        ${D}${sbindir}
+
+       install -d ${D}${docdir}/wpa_supplicant
+       install -m 644 README ${WORKDIR}/wpa_supplicant.conf

${D}${docdir}/wpa_supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+
+       install -d ${D}${sysconfdir}/default
+       install -m 600 ${WORKDIR}/defaults-sane
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 8 lines

${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane
${D}${sysconfdir}/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+
+       install -d ${D}${sysconfdir}/network/if-pre-up.d/
+       install -d ${D}${sysconfdir}/network/if-post-down.d/
+       install -d ${D}${sysconfdir}/network/if-down.d/
+       install -m 644 ${WORKDIR}/wpa_supplicant.conf

${D}${sysconfdir}

Quoted 62 lines
Quoted 62 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 4 lines

+ install -m 755 ${WORKDIR}/wpa-supplicant.sh
${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+       cd ${D}${sysconfdir}/network/ && \
+       ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-

supplicant

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+
+       if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config || grep -q

^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+               install -d ${D}/${sysconfdir}/dbus-1/system.d
+               install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf

${D}/${sysconfdir}/dbus-1/system.d

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+               install -d ${D}/${datadir}/dbus-1/system-services
+               if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config; then
+                       sed -i -e s:/sbin:${sbindir}:g
Quoted 3 lines

${S}/dbus/fi.epitest.hostap.WPASupplicant.service
+ install -m 644
${S}/dbus/fi.epitest.hostap.WPASupplicant.service

${D}/${datadir}/dbus-

Quoted 6 lines

1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+               fi
+               if grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then
+                       sed -i -e s:/sbin:${sbindir}:g

${S}/dbus/fi.w1.wpa_supplicant1.service
+ install -m 644

${S}/dbus/fi.w1.wpa_supplicant1.service

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines

${D}/${datadir}/dbus-1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+               fi
+       fi
+
+       install -d ${D}/etc/default/volatiles
+       install -m 0644 ${WORKDIR}/99_wpa_supplicant

${D}/etc/default/volatiles

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+}
+
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the

misleading

Quoted 21 lines

'arm' on armv5te builds

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi',

'${MACHINE_ARCH}', '${MY_ARCH}', d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -1
+
+pkg_postinst_wpa-supplicant () {
+       # can't do this offline
+       if [ "x$D" != "x" ]; then
+               exit 1
+       fi
+
+       DBUSPID=`pidof dbus-daemon`
+
+       if [ "x$DBUSPID" != "x" ]; then
+               /etc/init.d/dbus-1 reload
+       fi
+}
--

1.7.0.4

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-

devel

#5 lore raw
Quoted 23 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, April 13, 2011 2:46 PM
To: Reizer, Eyal; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 8 lines

-----Original Message-----
From: Reizer, Eyal
Sent: Wednesday, April 13, 2011 11:38 AM
To: Maupin, Chase; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

I have also checked the option of using 0.7.inc the git recipe. However there are a couple of differences like in the do_configure

section

Quoted 3 lines

and also
in SRC_URI (which uses a git address instead of a zip).
I would need to make significant modification to the include file as

well

Quoted 2 lines

as to both 0.7.3 and
The git recipe to be able to use the same include file which I don't

think

Quoted 9 lines
Quoted 2 lines

are worth the effort,
and adds a risk of breaking the 0.7.3 recipe.

Eyal,

Why don't you just include the .inc file and then override the parts that need to be different? No reason to duplicate all the other functions.

Chase,

Would this be a valid thing to do?
Can I have two do_configure () sections in the same recipe?

Quoted 2,225 lines
Quoted 10 lines
Quoted 10 lines

-----Original Message-----
From: Reizer, Eyal
Sent: Wednesday, April 13, 2011 9:20 AM
To: Maupin, Chase; [email protected]
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

I will improve the commit message to clear this confusion.

The version built from the git is actually version 0.8.x which is a

new

Quoted 1 line
Quoted 1 line

family of versions and include new features (like wifi-direct) used

by

Quoted 4 lines
Quoted 4 lines

new mac80211 versions.
It would look proper if we include a 0.7.inc file in it.

As this is currently the only 0.8 version I think it is better to

wait

Quoted 1 line
Quoted 1 line

until 0.8 comes out as an official zip and than create such an

include

Quoted 21 lines
Quoted 21 lines

file as well for 0.8

Quoted 10 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, April 13, 2011 7:54 AM
To: [email protected]
Cc: Reizer, Eyal
Subject: RE: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On

Behalf

Quoted 8 lines

Of

Quoted 6 lines

Eyal Reizer
Sent: Tuesday, April 12, 2011 4:54 PM
To: [email protected]
Cc: Reizer, Eyal
Subject: [oe] [PATCH] wpa-supplicant: Build from git sources

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Need a more detailed commit message. Can you re-use the wpa- supplicant-0.7.inc include file? 90% of this stuff seems the

same.

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
---
 .../wpa-supplicant-git/99_wpa_supplicant           |    1 +
 .../wpa-supplicant-git/defaults-sane               |    8 +
 .../wpa-supplicant/wpa-supplicant-git/defconfig    |  422

++++++++++++

Quoted 9 lines
 .../wpa-supplicant-git/wpa-supplicant.sh           |   85 +++
 .../wpa-supplicant-git/wpa_supplicant.conf         |  690
++++++++++++++++++++
 .../wpa-supplicant-git/wpa_supplicant.conf-sane    |    7 +
 recipes/wpa-supplicant/wpa-supplicant_git.bb       |  103 +++
 7 files changed, 1316 insertions(+), 0 deletions(-)
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/99_wpa_supplicant
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

git/defaults-

Quoted 2 lines

sane

 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/defconfig

Quoted 1 line
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-

git/wpa-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

supplicant.sh

 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf
 create mode 100755 recipes/wpa-supplicant/wpa-supplicant-
git/wpa_supplicant.conf-sane
 create mode 100755 recipes/wpa-supplicant/wpa-

supplicant_git.bb

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

git/99_wpa_supplicant

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/99_wpa_supplicant new file mode 100755
index 0000000..6ff4dd8

recipes/wpa-supplicant/wpa-supplicant- new file +0 -0

git/99_wpa_supplicant

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +1 -0
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
(quoted diff) +0 -0

git/defaults-

Quoted 9 lines
Quoted 9 lines

sane

Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane line 2

Quoted 8 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file mode 100755
index 0000000..67c4cbd

recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +2 -0
@@ -0,0 +1,8 @@
+# Useful flags:
+#  -i <ifname>          Interface (required, unless specified

in

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

config)

Review

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defaults-sane new file +6 -0
+#  -D <driver>          Wireless Driver
+#  -d                   Debugging (-dd for more)
+#  -q                   Quiet (-qq for more)
+
+CONFIG="/etc/wpa_supplicant.conf"
+OPTIONS="-i eth1 -D wext"
(quoted diff) +0 -0

git/defconfig

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 3

Quoted 9 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file mode 100755
index 0000000..d9be1a8

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
@@ -0,0 +1,422 @@
+# Example wpa_supplicant build time configuration
+#
+# This file lists the configuration options that are used when

building

Quoted 2 lines

the
+# hostapd binary. All lines starting with # are ignored.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Configuration

Quoted 2 lines

option
+# lines must be commented out complete, if they are not to be

included,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

i.e.,

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS

and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

LIBS

Quoted 2 lines

can also
+# be modified from here. In most cases, these lines should use

+=

Quoted 7 lines
Quoted 7 lines

in

Quoted 6 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

order not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have

installed

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

OpenSSL

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or GnuTLS in non-default location
+#CFLAGS += -I/usr/local/openssl/include
+#LIBS += -L/usr/local/openssl/lib
+
+# Some Red Hat versions seem to include kerberos header files

from

Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

OpenSSL, but
+# the kerberos files are not in the default include path.

Following

Quoted 6 lines

line

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

can be

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# used to fix build issues on such systems (krb5.h not found).
+#CFLAGS += -I/usr/include/kerberos
+
+# Example configuration for various cross-compilation

platforms

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### sveasoft (e.g., for Linksys WRT54G)

######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS += -I../src/include -

I../../src/router/openssl/include

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines

+#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib -lssl

+######################################################################

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines

###

recipes/wpa-supplicant/wpa-supplicant-git/defconfig line 39

Quoted 11 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+
+#### openwrt (e.g., for Linksys WRT54G)

#######################################

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+#CC=mipsel-uclibc-gcc
+#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
+#CFLAGS += -Os
+#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include \
+#    -I../WRT54GS/release/src/include
+#LIBS = -lssl

+######################################################################

Quoted 41 lines
Quoted 41 lines
Quoted 32 lines

###

Quoted 31 lines

######

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +30 -0
+
+CC=$(CROSS_COMPILE)gcc
+#CFLAGS += -DCONFIG_LIBNL20
+#CPPFLAGS += -DCONFIG_LIBNL20
+#LIBS += -L$(NFSROOT)/lib -lnl
+#LIBS_p += -L$(NFSROOT)/lib
+#LIBDIR = $(NFSROOT)/lib
+#BINDIR = $(NFSROOT)/usr/sbin
+
+CONFIG_WAPI=y
+CONFIG_LIBNL20=y
+NEED_BGSCAN=y
+CONFIG_BGSCAN_LEARN=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for Agere driver
+#CONFIG_DRIVER_HERMES=y
+# Change include directories to match with the local setup
+#CFLAGS += -I../../hcf -I../../include -I../../include/hcf
+#CFLAGS += -I../../include/wireless
+
+# Driver interface for madwifi driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_MADWIFI=y
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
+
+# Driver interface for ndiswrapper
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_NDISWRAPPER=y
+
+# Driver interface for Atmel driver
+#CONFIG_DRIVER_ATMEL=y
+
+# Driver interface for old Broadcom driver
+# Please note that the newer Broadcom driver ("hybrid Linux

driver")

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

supports
+# Linux wireless extensions and does not need (or even work)

with

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

the old

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# driver wrapper. Use CONFIG_DRIVER_WEXT=y with that driver.
+#CONFIG_DRIVER_BROADCOM=y
+# Example path for wlioctl.h; change to match your

configuration

Quoted 18 lines
Quoted 18 lines
Quoted 14 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +13 -0
+#CFLAGS += -I/opt/WRT54GS/release/src/include
+
+# Driver interface for Intel ipw2100/2200 driver
+# Deprecated; use CONFIG_DRIVER_WEXT=y instead.
+#CONFIG_DRIVER_IPW=y
+
+# Driver interface for Ralink driver
+#CONFIG_DRIVER_RALINK=y
+
+# Driver interface for generic Linux wireless extensions
+CONFIG_DRIVER_WEXT=y
+
+# Driver interface for Linux drivers using the nl80211 kernel

interface

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros

driver)

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+#LIBS_p += -L/usr/local/lib
+#LIBS_c += -L/usr/local/lib
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+
+# Driver interface for Windows NDIS
+#CONFIG_DRIVER_NDIS=y
+#CFLAGS += -I/usr/include/w32api/ddk
+#LIBS += -L/usr/local/lib
+# For native build using mingw
+#CONFIG_NATIVE_WINDOWS=y
+# Additional directories for cross-compilation on Linux host

for

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

mingw

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

target

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CFLAGS += -I/opt/mingw/mingw32/include/ddk
+#LIBS += -L/opt/mingw/mingw32/lib
+#CC=mingw32-gcc
+# By default, driver_ndis uses WinPcap for low-level

operations.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This can

Quoted 2 lines

be
+# replaced with the following option which replaces WinPcap

calls

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

with

Quoted 2 lines

NDISUIO.
+# However, this requires that WZC is disabled (net stop

wzcsvc)

Quoted 22 lines
Quoted 22 lines
Quoted 9 lines

before

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines

starting

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# wpa_supplicant.
+# CONFIG_USE_NDISUIO=y
+
+# Driver interface for development testing
+#CONFIG_DRIVER_TEST=y
+
+# Include client MLME (management frame processing) for test

driver

Quoted 1 line
Quoted 1 line

+# This can be used to test MLME operations in hostapd with the

test

Quoted 10 lines
Quoted 10 lines

interface.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# space.
+#CONFIG_CLIENT_MLME=y
+
+# Driver interface for wired Ethernet drivers
+CONFIG_DRIVER_WIRED=y
+
+# Driver interface for the Broadcom RoboSwitch family
+#CONFIG_DRIVER_ROBOSWITCH=y
+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# Driver interface for no driver (e.g., WPS ER only)
+#CONFIG_DRIVER_NONE=y
+
+# Solaris libraries
+#LIBS += -lsocket -ldlpi -lnsl
+#LIBS_c += -lsocket
+
+# Enable IEEE 802.1X Supplicant (automatically included if any

EAP

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

method

Quoted 13 lines

is

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +12 -0
+# included)
+CONFIG_IEEE8021X_EAPOL=y
+
+# EAP-MD5
+CONFIG_EAP_MD5=y
+
+# EAP-MSCHAPv2
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-TLS
+CONFIG_EAP_TLS=y
+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# EAL-PEAP
+CONFIG_EAP_PEAP=y
+
+# EAP-TTLS
+CONFIG_EAP_TTLS=y
+
+# EAP-FAST
+# Note: Default OpenSSL package does not include support for

all

Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line
Quoted 1 line

+# functionality needed for EAP-FAST. If EAP-FAST is enabled

with

Quoted 45 lines
Quoted 45 lines
Quoted 36 lines

OpenSSL,

Quoted 35 lines

+# the OpenSSL library must be patched (openssl-0.9.8d-tls- extensions.patch)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +32 -0
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# EAP-GTC
+CONFIG_EAP_GTC=y
 
+
+# EAP-OTP
+CONFIG_EAP_OTP=y
+
+# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
+#CONFIG_EAP_SIM=y
+
+# EAP-PSK (experimental; this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-PAX
+#CONFIG_EAP_PAX=y
+
+# LEAP
+CONFIG_EAP_LEAP=y
+
+# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# Enable USIM simulator (Milenage) for EAP-AKA
+#CONFIG_USIM_SIMULATOR=y
+
+# EAP-SAKE
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-TNC and related Trusted Network Connect support

(experimental)

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 11 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +11 -0
+#CONFIG_EAP_TNC=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# PKCS#12 (PFX) support (used to read private key and

certificate

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

file

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

from

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# a file that usually has extension .p12 or .pfx)
+CONFIG_PKCS12=y
+
+# Smartcard support (i.e., private key on a smartcard), e.g.,

with

Quoted 26 lines
Quoted 26 lines
Quoted 13 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 12 lines

openssl

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +11 -0
+# engine.
+CONFIG_SMARTCARD=y
+
+# PC/SC interface for smartcards (USIM, GSM SIM)
+# Enable this if EAP-SIM or EAP-AKA is included
+#CONFIG_PCSC=y
+
+# Development testing
+#CONFIG_EAPOL_TEST=y
+
+# Select control interface backend for external programs, e.g,

wpa_cli:

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# unix = UNIX domain sockets (default for Linux/*BSD)
+# udp = UDP sockets using localhost (127.0.0.1)
+# named_pipe = Windows Named Pipe (default for Windows)
+# y = use default (backwards compatibility)
+# If this option is commented out, control interface is not

included

Quoted 6 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# build.
+CONFIG_CTRL_IFACE=y
+
+# Include support for GNU Readline and History Libraries in

wpa_cli.

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

+# When building a wpa_cli binary for distribution, please note

that

Quoted 2 lines

these

Quoted 1 line

+# libraries are licensed under GPL and as such, BSD license

may

Quoted 9 lines
Quoted 9 lines

not

Quoted 8 lines

apply

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

for

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# the resulting binary.
+#CONFIG_READLINE=y
+
+# Remove debugging code that is printing out debug message to

stdout.

Quoted 1 line

+# This can be used to reduce the size of the wpa_supplicant

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

considerably

Quoted 1 line

+# if debugging code is not needed. The size reduction can be

around

Quoted 5 lines

35%

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# (e.g., 90 kB).
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove WPA support, e.g., for wired-only IEEE 802.1X

supplicant,

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

save

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# 35-50 kB in code size.
+#CONFIG_NO_WPA=y
+
+# Remove WPA2 support. This allows WPA to be used, but removes

WPA2

Quoted 3 lines

code

Quoted 2 lines

to
+# save about 1 kB in code size when building only WPA-Personal

(no

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

EAP

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

support)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# or 6 kB if building for WPA-Enterprise.
+#CONFIG_NO_WPA2=y
+
+# Remove IEEE 802.11i/WPA-Personal ASCII passphrase support
+# This option can be used to reduce code size by removing

support

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for

Quoted 1 line

+# converting ASCII passphrases into PSK. If this functionality

is

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

removed,

Quoted 2 lines

the
+# PSK can only be configured as the 64-octet hexstring (e.g.,

from

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# wpa_passphrase). This saves about 0.5 kB in code size.
+#CONFIG_NO_WPA_PASSPHRASE=y
+
+# Disable scan result processing (ap_mode=1) to save code size

by

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

about 1

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# This can be used if ap_scan=1 mode is never enabled.
+#CONFIG_NO_SCAN_PROCESSING=y
+
+# Select configuration backend:
+# file = text file (e.g., wpa_supplicant.conf; note: the

configuration

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

file
+# path is given on command line, not here; this option is

just used

Quoted 2 lines

to

Quoted 1 line

+# select the backend that allows configuration files to be

used)

Quoted 1 line
Quoted 1 line

+# winreg = Windows registry (see win_example.reg for an

example)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_BACKEND=file
+
+# Remove configuration write functionality (i.e., to allow the

configuration
+# file to be updated based on runtime configuration changes).

The

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

runtime

Quoted 1 line

+# configuration can still be changed, the changes are just not

going

Quoted 3 lines

to

Quoted 2 lines

be
+# persistent over restarts. This option can be used to reduce

code

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

size

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

by

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# about 3.5 kB.
+#CONFIG_NO_CONFIG_WRITE=y
+
+# Remove support for configuration blobs to reduce code size

by

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

about 1.5

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 6 lines

kB.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+#CONFIG_NO_CONFIG_BLOBS=y
+
+# Select program entry point implementation:
+# main = UNIX/POSIX like main() function (default)
+# main_winsvc = Windows service (read parameters from

registry)

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# main_none = Very basic example (development use only)
+#CONFIG_MAIN=main
+
+# Select wrapper for operatins system and C library specific

functions

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +13 -0
+# unix = UNIX/POSIX like systems (default)
+# win32 = Windows systems
+# none = Empty template
+#CONFIG_OS=unix
+
+# Select event loop implementation
+# eloop = select() loop (default)
+# eloop_win = Windows events and WaitForMultipleObject() loop
+# eloop_none = Empty template
+#CONFIG_ELOOP=eloop
+
+# Select layer 2 packet implementation
+# linux = Linux packet socket (default)
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+# pcap = libpcap/libdnet/WinPcap
+# freebsd = FreeBSD libpcap
+# winpcap = WinPcap with receive thread
+# ndis = Windows NDISUIO (note: requires CONFIG_USE_NDISUIO=y)
+# none = Empty template
+#CONFIG_L2_PACKET=linux
+
+# PeerKey handshake for Station to Station Link (IEEE 802.11e

DLS)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+CONFIG_PEERKEY=y
+
+# IEEE 802.11w (management frame protection)
+# This version is an experimental implementation based on IEEE

802.11w/D1.0
+# draft and is subject to change since the standard has not

yet

Quoted 9 lines
Quoted 9 lines

been

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines

finalized.

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# Driver support is also needed for IEEE 802.11w.
+#CONFIG_IEEE80211W=y
+
+# Select TLS implementation
+# openssl = OpenSSL (default)
+# gnutls = GnuTLS (needed for TLS/IA, see also

CONFIG_GNUTLS_EXTRA)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +5 -0
+# internal = Internal TLSv1 implementation (experimental)
+# none = Empty template
+#CONFIG_TLS=openssl
+
+# Whether to enable TLS/IA support, which is required for EAP-

TTLSv1.

Quoted 1 line

+# You need CONFIG_TLS=gnutls for this to have any effect.

Please

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

note

Quoted 2 lines

that
+# even though the core GnuTLS library is released under LGPL,

this

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

extra

Quoted 1 line

+# library uses GPL and as such, the terms of GPL apply to the

combination

Quoted 1 line

+# of wpa_supplicant and GnuTLS if this option is enabled. BSD

license may

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

not

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# apply for distribution of the resulting binary.
+#CONFIG_GNUTLS_EXTRA=y
+
+# If CONFIG_TLS=internal is used, additional library and

include

Quoted 18 lines
Quoted 18 lines
Quoted 5 lines

paths

Quoted 2 lines

are
+# needed for LibTomMath. Alternatively, an integrated, minimal

version of

Quoted 1 line

+# LibTomMath can be used. See beginning of libtommath.c for

details

Quoted 11 lines

on

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 10 lines

benefits

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +9 -0
+# and drawbacks of this option.
+#CONFIG_INTERNAL_LIBTOMMATH=y
+#ifndef CONFIG_INTERNAL_LIBTOMMATH
+#LTM_PATH=/usr/src/libtommath-0.39
+#CFLAGS += -I$(LTM_PATH)
+#LIBS += -L$(LTM_PATH)
+#LIBS_p += -L$(LTM_PATH)
+#endif
+# At the cost of about 4 kB of additional binary size, the

internal

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

LibTomMath
+# can be configured to include faster routines for exptmod,

sqr,

Quoted 9 lines
Quoted 9 lines

and

Quoted 8 lines

div

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 5 lines

to

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+# speed up DH and RSA calculation considerably
+#CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
+# Include NDIS event processing through WMI into

wpa_supplicant/wpasvc.

Quoted 1 line

+# This is only for Windows builds and requires WMI-related

header

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

files

Quoted 2 lines

and
+# WbemUuid.Lib from Platform SDK even when building with

MinGW.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+#CONFIG_NDIS_EVENTS_INTEGRATED=y
+#PLATFORMSDKLIB="/opt/Program Files/Microsoft Platform

SDK/Lib"

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 13 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +13 -0
+
+# Add support for old DBus control interface
+# (fi.epitest.hostap.WPASupplicant)
+#CONFIG_CTRL_IFACE_DBUS=y
+
+# Add support for new DBus control interface
+# (fi.w1.hostap.wpa_supplicant1)
+#CONFIG_CTRL_IFACE_DBUS_NEW=y
+
+# Add introspection support for new DBus control interface
+#CONFIG_CTRL_IFACE_DBUS_INTRO=y
+
+# Add support for loading EAP methods dynamically as shared

libraries.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

+# When this option is enabled, each EAP method can be either

included

Quoted 3 lines

+# statically (CONFIG_EAP_<method>=y) or dynamically (CONFIG_EAP_<method>=dyn).
+# Dynamic EAP methods are build as shared objects (eap_*.so)

and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

they

Quoted 2 lines

need to
+# be loaded in the beginning of the wpa_supplicant

configuration

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

file

Quoted 1 line

+# (see load_dynamic_eap parameter in the example file) before

being

Quoted 5 lines

used

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

in

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+# the network blocks.
+#
+# Note that some shared parts of EAP methods are included in

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

main

Quoted 2 lines

program
+# and in order to be able to use dynamic EAP methods using

these

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

parts,

Quoted 2 lines

the
+# main program must have been build with the EAP method

enabled

Quoted 7 lines
Quoted 7 lines

(=y

Quoted 3 lines

or

Quoted 2 lines

=dyn).
+# This means that EAP-TLS/PEAP/TTLS/FAST cannot be added as

dynamic

Quoted 2 lines
Quoted 2 lines

libraries
+# unless at least one of them was included in the main build

to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

force

Quoted 2 lines

inclusion
+# of the shared code. Similarly, at least one of EAP-SIM/AKA

must

Quoted 3 lines
Quoted 3 lines

be

Quoted 2 lines
Quoted 2 lines

included
+# in the main build to be able to load these methods

dynamically.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +2 -0
+#
+# Please also note that using dynamic libraries will increase

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

total

Quoted 2 lines

binary
+# size. Thus, it may not be the best option for targets that

have

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

limited

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +7 -0
+# amount of memory/flash.
+#CONFIG_DYNAMIC_EAP_METHODS=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Add support for writing debug log to a file

(/tmp/wpa_supplicant-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

log-

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

#.txt)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+CONFIG_DEBUG_FILE=y
+
+# Enable privilege separation (see README 'Privilege

separation'

Quoted 8 lines
Quoted 8 lines

for

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines

details)

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +3 -0
+#CONFIG_PRIVSEP=y
+
+# Enable mitigation against certain attacks against TKIP by

delaying

Quoted 2 lines
Quoted 2 lines

Michael
+# MIC error reports by a random amount of time between 0 and

60

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

seconds

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +4 -0
+#CONFIG_DELAYED_MIC_ERROR_REPORT=y
+
+# Enable tracing code for developer debugging
+# This tracks use of memory allocations and other

registrations

Quoted 3 lines
Quoted 3 lines

and

Quoted 2 lines
Quoted 2 lines

reports
+# incorrect use with a backtrace of call (or allocation)

location.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/defconfig

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +8 -0
+#CONFIG_WPA_TRACE=y
+# For BSD, comment out these.
+#LIBS += -lexecinfo
+#LIBS_p += -lexecinfo
+#LIBS_c += -lexecinfo
+
+# Use libbfd to get more details for developer debugging
+# This enables use of libbfd to get more detailed symbols for

the

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Review

Quoted 8 lines

backtraces

recipes/wpa-supplicant/wpa-supplicant-git/defconfig new file +6 -0
+# generated by CONFIG_WPA_TRACE=y.
+#CONFIG_WPA_TRACE_BFD=y
+# For BSD, comment out these.
+#LIBS += -lbfd -liberty -lz
+#LIBS_p += -lbfd -liberty -lz
+#LIBS_c += -lbfd -liberty -lz
(quoted diff) +0 -0

supplicant.sh

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 5 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa-supplicant.sh new file mode 100755
index 0000000..5c9e5d3

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +0 -0

supplicant.sh

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +13 -0
@@ -0,0 +1,85 @@
+#!/bin/sh
+
+
+WPA_SUP_BIN="/usr/sbin/wpa_supplicant"
+WPA_SUP_PNAME="wpa_supplicant"
+WPA_SUP_PIDFILE="/var/run/wpa_supplicant.$IFACE.pid"
+WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $IFACE"
+
+VERBOSITY=0
+
+
+if [ -s "$IF_WPA_CONF" ]; then
+     WPA_SUP_CONF="-c $IF_WPA_CONF"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa- line 21

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +8 -0
+else
+     exit 0
+fi
+
+if [ ! -x "$WPA_SUP_BIN" ]; then
+
+     if [ "$VERBOSITY" = "1" ]; then
+             echo "$WPA_SUP_PNAME: binaries not executable or

missing

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

from

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 10 lines

$WPA_SUP_BIN"

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +9 -0
+     fi
+
+     exit 1
+fi
+
+if [ "$MODE" = "start" ] ; then
+     # driver type of interface, defaults to wext when undefined
+     if [ -s "/etc/wpa_supplicant/driver.$IFACE" ]; then
+             IF_WPA_DRIVER=$(cat

"/etc/wpa_supplicant/driver.$IFACE")

Quoted 37 lines
Quoted 4 lines
Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +4 -0
+     elif [ -z "$IF_WPA_DRIVER" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: wpa-driver not provided,

using

Quoted 11 lines
Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 11 lines

\"wext\""

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +10 -0
+             fi
+
+             IF_WPA_DRIVER="wext"
+     fi
+
+     # if we have passed the criteria, start wpa_supplicant
+     if [ -n "$WPA_SUP_CONF" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: $WPA_SUP_BIN

$WPA_SUP_OPTIONS

Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 5 lines

$WPA_SUP_CONF -D $IF_WPA_DRIVER"

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +4 -0
+             fi
+
+             start-stop-daemon --start --quiet \
+                     --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --

pidfile

Quoted 2 lines

$WPA_SUP_PIDFILE \
+ -- $WPA_SUP_OPTIONS $WPA_SUP_CONF -D

$IF_WPA_DRIVER

Quoted 3 lines
Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +3 -0
+     fi
+
+     # if the interface socket exists, then wpa_supplicant was

invoked

Quoted 5 lines
Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 5 lines

successfully

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +4 -0
+     if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: ctrl_interface socket

located

Quoted 1 line
Quoted 1 line

at

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

$WPA_COMMON_CTRL_IFACE/$IFACE"

recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +4 -0
+             fi
+
+             exit 0
+
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-git/wpa-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +8 -0
+     fi
+
+elif [ "$MODE" = "stop" ]; then
+
+     if [ -f "$WPA_SUP_PIDFILE" ]; then
+
+             if [ "$VERBOSITY" = "1" ]; then
+                     echo "$WPA_SUP_PNAME: terminating

$WPA_SUP_PNAME

Quoted 21 lines
Quoted 5 lines
Quoted 5 lines

daemon"

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +4 -0
+             fi
+
+             start-stop-daemon --stop --quiet \
+                     --name $WPA_SUP_PNAME --pidfile

$WPA_SUP_PIDFILE

Quoted 15 lines
Quoted 15 lines

Review

Quoted 14 lines
recipes/wpa-supplicant/wpa-supplicant-git/wpa- new file +13 -0
+
+             if [ -S "$WPA_COMMON_CTRL_IFACE/$IFACE" ]; then
+                     rm -f $WPA_COMMON_CTRL_IFACE/$IFACE
+             fi
+
+             if [ -f "$WPA_SUP_PIDFILE" ]; then
+                     rm -f $WPA_SUP_PIDFILE
+             fi
+     fi
+
+fi
+
+exit 0
(quoted diff) +0 -0

git/wpa_supplicant.conf

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

b/recipes/wpa-supplicant/wpa-supplicant-git/wpa_supplicant.conf new file mode 100755
index 0000000..f0c993d

recipes/wpa-supplicant/wpa-supplicant- new file +0 -0

git/wpa_supplicant.conf

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +1 -0
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file

###############################

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# This file describes configuration file format and lists all

available

Quoted 2 lines

option.
+# Please also take a look at simpler configuration examples in

'examples'

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+# subdirectory.
+#
+# Empty lines and lines starting with # are ignored
+
+# NOTE! This file may contain password information and should

probably be

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

made

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# readable only by root user on multiuser systems.
+
+# Note: All file paths in this configuration file should use

full

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

(absolute,
+# not relative to working directory) path in order to allow

working

Quoted 2 lines
Quoted 2 lines

directory
+# to be changed. This can happen if wpa_supplicant is run in

the

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

background.

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+
+# Whether to allow wpa_supplicant to update (overwrite)

configuration

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# This option can be used to allow wpa_supplicant to overwrite

configuration
+# file whenever configuration is changed (e.g., new network

block

Quoted 3 lines
Quoted 3 lines

is

Quoted 2 lines
Quoted 2 lines

added with
+# wpa_cli or wpa_gui, or a password is changed). This is

required

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for

Quoted 1 line

+# wpa_cli/wpa_gui to be able to store the configuration

changes

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

permanently.
+# Please note that overwriting configuration file will remove

the

Quoted 15 lines
Quoted 15 lines
Quoted 12 lines
Quoted 9 lines

comments from

recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# it.
+#update_config=1
+
+# global configuration (shared by all network blocks)
+#
+# Parameters for the control interface. If this is specified,

wpa_supplicant
+# will open a control interface that is available for external

programs

Quoted 2 lines

to
+# manage wpa_supplicant. The meaning of this string depends on

which

Quoted 2 lines
Quoted 2 lines

control
+# interface mechanism is used. For all cases, the existance of

Quoted 7 lines
Quoted 7 lines

this

Quoted 6 lines
Quoted 2 lines

parameter
+# in configuration is used to determine whether the control

interface is

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# enabled.
+#
+# For UNIX domain sockets (default on Linux and BSD): This is

a

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

directory

Quoted 2 lines

that
+# will be created for UNIX domain sockets for listening to

requests

Quoted 4 lines

from

Quoted 3 lines

+# external programs (CLI/GUI, etc.) for status information and configuration.
+# The socket file will be named based on the interface name,

so

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

multiple

Quoted 1 line

+# wpa_supplicant processes can be run at the same time if more

than

Quoted 3 lines

one

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# interface is used.
+# /var/run/wpa_supplicant is the recommended directory for

sockets

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

and by

Quoted 1 line

+# default, wpa_cli will use it when trying to connect with

wpa_supplicant.

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# Access control for the control interface can be configured

by

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

setting

Quoted 2 lines

the
+# directory to allow only members of a group to use sockets.

This

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

way, it

Quoted 2 lines

is
+# possible to run wpa_supplicant as root (since it needs to

change

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

network
+# configuration and open raw sockets) and still allow GUI/CLI

components

Quoted 2 lines

to be
+# run as non-root users. However, since the control interface

can

Quoted 10 lines
Quoted 10 lines

be

Quoted 9 lines

used

Quoted 2 lines

to
+# change the network configuration, this access needs to be

protected in

Quoted 2 lines

many
+# cases. By default, wpa_supplicant is configured to use gid 0

(root). If

Quoted 2 lines

you
+# want to allow non-root users to use the control interface,

add a

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

new

Quoted 2 lines

group
+# and change this value to match with that group. Add users

that

Quoted 14 lines
Quoted 14 lines
Quoted 6 lines

should

Quoted 2 lines

have
+# control interface access to this group. If this variable is

commented

Quoted 2 lines

out or
+# not included in the configuration file, group will not be

changed

Quoted 3 lines

from

Quoted 2 lines

the
+# value it got by default when the directory or socket was

created.

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# When configuring both the directory and group, use following

format:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+# DIR=/var/run/wpa_supplicant GROUP=wheel
+# DIR=/var/run/wpa_supplicant GROUP=0
+# (group can be either group name or gid)
+#
+# For UDP connections (default on Windows): The value will be

ignored.

Quoted 2 lines

This
+# variable is just used to select that the control interface

is to

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

be

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

created.

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# The value can be set to, e.g., udp (ctrl_interface=udp)
+#
+# For Windows Named Pipe: This value can be used to set the

security

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

descriptor
+# for controlling access to the control interface. Security

descriptor

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

can be
+# set using Security Descriptor String Format (see
http://msdn.microsoft.com/

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# library/default.asp?url=/library/en-us/secauthz/security/
+# security_descriptor_string_format.asp). The descriptor

string

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

needs to

Quoted 2 lines

be
+# prefixed with SDDL=. For example, ctrl_interface=SDDL=D:

would

Quoted 4 lines
Quoted 4 lines

set

Quoted 3 lines

an

Quoted 2 lines

empty
+# DACL (which will reject all connections). See README-

Windows.txt

Quoted 11 lines
Quoted 11 lines
Quoted 8 lines

for

recipes/wpa-supplicant/wpa-supplicant-

Quoted 7 lines

more

recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# information about SDDL string format.
+#
+ctrl_interface=/var/run/wpa_supplicant
+
+# IEEE 802.1X/EAPOL version
+# wpa_supplicant is implemented based on IEEE Std 802.1X-2004

which

Quoted 2 lines
Quoted 2 lines

defines
+# EAPOL version 2. However, there are many APs that do not

handle

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

the new

Quoted 1 line

+# version number correctly (they seem to drop the frames

completely). In

Quoted 2 lines

order
+# to make wpa_supplicant interoperate with these APs, the

version

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

number

Quoted 2 lines

is set
+# to 1 by default. This configuration value can be used to set

it

Quoted 9 lines
Quoted 9 lines

to

Quoted 7 lines

the

recipes/wpa-supplicant/wpa-supplicant-

Quoted 6 lines

new

recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+# version (2).
+eapol_version=1
+
+# AP scanning/selection
+# By default, wpa_supplicant requests driver to perform AP

scanning

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

and

Quoted 2 lines

then
+# uses the scan results to select a suitable AP. Another

alternative

Quoted 3 lines

is

Quoted 2 lines

to
+# allow the driver to take care of AP scanning and selection

and

Quoted 2 lines
Quoted 2 lines

use

Quoted 1 line
Quoted 1 line

+# wpa_supplicant just to process EAPOL frames based on IEEE

802.11

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

association

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# information from the driver.
+# 1: wpa_supplicant initiates scanning and AP selection
+# 0: driver takes care of scanning, AP selection, and IEEE

802.11

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

association
+# parameters (e.g., WPA IE generation); this mode can also

be

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

used

Quoted 2 lines

with
+# non-WPA drivers when using IEEE 802.1X mode; do not try

to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

associate

Quoted 2 lines

with
+# APs (i.e., external program needs to control

association).

Quoted 5 lines
Quoted 5 lines

This

Quoted 4 lines

mode

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

must

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and

SSID

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

(but

Quoted 2 lines

not
+# BSSID); this can be used, e.g., with ndiswrapper and NDIS

drivers to

Quoted 1 line

+# enable operation with hidden SSIDs and optimized roaming;

in

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

this

Quoted 2 lines

mode,
+# the network blocks in the configuration file are tried

one by

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

one

Quoted 2 lines

until
+# the driver reports successful association; each network

block

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

should

Quoted 2 lines

have
+# explicit security policy (i.e., only one option in the

lists)

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

for

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#    key_mgmt, pairwise, group, proto variables
+ap_scan=1
+
+# EAP fast re-authentication
+# By default, fast re-authentication is enabled for all EAP

methods

Quoted 1 line

that

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

+# support it. This variable can be used to disable fast re-

authentication.

recipes/wpa-supplicant/wpa-supplicant-

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# Normally, there is no need to disable this.
+fast_reauth=1
+
+# OpenSSL Engine support
+# These options can be used to load OpenSSL engines.
+# The two engines that are supported currently are shown

below:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

+# They are both from the opensc project

(http://www.opensc.org/)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# By default no engines are loaded.
+# make the opensc engine available
+#opensc_engine_path=/usr/lib/opensc/engine_opensc.so
+# make the pkcs11 engine available
+#pkcs11_engine_path=/usr/lib/opensc/engine_pkcs11.so
+# configure the path to the pkcs11 module required by the

pkcs11

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

engine

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#pkcs11_module_path=/usr/lib/pkcs11/opensc-pkcs11.so
+
+# Dynamic EAP methods
+# If EAP methods were built dynamically as shared object

files,

Quoted 4 lines
Quoted 4 lines

they

Quoted 3 lines

need

Quoted 2 lines

to be
+# loaded here before being used in the network blocks. By

default,

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

EAP

Quoted 2 lines

methods
+# are included statically in the build, so these lines are not

needed

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_tls.so
+#load_dynamic_eap=/usr/lib/wpa_supplicant/eap_md5.so
+
+# Driver interface parameters
+# This field can be used to configure arbitrary driver

interace

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

parameters. The
+# format is specific to the selected driver interface. This

field

Quoted 10 lines
Quoted 10 lines

is

Quoted 9 lines

not

recipes/wpa-supplicant/wpa-supplicant-

Quoted 7 lines

used

recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# in most cases.
+#driver_param="field=value"
+
+# Maximum lifetime for PMKSA in seconds; default 43200
+#dot11RSNAConfigPMKLifetime=43200
+# Threshold for reauthentication (percentage of PMK lifetime);

default 70

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#dot11RSNAConfigPMKReauthThreshold=70
+# Timeout for security association negotiation in seconds;

default

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

60

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#dot11RSNAConfigSATimeout=60
+
+# network block
+#
+# Each network (usually AP's sharing the same SSID) is

configured

Quoted 18 lines
Quoted 18 lines

as

Quoted 4 lines

a

Quoted 2 lines

separate
+# block in this configuration file. The network blocks are in

preference

Quoted 12 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 12 lines

order

recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
+# (the first match is used).
+#
+# network block fields:
+#
+# disabled:
+#    0 = this network can be used (default)
+#    1 = this network block is disabled (can be enabled through

ctrl_iface,

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#        e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This

value

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

is

Quoted 2 lines

passed
+# to external action script through wpa_cli as WPA_ID_STR

environment

Quoted 1 line

+# variable to make it easier to do network specific

configuration.

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# ssid: SSID (mandatory); either as an ASCII string with

double

Quoted 13 lines
Quoted 13 lines
Quoted 6 lines

quotation

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

or

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#    as hex string; network name
+#
+# scan_ssid:
+#    0 = do not scan this SSID with specific Probe Request

frames

Quoted 2 lines
Quoted 2 lines

(default)
+# 1 = scan with SSID-specific Probe Request frames (this can

be

Quoted 3 lines

used

Quoted 2 lines

to
+# find APs that do not accept broadcast SSID or use

Quoted 7 lines
Quoted 7 lines

multiple

Quoted 2 lines
Quoted 2 lines

SSIDs;
+# this will add latency to scanning, so enable this only

when

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

needed)

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#
+# bssid: BSSID (optional); if set, this network block is used

only

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

when

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#    associating with the AP using the configured BSSID
+#
+# priority: priority group (integer)
+# By default, all networks will get same priority group (0).

If

Quoted 4 lines
Quoted 4 lines

some

Quoted 3 lines

of

Quoted 2 lines

the
+# networks are more desirable, this field can be used to

change

Quoted 4 lines
Quoted 4 lines

the

Quoted 3 lines

order

Quoted 2 lines

in
+# which wpa_supplicant goes through the networks when

selecting a

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

BSS.

Quoted 2 lines

The
+# priority groups will be iterated in decreasing priority

(i.e.,

Quoted 3 lines
Quoted 3 lines

the

Quoted 2 lines
Quoted 2 lines

larger the
+# priority value, the sooner the network is matched against

the

Quoted 3 lines
Quoted 3 lines

scan

Quoted 2 lines
Quoted 2 lines

results).
+# Within each priority group, networks will be selected based

on

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

security

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# policy, signal strength, etc.
+# Please note that AP scanning with scan_ssid=1 and ap_scan=2

mode

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

are

Quoted 2 lines

not
+# using this priority to select the order for scanning.

Instead,

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

they try

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

the

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# networks in the order that used in the configuration file.
+#
+# mode: IEEE 802.11 operation mode
+# 0 = infrastructure (Managed) mode, i.e., associate with an

AP

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(default)

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# 1 = IBSS (ad-hoc, peer-to-peer)
+# Note: IBSS can only be used with key_mgmt NONE (plaintext

and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

static

Quoted 2 lines

WEP)
+# and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In

addition,

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines

ap_scan

Quoted 2 lines

has
+# to be set to 2 for IBSS. WPA-None requires following network

block

Quoted 2 lines
Quoted 2 lines

options:
+# proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or

Quoted 8 lines
Quoted 8 lines

CCMP,

Quoted 7 lines

but

recipes/wpa-supplicant/wpa-supplicant-

Quoted 6 lines

not

recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+# both), and psk must also be set.
+#
+# proto: list of accepted protocols
+# WPA = WPA/IEEE 802.11i/D3.0
+# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias

for

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

RSN)

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# If not set, this defaults to: WPA RSN
+#
+# key_mgmt: list of accepted authenticated key management

protocols

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# WPA-PSK = WPA pre-shared key (this requires 'psk' field)
+# WPA-EAP = WPA using EAP authentication (this can use an

external

Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

+# program, e.g., Xsupplicant, for IEEE 802.1X EAP

Authentication

Quoted 1 line
Quoted 1 line

+# IEEE8021X = IEEE 802.1X using EAP authentication and

(optionally)

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

dynamically

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    generated WEP keys
+# NONE = WPA is not used; plaintext or static WEP could be

used

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# If not set, this defaults to: WPA-PSK WPA-EAP
+#
+# auth_alg: list of allowed IEEE 802.11 authentication

algorithms

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# OPEN = Open System authentication (required for WPA/WPA2)
+# SHARED = Shared Key authentication (requires static WEP

keys)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# LEAP = LEAP/Network EAP (only used with LEAP)
+# If not set, automatic selection is used (Open System with

LEAP

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

enabled

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

if

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# LEAP is allowed as one of the EAP methods).
+#
+# pairwise: list of accepted pairwise (unicast) ciphers for

WPA

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# NONE = Use only Group Keys (deprecated, should not be

included

Quoted 7 lines
Quoted 7 lines

if

Quoted 6 lines

APs

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

support

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#    pairwise keys)
+# If not set, this defaults to: CCMP TKIP
+#
+# group: list of accepted group (broadcast/multicast) ciphers

for

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

WPA

Quoted 1 line

+# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE

802.11i/D7.0]

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
+# WEP104 = WEP (Wired Equivalent Privacy) with 104-bit key
+# WEP40 = WEP (Wired Equivalent Privacy) with 40-bit key [IEEE

802.11]

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# If not set, this defaults to: CCMP TKIP WEP104 WEP40
+#
+# psk: WPA preshared key; 256-bit pre-shared key
+# The key used in WPA-PSK mode can be entered either as 64

hex-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

digits,

Quoted 2 lines

i.e.,
+# 32 bytes or as an ASCII passphrase (in which case, the real

PSK

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

will be

Quoted 1 line

+# generated using the passphrase and SSID). ASCII passphrase

must

Quoted 11 lines
Quoted 11 lines

be

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

between

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+# 8 and 63 characters (inclusive).
+# This field is not needed, if WPA-EAP is used.
+# Note: Separate tool, wpa_passphrase, can be used to generate

256-

Quoted 5 lines

bit

Quoted 2 lines

keys
+# from ASCII passphrase. This process uses lot of CPU and

wpa_supplicant

Quoted 1 line

+# startup and reconfiguration time can be optimized by

generating

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

the PSK

recipes/wpa-supplicant/wpa-supplicant-

Quoted 9 lines

only

recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+# only when the passphrase or SSID has actually changed.
+#
+# eapol_flags: IEEE 802.1X/EAPOL options (bit field)
+# Dynamic WEP key required for non-WPA mode
+# bit0 (1): require dynamically generated unicast WEP key
+# bit1 (2): require dynamically generated broadcast WEP key
+#    (3 = require both keys; default)
+# Note: When using wired authentication, eapol_flags must be

set

Quoted 17 lines
Quoted 17 lines

to

Quoted 16 lines

0 for

recipes/wpa-supplicant/wpa-supplicant-

Quoted 9 lines

the

recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+# authentication to be completed successfully.
+#
+# proactive_key_caching:
+# Enable/disable opportunistic PMKSA caching for WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#
+# wep_key0..3: Static WEP key (ASCII in double quotation, e.g.

"abcde" or

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# hex without quotation, e.g., 0102030405)
+# wep_tx_keyidx: Default WEP key index (TX) (0..3)
+#
+# peerkey: Whether PeerKey negotiation for direct links (IEEE

802.11e

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 7 lines

DLS) is

recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+# allowed. This is only used with RSN/WPA2.
+# 0 = disabled (default)
+# 1 = enabled
+#peerkey=1
+#
+# Following fields are only used with internal EAP

implementation.

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# eap: space-separated list of accepted EAP methods
+#    MD5 = EAP-MD5 (unsecure and does not generate keying

material ->

Quoted 1 line
Quoted 1 line

+# cannot be used with WPA; to be used as a Phase

2

Quoted 3 lines

method

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#                    with EAP-PEAP or EAP-TTLS)
+#       MSCHAPV2 = EAP-MSCHAPv2 (cannot be used separately

with

Quoted 5 lines
Quoted 5 lines

WPA;

Quoted 4 lines

to

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

be used

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       OTP = EAP-OTP (cannot be used separately with WPA; to

be

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

used

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#       GTC = EAP-GTC (cannot be used separately with WPA; to

be

Quoted 12 lines
Quoted 12 lines
Quoted 5 lines

used

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#            as a Phase 2 method with EAP-PEAP or EAP-TTLS)
+#    TLS = EAP-TLS (client and server certificate)
+#    PEAP = EAP-PEAP (with tunnelled EAP authentication)
+#    TTLS = EAP-TTLS (with tunnelled EAP or

PAP/CHAP/MSCHAP/MSCHAPV2

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#                     authentication)
+#    If not set, all compiled in methods are allowed.
+#
+# identity: Identity string for EAP
+# anonymous_identity: Anonymous identity string for EAP (to be

used

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

as

Quoted 2 lines

the
+# unencrypted identity with EAP types that support different

tunnelled

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    identity, e.g., EAP-TTLS)
+# password: Password string for EAP
+# ca_cert: File path to CA certificate file (PEM/DER). This

file

Quoted 46 lines
Quoted 46 lines

can

Quoted 3 lines

have

Quoted 2 lines

one
+# or more trusted CA certificates. If ca_cert and ca_path are

not

Quoted 4 lines
Quoted 1 line

+# included, server certificate will not be verified. This is

insecure

Quoted 2 lines

and
+# a trusted CA certificate should always be configured when

using

Quoted 5 lines
Quoted 1 line

+# EAP-TLS/TTLS/PEAP. Full path should be used since working

directory

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

may

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    change when wpa_supplicant is run in the background.
+#    On Windows, trusted CA certificates can be loaded from the

system

Quoted 1 line
Quoted 1 line

+# certificate store by setting this to cert_store://<name>,

e.g.,

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".
+#    Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# ca_path: Directory path for CA certificate files (PEM). This

path

Quoted 2 lines

may

Quoted 1 line

+# contain multiple CA certificates in OpenSSL format. Common

use

Quoted 3 lines

for

Quoted 2 lines

this
+# is to point to system trusted CA list which is often

installed

Quoted 2 lines

into

Quoted 1 line

+# directory like /etc/ssl/certs. If configured, these

certificates

Quoted 2 lines

are

Quoted 1 line

+# added to the list of trusted CAs. ca_cert may also be

included in

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

that

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    case, but it is not required.
+# client_cert: File path to client certificate file (PEM/DER)
+#    Full path should be used since working directory may change

when

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    wpa_supplicant is run in the background.
+#    Alternatively, a named configuration blob can be used by

setting

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

this

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    to blob://<blob name>.
+# private_key: File path to client private key file

(PEM/DER/PFX)

Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 1 line

+# When PKCS#12/PFX file (.p12/.pfx) is used, client_cert

should be

Quoted 1 line
Quoted 1 line

+# commented out. Both the private key and certificate will be

read

Quoted 2 lines
Quoted 2 lines

from
+# the PKCS#12 file in this case. Full path should be used

since

Quoted 4 lines
Quoted 2 lines

working
+# directory may change when wpa_supplicant is run in the

background.

Quoted 1 line

+# Windows certificate store can be used by leaving

client_cert out

Quoted 5 lines

and

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#    configuring private_key in one of the following formats:
+#    cert://substring_to_match
+#    hash://certificate_thumbprint_in_hex
+#    for example:

private_key="hash://63093aa9c47f56ae88334c7b65a4"

Quoted 1 line
Quoted 1 line

+# Note that when running wpa_supplicant as an application,

the user

Quoted 1 line
Quoted 1 line

+# certificate store (My user account) is used, whereas

computer

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

store

Quoted 1 line

+# (Computer account) is used when running wpasvc as a

service.

Quoted 1 line
Quoted 1 line

+# Alternatively, a named configuration blob can be used by

setting

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

this

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left

out,

Quoted 13 lines
Quoted 13 lines
Quoted 5 lines

this

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

will be

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    asked through control interface)
+# dh_file: File path to DH/DSA parameters file (in PEM format)
+#    This is an optional configuration file for setting

parameters for

Quoted 3 lines

an

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    ephemeral DH key exchange. In most cases, the default RSA
+#    authentication does not use this configuration. However, it

is

Quoted 2 lines
Quoted 2 lines

possible
+# setup RSA to use ephemeral DH key exchange. In addition,

ciphers

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

with
+# DSA keys always use ephemeral DH keys. This can be used to

achieve

Quoted 1 line

+# forward secrecy. If the file is in DSA parameters format,

it will

Quoted 3 lines

be

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    automatically converted into DH params.
+# subject_match: Substring to be matched against the subject

of

Quoted 11 lines
Quoted 11 lines

the

Quoted 1 line
Quoted 1 line

+# authentication server certificate. If this string is set,

the

Quoted 2 lines

server

Quoted 1 line

+# sertificate is only accepted if it contains this string in

the

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

subject.

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    The subject string is in following format:
+#    /C=US/ST=CA/L=San Francisco/CN=Test

AS/[email protected]

Quoted 1 line

+# altsubject_match: Semicolon separated string of entries to

be

Quoted 44 lines
Quoted 44 lines
Quoted 5 lines

matched

Quoted 4 lines

against
+# the alternative subject name of the authentication server
certificate.
+# If this string is set, the server sertificate is only

accepted if

Quoted 8 lines

it

Quoted 1 line

+# contains one of the entries in an alternative subject name

extension.

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#    altSubjectName string is in following format: TYPE:VALUE
+#    Example: EMAIL:[email protected]
+#    Example: DNS:server.example.com;DNS:server2.example.com
+#    Following types are supported: EMAIL, DNS, URI
+# phase1: Phase1 (outer authentication, i.e., TLS tunnel)

parameters

Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    (string with field-value pairs, e.g., "peapver=0" or
+#    "peapver=1 peaplabel=1")
+#    'peapver' can be used to force which PEAP version (0 or 1)

is

Quoted 6 lines

used.

Quoted 3 lines

+# 'peaplabel=1' can be used to force new label, "client PEAP
encryption",
+# to be used during key derivation when PEAPv1 or newer. Most

existing

Quoted 1 line

+# PEAPv1 implementation seem to be using the old label,

"client EAP

Quoted 1 line
Quoted 1 line

+# encryption", and wpa_supplicant is now using that as the

default

Quoted 5 lines
Quoted 2 lines

value.
+# Some servers, e.g., Radiator, may require peaplabel=1

configuration

Quoted 2 lines

to
+# interoperate with PEAPv1; see eap_testing.txt for more

details.

Quoted 4 lines
Quoted 1 line

+# 'peap_outer_success=0' can be used to terminate PEAP

authentication

Quoted 2 lines

on
+# tunneled EAP-Success. This is required with some RADIUS

servers

Quoted 5 lines

that

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g.,
+#    Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode)
+#    include_tls_length=1 can be used to force wpa_supplicant to

include

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

+# TLS Message Length field in all TLS messages even if they

are not

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    fragmented.
+#    sim_min_num_chal=3 can be used to configure EAP-SIM to

require

Quoted 3 lines

three

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    challenges (by default, it accepts 2 or 3)
+# phase2: Phase2 (inner authentication with TLS tunnel)

parameters

Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line

+# (string with field-value pairs, e.g., "auth=MSCHAPV2" for

EAP-

Quoted 4 lines

PEAP

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines

or

recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS)
+# Following certificate/private key fields are used in inner

Phase2

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+# authentication when using EAP-TTLS or EAP-PEAP.
+# ca_cert2: File path to CA certificate file. This file can

have

Quoted 6 lines
Quoted 6 lines

one

Quoted 5 lines

or

Quoted 2 lines

more
+# trusted CA certificates. If ca_cert2 and ca_path2 are not

included,

Quoted 1 line

+# server certificate will not be verified. This is insecure

Quoted 8 lines
Quoted 8 lines

and a

Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 7 lines

trusted

recipes/wpa-supplicant/wpa-supplicant- new file +6 -0
+#    CA certificate should always be configured.
+# ca_path2: Directory path for CA certificate files (PEM)
+# client_cert2: File path to client certificate file
+# private_key2: File path to client private key file
+# private_key2_passwd: Password for private key file
+# dh_file2: File path to DH/DSA parameters file (in PEM

format)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

+# subject_match2: Substring to be matched against the subject

of

Quoted 14 lines
Quoted 14 lines

the

Quoted 2 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    authentication server certificate.
+# altsubject_match2: Substring to be matched against the

alternative

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

subject

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    name of the authentication server certificate.
+#
+# fragment_size: Maximum EAP fragment size in bytes (default

1398).

Quoted 1 line
Quoted 1 line

+# This value limits the fragment size for EAP methods that

support

Quoted 1 line
Quoted 1 line

+# fragmentation (e.g., EAP-TLS and EAP-PEAP). This value

should be

Quoted 1 line

set

Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

+# small enough to make the EAP messages fit in MTU of the

network

Quoted 1 line
Quoted 1 line

+# interface used for EAPOL. The default value is suitable for

most

Quoted 4 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+#    cases.
+#
+# EAP-PSK variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in

hex

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

format

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# nai: user NAI
+#
+# EAP-PAX variables:
+# eappsk: 16-byte (128-bit, 32 hex digits) pre-shared key in

hex

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

format

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#
+# EAP-SAKE variables:
+# eappsk: 32-byte (256-bit, 64 hex digits) pre-shared key in

hex

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

format

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+#    (this is concatenation of Root-Secret-A and Root-Secret-B)
+# nai: user NAI (PEERID)
+#
+# EAP-GPSK variables:
+# eappsk: Pre-shared key in hex format (at least 128 bits,

i.e.,

Quoted 14 lines
Quoted 14 lines

32

Quoted 6 lines

hex

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

digits)

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will

need

Quoted 3 lines

to be

Quoted 2 lines

able
+# to create this file and write updates to it when PAC is

being

Quoted 1 line
Quoted 1 line

+# provisioned or refreshed. Full path to the file should be

used

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

since

Quoted 1 line

+# working directory may change when wpa_supplicant is run in

the

Quoted 1 line
Quoted 1 line

+# background. Alternatively, a named configuration blob can

be used

Quoted 3 lines

by

recipes/wpa-supplicant/wpa-supplicant-

Quoted 2 lines
recipes/wpa-supplicant/wpa-supplicant- new file +2 -0
+#    setting this to blob://<blob name>
+# phase1: fast_provisioning=1 option enables in-line

provisioning

Quoted 8 lines
Quoted 8 lines

of

Quoted 5 lines

EAP-

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines

FAST

recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+#    credentials (PAC)
+#
+# wpa_supplicant supports number of "EAP workarounds" to work

around

Quoted 1 line
Quoted 1 line

+# interoperability issues with incorrectly behaving

authentication

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

servers.
+# These are enabled by default because some of the issues are

present in

Quoted 2 lines

large
+# number of authentication servers. Strict EAP conformance

mode

Quoted 8 lines
Quoted 8 lines

can

Quoted 6 lines

be

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+# configured by disabling workarounds with eap_workaround=0.
+
+# Example blocks:
+
+# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all

valid

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines

ciphers

recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
+network={
+     ssid="simple"
+     psk="very secret passphrase"
+     priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for

APs

Quoted 11 lines
Quoted 11 lines

that

Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 10 lines

reject

recipes/wpa-supplicant/wpa-supplicant- new file +9 -0
+# broadcast SSID)
+network={
+     ssid="second ssid"
+     scan_ssid=1
+     psk="very secret passphrase"
+     priority=2
+}
+
+# Only WPA-PSK is used. Any valid cipher combination is

accepted.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 7 lines
recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
+network={
+     ssid="example"
+     proto=WPA
+     key_mgmt=WPA-PSK
+     pairwise=CCMP TKIP
+     group=CCMP TKIP WEP104 WEP40
+
      psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

7bb

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+     priority=2
+}
+
+# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP

that

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

used

Quoted 10 lines

WEP104

recipes/wpa-supplicant/wpa-supplicant- new file +9 -0
+# or WEP40 as the group cipher will not be accepted.
+network={
+     ssid="example"
+     proto=RSN
+     key_mgmt=WPA-EAP
+     pairwise=CCMP TKIP
+     group=CCMP TKIP
+     eap=TLS
+     identity="[email protected]"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     priority=1
+}
+
+# EAP-PEAP/MSCHAPv2 configuration for RADIUS servers that use

the

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

new

Quoted 5 lines

peaplabel

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# (e.g., Radiator)
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP

recipes/wpa-supplicant/wpa-supplicant-

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant- new file +10 -0
+     eap=PEAP
+     identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     phase1="peaplabel=1"
+     phase2="auth=MSCHAPV2"
+     priority=10
+}
+
+# EAP-TTLS/EAP-MD5-Challenge configuration with anonymous

identity

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

for

Quoted 2 lines

the
+# unencrypted use. Real identity is sent only within an

encrypted

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

TLS

recipes/wpa-supplicant/wpa-supplicant-

Quoted 13 lines

tunnel.

recipes/wpa-supplicant/wpa-supplicant- new file +12 -0
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for

the

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

unencrypted
+# use. Real identity is sent only within an encrypted TLS

tunnel.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     phase2="auth=MSCHAPV2"
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for

outer

Quoted 12 lines
Quoted 12 lines

and

Quoted 11 lines
Quoted 11 lines

inner

recipes/wpa-supplicant/wpa-supplicant- new file +10 -0
+# authentication.
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     # Phase1 / outer authentication
+     anonymous_identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     # Phase 2 / inner authentication
+     phase2="autheap=TLS"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     ca_cert2="/etc/cert/ca2.pem"
+     client_cert2="/etc/cer/user.pem"
+     private_key2="/etc/cer/user.prv"
+     private_key2_passwd="password"
+     priority=2
+}
+
+# Both WPA-PSK and WPA-EAP is accepted. Only CCMP is accepted

as

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

pairwise

recipes/wpa-supplicant/wpa-supplicant-

Quoted 10 lines

and

recipes/wpa-supplicant/wpa-supplicant- new file +9 -0
+# group cipher.
+network={
+     ssid="example"
+     bssid=00:11:22:33:44:55
+     proto=WPA RSN
+     key_mgmt=WPA-PSK WPA-EAP
+     pairwise=CCMP
+     group=CCMP
+
      psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

7bb

recipes/wpa-supplicant/wpa-supplicant-

Quoted 3 lines
recipes/wpa-supplicant/wpa-supplicant- new file +3 -0
+}
+
+# Special characters in SSID, so use hex string. Default to

WPA-

Quoted 8 lines
Quoted 8 lines

PSK,

Quoted 7 lines

WPA-

Quoted 5 lines

EAP

recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# and all valid ciphers.
+network={
+     ssid=00010203
+
      psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

e1f

recipes/wpa-supplicant/wpa-supplicant-

Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e.,

no

Quoted 39 lines
Quoted 39 lines
Quoted 39 lines

WPA)

Quoted 2 lines

using
+# EAP-TLS for authentication and key generation; require both

unicast and

Quoted 35 lines
recipes/wpa-supplicant/wpa-supplicant- new file +35 -0
+# broadcast WEP keys.
+network={
+     ssid="1x-test"
+     key_mgmt=IEEE8021X
+     eap=TLS
+     identity="[email protected]"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     eapol_flags=3
+}
+
+
+# LEAP with dynamic WEP keys
+network={
+     ssid="leap-example"
+     key_mgmt=IEEE8021X
+     eap=LEAP
+     identity="user"
+     password="foobar"
+}
+
+# Plaintext connection (no WPA, no IEEE 802.1X)
+network={
+     ssid="plaintext-test"
+     key_mgmt=NONE
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X)
+network={
+     ssid="static-wep-test"
+     key_mgmt=NONE
+     wep_key0="abcde"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     wep_key1=0102030405
+     wep_key2="1234567890123"
+     wep_tx_keyidx=0
+     priority=5
+}
+
+
+# Shared WEP key connection (no WPA, no IEEE 802.1X) using

Shared

Quoted 54 lines
Quoted 54 lines
Quoted 19 lines

Key

Quoted 18 lines
recipes/wpa-supplicant/wpa-supplicant- new file +18 -0
+# IEEE 802.11 authentication
+network={
+     ssid="static-wep-test2"
+     key_mgmt=NONE
+     wep_key0="abcde"
+     wep_key1=0102030405
+     wep_key2="1234567890123"
+     wep_tx_keyidx=0
+     priority=5
+     auth_alg=SHARED
+}
+
+
+# IBSS/ad-hoc network with WPA-None/TKIP.
+network={
+     ssid="test adhoc"
+     mode=1
+     proto=WPA
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     key_mgmt=WPA-NONE
+     pairwise=NONE
+     group=TKIP
+     psk="secret passphrase"
+}
+
+
+# Catch all example that allows more or less all configuration

modes

Quoted 26 lines
Quoted 26 lines
recipes/wpa-supplicant/wpa-supplicant- new file +26 -0
+network={
+     ssid="example"
+     scan_ssid=1
+     key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
+     pairwise=CCMP TKIP
+     group=CCMP TKIP WEP104 WEP40
+     psk="very secret passphrase"
+     eap=TTLS PEAP TLS
+     identity="[email protected]"
+     password="foobar"
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+     private_key="/etc/cert/user.prv"
+     private_key_passwd="password"
+     phase1="peaplabel=0"
+}
+
+# Example of EAP-TLS with smartcard (openssl engine)
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TLS
+     proto=RSN
+     pairwise=CCMP TKIP
+     group=CCMP TKIP
+     identity="[email protected]"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+     ca_cert="/etc/cert/ca.pem"
+     client_cert="/etc/cert/user.pem"
+
+     engine=1
+
+     # The engine configured here must be available. Look at
+     # OpenSSL engine support in the global section.
+     # The key available through the engine must be the private

key

Quoted 12 lines
Quoted 11 lines
Quoted 11 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 11 lines
recipes/wpa-supplicant/wpa-supplicant- new file +11 -0
+     # matching the client certificate configured above.
+
+     # use the opensc engine
+     #engine_id="opensc"
+     #key_id="45"
+
+     # use the pkcs11 engine
+     engine_id="pkcs11"
+     key_id="id_45"
+
+     # Optional PIN configuration; this can be left out and PIN

will

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

be

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines
recipes/wpa-supplicant/wpa-supplicant- new file +5 -0
+     # asked through the control interface
+     pin="1234"
+}
+
+# Example configuration showing how to use an inlined blob as

a CA

Quoted 60 lines
Quoted 60 lines
Quoted 11 lines
Quoted 11 lines

certificate

recipes/wpa-supplicant/wpa-supplicant- new file +10 -0
+# data instead of using external file
+network={
+     ssid="example"
+     key_mgmt=WPA-EAP
+     eap=TTLS
+     identity="[email protected]"
+     anonymous_identity="[email protected]"
+     password="foobar"
+     ca_cert="blob://exampleblob"
+     priority=20
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant- new file +8 -0
+}
+
+blob-base64-exampleblob={
+SGVsbG8gV29ybGQhCg==
+}
+
+
+# Wildcard match for SSID (plaintext APs only). This example

select

Quoted 7 lines

any

Quoted 6 lines
recipes/wpa-supplicant/wpa-supplicant- new file +4 -0
+# open AP regardless of its SSID.
+network={
+     key_mgmt=NONE
+}
(quoted diff) +0 -0

git/wpa_supplicant.conf-sane b/recipes/wpa-supplicant/wpa-

supplicant-

Quoted 5 lines

recipes/wpa-supplicant/wpa-supplicant-

Quoted 5 lines

git/wpa_supplicant.conf-sane
new file mode 100755
index 0000000..c91ffe0

recipes/wpa-supplicant/wpa-supplicant- new file +0 -0

git/wpa_supplicant.conf-

Quoted 26 lines

sane

Review

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant- new file +7 -0
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+        key_mgmt=NONE
+}
(quoted diff) +0 -0

b/recipes/wpa-

Quoted 12 lines

supplicant/wpa-supplicant_git.bb
new file mode 100755
index 0000000..5292a2c

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +6 -0
@@ -0,0 +1,103 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+BUGTRACKER = "http://hostap.epitest.fi/bugz/"
+SECTION = "network"
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM =
Quoted 2 lines

"file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+

file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

\
+

file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f13

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

6ea

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 9 lines

ce747260e"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+
+SRCREV = "b8fb017272ed4794339978c9fbc0e74571a44728"
+PR = "r0"
+PR_append = "+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+DEPENDS = "gnutls dbus libnl openssl

${@base_contains("COMBINED_FEATURES",

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"madwifi", "madwifi-ng", "",d)}"
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-

cli"

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +4 -0
+
+SRC_URI = "git://w1.fi/srv/git/hostap.git;protocol=git \
+           file://defconfig \
+           file://defaults-sane \
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 8 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +8 -0
+           file://wpa-supplicant.sh \
+           file://wpa_supplicant.conf \
+           file://wpa_supplicant.conf-sane \
+           file://99_wpa_supplicant"
+
+S = "${WORKDIR}/git/wpa_supplicant"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-

cli "

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +10 -0
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+FILES_${PN} += " /usr/share/dbus-1/system-services/*"
+
+do_configure () {
+     install -m 0755 ${WORKDIR}/defconfig .config
+     echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+     echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+     echo "LIBS_p += -L${STAGING_LIBDIR}" >> .config
+     if [ "${@base_contains('COMBINED_FEATURES', 'madwifi', 1,

0,

Quoted 26 lines

d)}"

Quoted 25 lines
Quoted 25 lines

=

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 3 lines

"1" ]; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+             echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+             echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng"

.config

Quoted 20 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +15 -0
+     fi
+}
+
+do_compile () {
+     make
+}
+
+do_install () {
+     install -d ${D}${sbindir}
+     install -m 755 wpa_supplicant ${D}${sbindir}
+     install -m 755 wpa_passphrase ${D}${sbindir}
+     install -m 755 wpa_cli        ${D}${sbindir}
+
+     install -d ${D}${docdir}/wpa_supplicant
+     install -m 644 README ${WORKDIR}/wpa_supplicant.conf

${D}${docdir}/wpa_supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+
+     install -d ${D}${sysconfdir}/default
+     install -m 600 ${WORKDIR}/defaults-sane

${D}${sysconfdir}/default/wpa

Quoted 29 lines
Quoted 7 lines
Quoted 7 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 7 lines

+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane
${D}${sysconfdir}/wpa_supplicant.conf

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+
+     install -d ${D}${sysconfdir}/network/if-pre-up.d/
+     install -d ${D}${sysconfdir}/network/if-post-down.d/
+     install -d ${D}${sysconfdir}/network/if-down.d/
+     install -m 644 ${WORKDIR}/wpa_supplicant.conf

${D}${sysconfdir}

Quoted 21 lines
Quoted 21 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 4 lines

+ install -m 755 ${WORKDIR}/wpa-supplicant.sh
${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+     cd ${D}${sysconfdir}/network/ && \
+     ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-

supplicant

Quoted 9 lines
recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+
+     if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config || grep -q

^CONFIG_CTRL_IFACE_DBUS_NEW=y .config; then

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+             install -d ${D}/${sysconfdir}/dbus-1/system.d
+             install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf

${D}/${sysconfdir}/dbus-1/system.d

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+             install -d ${D}/${datadir}/dbus-1/system-services
+             if grep -q ^CONFIG_CTRL_IFACE_DBUS=y .config; then
+                     sed -i -e s:/sbin:${sbindir}:g
Quoted 3 lines

${S}/dbus/fi.epitest.hostap.WPASupplicant.service
+ install -m 644
${S}/dbus/fi.epitest.hostap.WPASupplicant.service

${D}/${datadir}/dbus-

Quoted 3 lines

1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+             fi
+             if grep -q ^CONFIG_CTRL_IFACE_DBUS_NEW=y .config;

then

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 3 lines

+ sed -i -e s:/sbin:${sbindir}:g
${S}/dbus/fi.w1.wpa_supplicant1.service
+ install -m 644

${S}/dbus/fi.w1.wpa_supplicant1.service

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 10 lines

${D}/${datadir}/dbus-1/system-services

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +5 -0
+             fi
+     fi
+
+     install -d ${D}/etc/default/volatiles
+     install -m 0644 ${WORKDIR}/99_wpa_supplicant

${D}/etc/default/volatiles

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +3 -0
+}
+
+#we introduce MY_ARCH to get 'armv5te' as arch instead of the

misleading

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

recipes/wpa-supplicant/wpa-supplicant_git.bb

Quoted 3 lines

'arm' on armv5te builds

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +2 -0
+MY_ARCH := "${PACKAGE_ARCH}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES',

'madwifi',

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines

'${MACHINE_ARCH}', '${MY_ARCH}', d)}"

recipes/wpa-supplicant/wpa-supplicant_git.bb new file +13 -1
+
+pkg_postinst_wpa-supplicant () {
+     # can't do this offline
+     if [ "x$D" != "x" ]; then
+             exit 1
+     fi
+
+     DBUSPID=`pidof dbus-daemon`
+
+     if [ "x$DBUSPID" != "x" ]; then
+             /etc/init.d/dbus-1 reload
+     fi
+}
--

1.7.0.4

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-

bin/mailman/listinfo/openembedded-

Quoted 1 line
Quoted 1 line
Quoted 1 line

devel