* [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver
@ 2013-03-18 13:35 Eyal Reizer
2013-03-18 13:35 ` [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files Eyal Reizer
` (8 more replies)
0 siblings, 9 replies; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
Add a recipe for building and installing the wlconf configuration
utility for TI Wilink8 familily of chips.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../recipes-connectivity/wlconf/wlconf_git.bb | 36 ++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
diff --git a/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb b/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
new file mode 100644
index 0000000..0d8a057
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
@@ -0,0 +1,36 @@
+DESCRIPTION = "Configuration utility for TI wireless drivers"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a9438"
+
+PR ="r1"
+PV ="0.0"
+PR_append = "+gitr${SRCREV}"
+
+SRCREV = "ol_r8.a6.01"
+SRC_URI = "git://github.com/TI-OpenLink/18xx-ti-utils.git"
+
+S = "${WORKDIR}/git/wlconf"
+
+EXTRA_OEMAKE = "CC=${TARGET_PREFIX}gcc"
+
+do_install() {
+ install -d ${D}${bindir}
+ install -d ${D}${bindir}/wlconf/
+ install -d ${D}${bindir}/wlconf/official_inis
+
+ install -m 0755 wlconf ${D}${bindir}/wlconf/
+ install -m 0755 dictionary.txt ${D}${bindir}/wlconf/
+ install -m 0755 struct.bin ${D}${bindir}/wlconf/
+ install -m 0755 wl18xx-conf-default.bin ${D}${bindir}/wlconf/
+ install -m 0755 README ${D}${bindir}/wlconf/
+ install -m 0755 example.conf ${D}${bindir}/wlconf/
+ install -m 0755 example.ini ${D}${bindir}/wlconf/
+ install -m 0755 ${S}/official_inis/* ${D}${bindir}/wlconf/official_inis
+}
+
+FILES_${PN} += " \
+ ${bindir}/wlconf \
+ ${bindir}/wlconf/official_inis \
+"
+
+FILES_${PN}-dbg += "${bindir}/wlconf/.debug"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 15:34 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release Eyal Reizer
` (7 subsequent siblings)
8 siblings, 1 reply; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
Add a recipe for installing the Wilink8 wlan firmware files into
the target file system.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../wl18xx-firmware/wl18xx-firmware/Makefile | 7 +++++
.../wl18xx-firmware/wl18xx-firmware_git.bb | 28 ++++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware/Makefile
create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware_git.bb
diff --git a/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware/Makefile b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware/Makefile
new file mode 100644
index 0000000..0bb7ab8
--- /dev/null
+++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware/Makefile
@@ -0,0 +1,7 @@
+# Installs the the ti-connectiviy wlan firmware files into the root file system
+
+install:
+ install -d $(DEST_DIR)/lib/firmware/ti-connectivity
+ cp -RpP * $(DEST_DIR)/lib/firmware/ti-connectivity/
+ rm -f $(DEST_DIR)/lib/firmware/ti-connectivity/Makefile
+
diff --git a/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware_git.bb b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware_git.bb
new file mode 100644
index 0000000..43c40bb
--- /dev/null
+++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-firmware_git.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "Firmware files for use with TI wl18xx"
+LICENSE = "TI-TSPA"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=b28122fd6678e89fd3a8d4bc80922969"
+
+PACKAGE_ARCH = "all"
+
+PR = "r1+gitr${SRCREV}"
+
+PROVIDES += "wl12xx-firmware"
+RPROVIDES += "wl12xx-firmware"
+
+SRCREV = "ol_r8.a6.01"
+SRC_URI = "git://github.com/TI-OpenLink/wl18xx_fw.git;protocol=git \
+ file://Makefile \
+ "
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+ :
+}
+
+do_install() {
+ cp ${WORKDIR}/Makefile ${S}
+ oe_runmake 'DEST_DIR=${D}' install
+}
+
+FILES_${PN} = "/lib/firmware/ti-connectivity/*"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
2013-03-18 13:35 ` [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 15:46 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8 Eyal Reizer
` (6 subsequent siblings)
8 siblings, 1 reply; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add a new recipe for building the ti version of hostap-daemon
2.0-devel from release r8.a6.01
This package replace the wilink6 package which is provided by the
hostap-daemon recipe. Selection between the two is done using a
"WILINK_VERSION" switch added to arago.conf
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
...d-change-conf-file-for-better-oob-startup.patch | 40 +++++
.../hostap/hostap-daemon-wl18xx/defconfig | 183 ++++++++++++++++++++
.../hostap/hostap-daemon-wl18xx/init | 37 ++++
.../hostap/hostap-daemon-wl18xx_git.bb | 64 +++++++
4 files changed, 324 insertions(+)
create mode 100644 meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-startup.patch
create mode 100644 meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
create mode 100644 meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
create mode 100644 meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
diff --git a/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-startup.patch b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-startup.patch
new file mode 100644
index 0000000..824d250
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-startup.patch
@@ -0,0 +1,40 @@
+From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17 00:00:00 2001
+From: Eyal Reizer <eyalr@ti.com>
+Date: Sun, 17 Mar 2013 07:18:55 -0700
+Subject: [PATCH] hostapd: change conf file for better sdk out of box startup
+
+Change the default channel to 6 and change the ssid to a more
+meaningful name.
+
+Upstream-status: inappropriate [SDK specific patch]
+
+Signed-off-by: Eyal Reizer <eyalr@ti.com>
+---
+ hostapd/hostapd.conf | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
+index f71a881..00843aa 100644
+--- a/hostapd/hostapd.conf
++++ b/hostapd/hostapd.conf
+@@ -83,7 +83,7 @@ ctrl_interface_group=0
+ ##### IEEE 802.11 related configuration #######################################
+
+ # SSID to be used in IEEE 802.11 management frames
+-ssid=test
++ssid=TexasInstruments_0001
+
+ # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
+ # Set as needed to indicate country in which device is operating.
+@@ -107,7 +107,7 @@ hw_mode=g
+ # channel will need to be configured separately with iwconfig.
+ # When set to 0, automatic channel selection will be engaged. A channel
+ # will be selected from the desired hw_mode.
+-channel=1
++channel=6
+
+ # Automatic channel selection (ACS) whitelist
+ # (default: not set)
+--
+1.7.9.5
+
diff --git a/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
new file mode 100644
index 0000000..1ea96c4
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
@@ -0,0 +1,183 @@
+# Example hostapd 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.,
+# 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 cass, these lines should use += in order not
+# to override previous values of the variables.
+
+# Driver interface for Host AP driver
+CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for wired authenticator
+#CONFIG_DRIVER_WIRED=y
+
+# Driver interface for madwifi driver
+#CONFIG_DRIVER_MADWIFI=y
+#CFLAGS += -I../../madwifi # change to the madwifi source directory
+
+# Driver interface for drivers using the nl80211 kernel interface
+CONFIG_DRIVER_NL80211=y
+CONFIG_LIBNL20=y
+# driver_nl80211.c requires a rather new libnl (version 1.1) which may not be
+# shipped with your distribution yet. If that is the case, you need to build
+# newer libnl version and point the hostapd build to use it.
+#LIBNL=/usr/src/libnl
+#CFLAGS += -I$(LIBNL)/include
+#LIBS += -L$(LIBNL)/lib
+
+# 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 no driver (e.g., RADIUS server only)
+#CONFIG_DRIVER_NONE=y
+
+# IEEE 802.11F/IAPP
+CONFIG_IAPP=y
+
+# WPA2/IEEE 802.11i RSN pre-authentication
+CONFIG_RSN_PREAUTH=y
+
+# 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
+
+# Integrated EAP server
+CONFIG_EAP=y
+
+# EAP-MD5 for the integrated EAP server
+CONFIG_EAP_MD5=y
+
+# EAP-TLS for the integrated EAP server
+CONFIG_EAP_TLS=y
+
+# EAP-MSCHAPv2 for the integrated EAP server
+CONFIG_EAP_MSCHAPV2=y
+
+# EAP-PEAP for the integrated EAP server
+CONFIG_EAP_PEAP=y
+
+# EAP-GTC for the integrated EAP server
+CONFIG_EAP_GTC=y
+
+# EAP-TTLS for the integrated EAP server
+CONFIG_EAP_TTLS=y
+
+# EAP-SIM for the integrated EAP server
+#CONFIG_EAP_SIM=y
+
+# EAP-AKA for the integrated EAP server
+#CONFIG_EAP_AKA=y
+
+# EAP-AKA' for the integrated EAP server
+# This requires CONFIG_EAP_AKA to be enabled, too.
+#CONFIG_EAP_AKA_PRIME=y
+
+# EAP-PAX for the integrated EAP server
+#CONFIG_EAP_PAX=y
+
+# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
+#CONFIG_EAP_PSK=y
+
+# EAP-SAKE for the integrated EAP server
+#CONFIG_EAP_SAKE=y
+
+# EAP-GPSK for the integrated EAP server
+#CONFIG_EAP_GPSK=y
+# Include support for optional SHA256 cipher suite in EAP-GPSK
+#CONFIG_EAP_GPSK_SHA256=y
+
+# EAP-FAST for the integrated EAP server
+# 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.9-session-ticket.patch)
+# to add the needed functions.
+#CONFIG_EAP_FAST=y
+
+# Wi-Fi Protected Setup (WPS)
+CONFIG_WPS=y
+# Enable WSC 2.0 support
+CONFIG_WPS2=y
+# Enable UPnP support for external WPS Registrars
+CONFIG_WPS_UPNP=y
+
+# EAP-IKEv2
+#CONFIG_EAP_IKEV2=y
+
+# Trusted Network Connect (EAP-TNC)
+#CONFIG_EAP_TNC=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
+
+# RADIUS authentication server. This provides access to the integrated EAP
+# server from external hosts using RADIUS.
+#CONFIG_RADIUS_SERVER=y
+
+# Build IPv6 support for RADIUS operations
+CONFIG_IPV6=y
+
+# IEEE Std 802.11r-2008 (Fast BSS Transition)
+#CONFIG_IEEE80211R=y
+
+# Use the hostapd's IEEE 802.11 authentication (ACL), but without
+# the IEEE 802.11 Management capability (e.g., madwifi or FreeBSD/net80211)
+#CONFIG_DRIVER_RADIUS_ACL=y
+
+# IEEE 802.11n (High Throughput) support
+CONFIG_IEEE80211N=y
+
+# Remove debugging code that is printing out debug messages to stdout.
+# This can be used to reduce the size of the hostapd considerably if debugging
+# code is not needed.
+#CONFIG_NO_STDOUT_DEBUG=y
+
+# Remove support for RADIUS accounting
+#CONFIG_NO_ACCOUNTING=y
+
+# Remove support for RADIUS
+#CONFIG_NO_RADIUS=y
+
+# Remove support for VLANs
+#CONFIG_NO_VLAN=y
+
+# Remove support for dumping state into a file on SIGUSR1 signal
+# This can be used to reduce binary size at the cost of disabling a debugging
+# option.
+#CONFIG_NO_DUMP_STATE=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
+#
+#
+
+CONFIG_NO_RANDOM_POOL=y
+
diff --git a/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
new file mode 100644
index 0000000..79f74b6
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
@@ -0,0 +1,37 @@
+#!/bin/sh
+DAEMON=/usr/sbin/hostapd
+NAME=hostapd
+DESC="HOSTAP Daemon"
+ARGS="/etc/hostapd.conf -B"
+
+test -f $DAEMON || exit 0
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon -S -x $DAEMON -- $ARGS
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon -K -x $DAEMON
+ echo "$NAME."
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ reload)
+ echo -n "Reloading $DESC: "
+ killall -HUP $(basename ${DAEMON})
+ echo "$NAME."
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|reload}"
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
new file mode 100644
index 0000000..6d1d5eb
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
@@ -0,0 +1,64 @@
+# This is a TI specific version of the hostap-daemon recipe for use with the
+# wl18xx wlan and bluetooth module.
+
+HOMEPAGE = "http://hostap.epitest.fi"
+DESCRIPTION = "User space daemon for extended IEEE 802.11 management"
+SECTION = "kernel/userland"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
+
+DEPENDS = "libnl openssl"
+
+# Since this is a TI customized version of hostap-daemon do not make this the
+# default
+DEFAULT_PREFERENCE = "-1"
+
+inherit update-rc.d
+INITSCRIPT_NAME="hostapd"
+
+CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
+
+# Add TI to the end to make it clear that this is a TI customized version
+# of hostap
+PV = "2.0-devel-ti"
+
+PR = "r1+gitr${SRCREV}"
+
+SRCREV = "ol_r8.a6.01"
+
+PROVIDES += "hostap-daemon"
+RPROVIDES += "hostap-daemon"
+
+SRC_URI = "git://github.com/TI-OpenLink/hostap.git;protocol=git \
+ file://0001-hostapd-change-conf-file-for-better-oob-startup.patch;patchdir=.. \
+ file://defconfig \
+ file://init"
+
+S = "${WORKDIR}/git/hostapd"
+
+do_configure() {
+ install -m 0644 ${WORKDIR}/defconfig ${S}/.config
+ echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
+ echo "LIBS += -L${STAGING_LIBDIR}" >> .config
+}
+
+do_compile() {
+ make
+}
+
+do_install() {
+ install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
+ install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
+ install -m 0755 ${S}/hostapd ${D}${sbindir}
+ install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
+ install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd
+}
+
+# The default hostapd.conf file that is fetched from upstream is using
+# "a" band which is not supported by the 1271 chip.
+# modify it to use "g" band and default channel 6 and change the ssid from
+# "test" to a more meaningful name.
+
+updatercd_postinst () {
+:
+}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
2013-03-18 13:35 ` [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files Eyal Reizer
2013-03-18 13:35 ` [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 15:52 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8 Eyal Reizer
` (5 subsequent siblings)
8 siblings, 1 reply; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add a recipe for building a ti specific 2.0-devel version for
Wilink8.
This package replace the wilink6 package which is provided by the
wpa-supplicant recipe.
Selection between the two is done using a "WILINK_VERSION" switch added
to arago.conf.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../wpa-supplicant-wl18xx/99_wpa_supplicant | 1 +
.../wpa-supplicant-wl18xx/defaults-sane | 8 +
.../wpa-supplicant/wpa-supplicant-wl18xx/defconfig | 430 ++++++++++++
.../fi.epitest.hostap.WPASupplicant.service | 4 +
.../fi.w1.wpa_supplicant1.service | 4 +
.../wpa-supplicant-wl18xx/kill_wpa_supplicant.sh | 9 +
.../wpa-supplicant-wl18xx/wpa-supplicant.sh | 85 +++
.../wpa-supplicant-wl18xx/wpa_supplicant.conf | 690 ++++++++++++++++++++
.../wpa-supplicant-wl18xx/wpa_supplicant.conf-sane | 7 +
.../wpa-supplicant/wpa-supplicant-wl18xx_git.bb | 23 +
10 files changed, 1261 insertions(+)
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defaults-sane
create mode 100755 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defconfig
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
create mode 100644 meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx_git.bb
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
new file mode 100644
index 0000000..6ff4dd8
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
@@ -0,0 +1 @@
+d root root 0700 /var/run/wpa_supplicant none
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defaults-sane b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defaults-sane
new file mode 100644
index 0000000..67c4cbd
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defaults-sane
@@ -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"
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defconfig b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defconfig
new file mode 100755
index 0000000..b982e2a
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/defconfig
@@ -0,0 +1,430 @@
+# 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.,
+# 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
+# to override previous values of the variables.
+
+
+# Uncomment following two lines and fix the paths if you have installed OpenSSL
+# 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
+# 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) ######################################
+#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
+###############################################################################
+
+#### openwrt (e.g., for Linksys WRT54G) #######################################
+#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
+###############################################################################
+
+#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") supportsBG
+# 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/libBG
+#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
+#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
+# 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.
+# 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
+# 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)
+# 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
+# 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 testingBG
+#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
+
+# for p2p
+CONFIG_P2P=y
+CONFIG_AP=y
+
+# IEEE 802.11n (High Throughput) support
+CONFIG_IEEE80211N=y
+
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
new file mode 100644
index 0000000..fb3f917
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=fi.epitest.hostap.WPASupplicant
+Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B -u
+User=root
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
new file mode 100644
index 0000000..0bb1056
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=fi.w1.wpa_supplicant1
+Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B -u
+User=root
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
new file mode 100644
index 0000000..aab6474
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
@@ -0,0 +1,9 @@
+#check if the wpa_suppicant is already running
+#if it does, stop it.
+StationRunning=`ps | grep -c wpa_supplicant`
+if [ $StationRunning -eq 2 ]; then
+ killall wpa_supplicant
+fi
+
+# start the application
+$*
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
new file mode 100644
index 0000000..4f1001e
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
@@ -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"
+ 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\""
+ 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"
+ fi
+
+ start-stop-daemon --start --quiet \
+ --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE \
+ -- $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
+
+ if [ "$VERBOSITY" = "1" ]; then
+ echo "$WPA_SUP_PNAME: ctrl_interface socket located at $WPA_COMMON_CTRL_IFACE/$IFACE"
+ 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
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
new file mode 100644
index 0000000..f0c993d
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
@@ -0,0 +1,690 @@
+##### Example wpa_supplicant configuration file ###############################
+#
+# This file describes configuration file format and lists all available option.
+# 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
+# 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.
+
+# 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
+# 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
+# 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
+# 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
+# will be created for UNIX domain sockets for listening to requests from
+# external programs (CLI/GUI, etc.) for status information and configuration.
+# 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
+# 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.
+# 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/
+# 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
+# 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
+# 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
+# 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
+# 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
+# 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
+# also be used when using wired Ethernet drivers.
+# 2: like 0, but associate with APs using security policy and SSID (but not
+# 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
+# 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
+# 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
+# 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
+# (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,
+# e.g., with wpa_cli or wpa_gui)
+#
+# id_str: Network identifier string for external scripts. This value is passed
+# 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
+# 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)
+#
+# 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).
+# 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
+# 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
+# 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
+# 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
+# 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
+# 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.,
+# 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
+# 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
+# from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
+# startup and reconfiguration time can be optimized by generating the PSK only
+# 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
+# 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
+# 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
+# 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
+# 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
+# or more trusted CA certificates. If ca_cert and ca_path are not
+# included, server certificate will not be verified. This is insecure and
+# a trusted CA certificate should always be configured when using
+# EAP-TLS/TTLS/PEAP. Full path should be used since working directory may
+# 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
+# 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
+# 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
+# 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
+# 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
+# to blob://<blob name>.
+# private_key_passwd: Password for private key file (if left out, this will be
+# 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
+# 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.
+# The subject string is in following format:
+# /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@example.com
+# altsubject_match: Semicolon separated string of entries to be matched against
+# the alternative subject name of the authentication server certificate.
+# 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:server@example.com
+# 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",
+# 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
+# interoperate with PEAPv1; see eap_testing.txt for more details.
+# 'peap_outer_success=0' can be used to terminate PEAP authentication on
+# 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
+# "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
+# trusted CA certificates. If ca_cert2 and ca_path2 are not included,
+# server certificate will not be verified. This is insecure and a trusted
+# 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
+# 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)
+# nai: user NAI (ID_Client)
+#
+# EAP-FAST variables:
+# pac_file: File path for the PAC entries. wpa_supplicant will need to be able
+# 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
+# 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
+# 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
+network={
+ ssid="simple"
+ psk="very secret passphrase"
+ priority=5
+}
+
+# Same as previous, but request SSID-specific scanning (for APs that reject
+# 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
+# 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="user@example.com"
+ 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
+# (e.g., Radiator)
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=PEAP
+ identity="user@example.com"
+ 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.
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ identity="user@example.com"
+ anonymous_identity="anonymous@example.com"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ priority=2
+}
+
+# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for the unencrypted
+# use. Real identity is sent only within an encrypted TLS tunnel.
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ identity="user@example.com"
+ anonymous_identity="anonymous@example.com"
+ password="foobar"
+ ca_cert="/etc/cert/ca.pem"
+ phase2="auth=MSCHAPV2"
+}
+
+# WPA-EAP, EAP-TTLS with different CA certificate used for outer and inner
+# authentication.
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ # Phase1 / outer authentication
+ anonymous_identity="anonymous@example.com"
+ 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
+# 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
+# and all valid ciphers.
+network={
+ ssid=00010203
+ psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
+}
+
+
+# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e., no WPA) using
+# EAP-TLS for authentication and key generation; require both unicast and
+# broadcast WEP keys.
+network={
+ ssid="1x-test"
+ key_mgmt=IEEE8021X
+ eap=TLS
+ identity="user@example.com"
+ 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="user@example.com"
+ 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="user@example.com"
+ 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
+# data instead of using external file
+network={
+ ssid="example"
+ key_mgmt=WPA-EAP
+ eap=TTLS
+ identity="user@example.com"
+ anonymous_identity="anonymous@example.com"
+ 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
+}
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
new file mode 100644
index 0000000..c91ffe0
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
@@ -0,0 +1,7 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+
+network={
+ key_mgmt=NONE
+}
diff --git a/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx_git.bb b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx_git.bb
new file mode 100644
index 0000000..65be767
--- /dev/null
+++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-wl18xx_git.bb
@@ -0,0 +1,23 @@
+# This is a TI specific version of the wpa-supplicant recipe for use with the
+# wl18xx wlan module.
+
+require wpa-supplicant.inc
+
+LICENSE = "GPLv2 | BSD"
+LIC_FILES_CHKSUM = "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
+ file://../README;md5=5cb758942d25f6f61fd4ac388fd446fa \
+ file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8cad6356ec7f39ebe3aba"
+
+# To prevent users from accidently picking up this customized version of
+# wpa-supplicant the DEFAULT_PREFERENCE will be set to -1.
+DEFAULT_PREFERENCE = "-1"
+
+SRCREV = "ol_r8.a6.01"
+PR = "r3+gitr${SRCREV}"
+# Add ti to the PV to indicate that this is a TI modify version of wpa-supplicant.
+PV = "2.0-devel-ti"
+
+PROVIDES_${PN}+= "wpa-supplicant"
+RPROVIDES_${PN} += "wpa-supplicant"
+RRECOMMENDS_${PN} = "wpa-supplicant"
+RDEPENDS_${PN} = "wpa-supplicant-cli wpa-supplicant-passphrase"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (2 preceding siblings ...)
2013-03-18 13:35 ` [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8 Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 15:53 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 6/9] ti-compat-wireless-wl18xx: build Wilink8 drivers from TI-OpenLink Eyal Reizer
` (4 subsequent siblings)
8 siblings, 1 reply; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add a recipe for building and installing the calibrator tool
used with the wilink8 family of chips.
This package replace the wilink6 package which is provided by the
ti-wifi-utils. Selection between the two is done using a
"WILINK_VERSION" switch added to arago.conf
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb | 26 ++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb
diff --git a/meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb b/meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb
new file mode 100644
index 0000000..3d2d6f1
--- /dev/null
+++ b/meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"
+
+DEPENDS = "libnl"
+RDEPENDS = "ti-compat-wireless-wl12xx wl12xx-firmware"
+
+PR ="r1+gitr${SRCREV}"
+PV ="0.0"
+
+SRCREV = "ol_r8.a6.01"
+SRC_URI = "git://github.com/TI-OpenLink/18xx-ti-utils.git \
+"
+
+PROVIDES += "ti-wifi-utils"
+RPROVIDES += "ti-wifi-utils"
+
+S = "${WORKDIR}/git"
+
+export CROSS_COMPILE = "${TARGET_PREFIX}"
+CFLAGS += " -DCONFIG_LIBNL20"
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 calibrator ${D}${bindir}/
+}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 6/9] ti-compat-wireless-wl18xx: build Wilink8 drivers from TI-OpenLink
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (3 preceding siblings ...)
2013-03-18 13:35 ` [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8 Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 13:35 ` [PATCH 7/9] bt-firmware: update for including the wl18xx bt firmware Eyal Reizer
` (3 subsequent siblings)
8 siblings, 0 replies; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add a new recipe for fetching the Wilink8 drivers from TI-Openlink
in github by creating a compat-wireless package and building with the
target linux kernel source.
This package replace the wilink6 package which is provided by the
ti-compat-wireless-wl12xx. Selection between the two is done using a
"WILINK_VERSION" switch added to arago.conf
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
...1-git-version-wl18xx-use-compat-base-tree.patch | 68 ++++++++++++++++++++
.../ti-compat-wireless-wl18xx_git.bb | 64 ++++++++++++++++++
2 files changed, 132 insertions(+)
create mode 100644 meta-arago-extras/recipes-bsp/ti-compat-wireless/files/0001-git-version-wl18xx-use-compat-base-tree.patch
create mode 100644 meta-arago-extras/recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl18xx_git.bb
diff --git a/meta-arago-extras/recipes-bsp/ti-compat-wireless/files/0001-git-version-wl18xx-use-compat-base-tree.patch b/meta-arago-extras/recipes-bsp/ti-compat-wireless/files/0001-git-version-wl18xx-use-compat-base-tree.patch
new file mode 100644
index 0000000..624d86f
--- /dev/null
+++ b/meta-arago-extras/recipes-bsp/ti-compat-wireless/files/0001-git-version-wl18xx-use-compat-base-tree.patch
@@ -0,0 +1,68 @@
+From bb09bbce828112d81ae473d10a07736e73704ac4 Mon Sep 17 00:00:00 2001
+From: Eyal Reizer <eyalr@ti.com>
+Date: Sun, 10 Mar 2013 04:42:58 -0700
+Subject: [PATCH] git-version-wl18xx: use compat base tree
+
+For compat-wireless based builds use compat_base_tree_version in version.h
+When building with compat-wireless mechanism, the version info captured
+in version.h reflects target kernel and not the wl18xx version.
+
+Signed-off-by: Eyal Reizer <eyalr@ti.com>
+---
+ drivers/net/wireless/ti/wl18xx/Makefile | 12 ++++++++----
+ drivers/net/wireless/ti/wlcore/Makefile | 12 ++++++++----
+ 2 files changed, 16 insertions(+), 8 deletions(-)
+
+diff --git a/drivers/net/wireless/ti/wl18xx/Makefile b/drivers/net/wireless/ti/wl18xx/Makefile
+index 4ddb258..55cc561 100644
+--- a/drivers/net/wireless/ti/wl18xx/Makefile
++++ b/drivers/net/wireless/ti/wl18xx/Makefile
+@@ -1,12 +1,16 @@
+ wl18xx-objs = main.o acx.o tx.o io.o debugfs.o
+
+ define filechk_version.h
+- (echo 'static const char *wl18xx_git_head = \
+- "$(shell git describe --dirty)";')
++ echo '#ifdef COMPAT_BASE_TREE_VERSION'; \
++ echo 'static const char *wl18xx_git_head = COMPAT_BASE_TREE_VERSION;'; \
++ echo '#else'; \
++ echo 'static const char *wl18xx_git_head = \
++ "$(shell git describe --dirty)";'; \
++ echo '#endif')
+ endef
+
+-$(obj)/version.h: .git/HEAD .git/index .git/refs/tags
+- @$(call filechk,version.h)
++#$(obj)/version.h: .git/HEAD .git/index .git/refs/tags
++# @$(call filechk,version.h)
+
+ $(obj)/main.c: $(src)/version.h
+
+diff --git a/drivers/net/wireless/ti/wlcore/Makefile b/drivers/net/wireless/ti/wlcore/Makefile
+index 9923a1a..647489c 100644
+--- a/drivers/net/wireless/ti/wlcore/Makefile
++++ b/drivers/net/wireless/ti/wlcore/Makefile
+@@ -3,12 +3,16 @@ wlcore-objs = main.o cmd.o io.o event.o tx.o rx.o ps.o acx.o \
+
+ define filechk_version.h
+ (echo 'static const char *wlcore_timestamp = __TIMESTAMP__;'; \
+- echo 'static const char *wlcore_git_head = \
+- "$(shell git describe --dirty)";')
++ echo '#ifdef COMPAT_BASE_TREE_VERSION'; \
++ echo 'static const char *wl12xx_git_head = COMPAT_BASE_TREE_VERSION;'; \
++ echo '#else'; \
++ echo 'static const char *wl12xx_git_head = \
++ "$(shell git describe --dirty)";'; \
++ echo '#endif')
+ endef
+
+-$(obj)/version.h: .git/HEAD .git/index .git/refs/tags
+- @$(call filechk,version.h)
++#$(obj)/version.h: .git/HEAD .git/index .git/refs/tags
++# @$(call filechk,version.h)
+
+ $(obj)/main.c: $(src)/version.h
+
+--
+1.7.9.5
+
diff --git a/meta-arago-extras/recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl18xx_git.bb b/meta-arago-extras/recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl18xx_git.bb
new file mode 100644
index 0000000..cd8120e
--- /dev/null
+++ b/meta-arago-extras/recipes-bsp/ti-compat-wireless/ti-compat-wireless-wl18xx_git.bb
@@ -0,0 +1,64 @@
+# This is a TI specific version of the compat-wireless recipe using a
+# compat-wireless package created from the TI Systems Tested mac80211 releases.
+
+DESCRIPTION = "ti compat-wireless drivers for wl18xx"
+HOMEPAGE = "https://gforge.ti.com/gf/project/ecs_nlcp/"
+SECTION = "kernel/modules"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+RDEPENDS_${PN} = "wireless-tools"
+
+PROVIDES += "ti-compat-wireless-wl12xx"
+RPROVIDES += "ti-compat-wireless-wl12xx"
+
+PV = "r8.a6.01"
+inherit module
+
+PR = "${MACHINE_KERNEL_PR}"
+PR_append = "a"
+
+SRCREV_wl18xx = "ol_r8.a6.01"
+SRCREV_compat = "ol_r8.a6.01"
+SRCREV_compat-wireless = "ol_r8.a6.01"
+
+SRCREV_FORMAT = "compat-wireless"
+
+S = "${WORKDIR}/compat-wireless"
+
+SRC_URI = "git://github.com/TI-OpenLink/compat-wireless.git;destsuffix=compat-wireless;name=compat-wireless \
+ git://github.com/TI-OpenLink/compat.git;destsuffix=compat;name=compat \
+ git://github.com/TI-OpenLink/wl18xx.git;destsuffix=wl18xx;name=wl18xx \
+ file://0001-git-version-wl18xx-use-compat-base-tree.patch;patchdir=../wl18xx \
+ file://0001-wl12xx-additional-two-members-for-wl12xx_platform_da.patch;patchdir=../wl18xx \
+ "
+
+
+EXTRA_OEMAKE = "KLIB_BUILD=${STAGING_KERNEL_DIR} KLIB=${D}"
+
+# Prevent sourceipk clear_git function from running.
+# This preserves the git repo until driver-select is ran.
+
+clear_git() {
+ :
+}
+
+do_configure() {
+ cd ${S}
+ GIT_TREE="${WORKDIR}/wl18xx" GIT_COMPAT_TREE="${WORKDIR}/compat" ./scripts/admin-refresh.sh
+ ./scripts/driver-select wl18xx
+
+ # Delete the .git repository since it should no longer be needed.
+ rm -rf ${S}/.git ${S}/.gitignore
+
+ # Now generate the sourceipk with the properly configured sources
+ sourceipk_do_create_srcipk
+}
+
+do_configure_append() {
+ sed -i "s#@./scripts/update-initramfs## " Makefile
+}
+
+do_install() {
+ oe_runmake DEPMOD=echo DESTDIR="${D}" INSTALL_MOD_PATH="${D}" LDFLAGS="" install-modules
+}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 7/9] bt-firmware: update for including the wl18xx bt firmware
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (4 preceding siblings ...)
2013-03-18 13:35 ` [PATCH 6/9] ti-compat-wireless-wl18xx: build Wilink8 drivers from TI-OpenLink Eyal Reizer
@ 2013-03-18 13:35 ` Eyal Reizer
2013-03-18 13:36 ` [PATCH 8/9] arago conf: add rule for selecting between wilink chips Eyal Reizer
` (2 subsequent siblings)
8 siblings, 0 replies; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:35 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Update the recipe for including the wl18xx bluetooth firmware
files from SP-2.8 into the target root file system
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../recipes-bsp/bt-firmware/bt-firmware_git.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-arago-extras/recipes-bsp/bt-firmware/bt-firmware_git.bb b/meta-arago-extras/recipes-bsp/bt-firmware/bt-firmware_git.bb
index 569c690..72bcc6c 100644
--- a/meta-arago-extras/recipes-bsp/bt-firmware/bt-firmware_git.bb
+++ b/meta-arago-extras/recipes-bsp/bt-firmware/bt-firmware_git.bb
@@ -13,11 +13,11 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
RCONFLICTS_${PN} = "linux-firmware-wl12xx"
RREPLACES_${PN} = "linux-firmware-wl12xx"
-PR = "r0+gitr${SRCREV}"
+PR = "r1+gitr${SRCREV}"
COMPATIBLE_MACHINE = "omap3|omapl138|da850-omapl138-evm|ti33x"
-SRCREV = "db43d1f05efda9777d7ac1ac366637e29e21f77f"
+SRCREV = "adbc27c11d5c5c8c20a93a8beca647b4a6aaa03b"
SRC_URI = "git://github.com/TI-ECS/bt-firmware.git;protocol=git \
file://0001-Makefile-allow-building-within-the-OE.patch"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 8/9] arago conf: add rule for selecting between wilink chips
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (5 preceding siblings ...)
2013-03-18 13:35 ` [PATCH 7/9] bt-firmware: update for including the wl18xx bt firmware Eyal Reizer
@ 2013-03-18 13:36 ` Eyal Reizer
2013-03-18 13:36 ` [PATCH 9/9] connectivity packagegroup: add wlconf for wilink8 Eyal Reizer
2013-03-18 13:48 ` [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Cooper Jr., Franklin
8 siblings, 0 replies; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:36 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add a configuration variable for selecting between wilink6 and
wilink8 support.
Based on this variable the right version will be picked for the
recipes which are different between wilink versions.
The default is currently set to "WILINK-6" until the next SDK release
which is going to switch to using WILINK-8.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
meta-arago-distro/conf/distro/arago.conf | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index 44141c1..4835160 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -43,6 +43,13 @@ PREFERRED_VERSION_nativesdk-qt4-tools = "4.8.3"
PREFERRED_VERSION_wpa-supplicant = "2.0-devel-ti"
PREFERRED_VERSION_hostap-daemon = "2.0-devel-ti"
+WILINK_VERSION = "WILINK-6"
+PREFERRED_PROVIDER_wl12xx-firmware = "${@base_contains('WILINK_VERSION','WILINK-8','wl18xx-firmware','wl12xx-firmware',d)}"
+PREFERRED_PROVIDER_ti-compat-wireless-wl12xx = "${@base_contains('WILINK_VERSION','WILINK-8','ti-compat-wireless-wl18xx','ti-compat-wireless-wl12xx',d)}"
+PREFERRED_PROVIDER_hostap-daemon = "${@base_contains('WILINK_VERSION','WILINK-8','hostap-daemon-wl18xx','hostap-daemon',d)}"
+PREFERRED_PROVIDER_wpa-supplicant = "${@base_contains('WILINK_VERSION','WILINK-8','wpa-supplicant-wl18xx','wpa-supplicant',d)}"
+PREFERRED_PROVIDER_ti-wifi-utils = "${@base_contains('WILINK_VERSION','WILINK-8','ti-wifi-utils-wl18xx','ti-wifi-utils',d)}"
+
# Use v4.08.00.02 of the Graphics SDK
PREFERRED_VERSION_omap3-sgx-modules = "4.08.00.02"
PREFERRED_VERSION_libgles-omap3 = "4.08.00.02"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 9/9] connectivity packagegroup: add wlconf for wilink8
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (6 preceding siblings ...)
2013-03-18 13:36 ` [PATCH 8/9] arago conf: add rule for selecting between wilink chips Eyal Reizer
@ 2013-03-18 13:36 ` Eyal Reizer
2013-03-18 13:48 ` [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Cooper Jr., Franklin
8 siblings, 0 replies; 27+ messages in thread
From: Eyal Reizer @ 2013-03-18 13:36 UTC (permalink / raw)
To: meta-arago
From: Eyal Reizer <eyalr@ti.com>
Add the wlconf configuration utility which is used for wilink8
only.
The package is added based on the WILINK_VERSION switch added to
arago.conf
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
.../packagegroup-arago-tisdk-connectivity.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
index d936f83..eedad5d 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
@@ -1,6 +1,6 @@
DESCRIPTION = "Task to install wlan and bluetooth packages into the target FS"
LICENSE = "MIT"
-PR = "r5"
+PR = "r6"
inherit packagegroup
@@ -28,6 +28,7 @@ WLAN_COMMON = "\
pulseaudio-module-bluetooth-device \
eventdump \
wpa-supplicant \
+ ${@base_contains('WILINK_VERSION','WILINK-8','wlconf','',d)} \
"
FIRMWARE_AND_DRIVERS = "\
--
1.7.9.5
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
` (7 preceding siblings ...)
2013-03-18 13:36 ` [PATCH 9/9] connectivity packagegroup: add wlconf for wilink8 Eyal Reizer
@ 2013-03-18 13:48 ` Cooper Jr., Franklin
8 siblings, 0 replies; 27+ messages in thread
From: Cooper Jr., Franklin @ 2013-03-18 13:48 UTC (permalink / raw)
To: Eyal Reizer, meta-arago@arago-project.org
If this program is going to be updated based on an actual "release" then let's get away from using wlconf_git.bb and move to wlconf_r8.a6.01.bb or whatever way want to format it.
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Eyal Reizer
> Sent: Monday, March 18, 2013 8:36 AM
> To: meta-arago@arago-project.org
> Subject: [meta-arago] [PATCH 1/9] wlconf: configuration utility for wilink8
> wireless driver
>
> Add a recipe for building and installing the wlconf configuration utility for TI
> Wilink8 familily of chips.
>
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
> ---
> .../recipes-connectivity/wlconf/wlconf_git.bb | 36 ++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 meta-arago-extras/recipes-
> connectivity/wlconf/wlconf_git.bb
>
> diff --git a/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
> b/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
> new file mode 100644
> index 0000000..0d8a057
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wlconf/wlconf_git.bb
> @@ -0,0 +1,36 @@
> +DESCRIPTION = "Configuration utility for TI wireless drivers"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM =
> "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a
> 9438"
> +
> +PR ="r1"
> +PV ="0.0"
> +PR_append = "+gitr${SRCREV}"
> +
> +SRCREV = "ol_r8.a6.01"
> +SRC_URI = "git://github.com/TI-OpenLink/18xx-ti-utils.git"
> +
> +S = "${WORKDIR}/git/wlconf"
> +
> +EXTRA_OEMAKE = "CC=${TARGET_PREFIX}gcc"
> +
> +do_install() {
> + install -d ${D}${bindir}
> + install -d ${D}${bindir}/wlconf/
> + install -d ${D}${bindir}/wlconf/official_inis
> +
> + install -m 0755 wlconf ${D}${bindir}/wlconf/
> + install -m 0755 dictionary.txt ${D}${bindir}/wlconf/
> + install -m 0755 struct.bin ${D}${bindir}/wlconf/
> + install -m 0755 wl18xx-conf-default.bin ${D}${bindir}/wlconf/
> + install -m 0755 README ${D}${bindir}/wlconf/
> + install -m 0755 example.conf ${D}${bindir}/wlconf/
> + install -m 0755 example.ini ${D}${bindir}/wlconf/
> + install -m 0755 ${S}/official_inis/*
> +${D}${bindir}/wlconf/official_inis
FC: Formatting seems off can you indent this file.
> +}
> +
> +FILES_${PN} += " \
> + ${bindir}/wlconf \
> + ${bindir}/wlconf/official_inis \
> +"
> +
> +FILES_${PN}-dbg += "${bindir}/wlconf/.debug"
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files
2013-03-18 13:35 ` [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files Eyal Reizer
@ 2013-03-18 15:34 ` Maupin, Chase
2013-03-18 15:41 ` Reizer, Eyal
0 siblings, 1 reply; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 15:34 UTC (permalink / raw)
To: Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Eyal Reizer
> Sent: Monday, March 18, 2013 8:36 AM
> To: meta-arago@arago-project.org
> Subject: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> Wilink8 wlan firmware files
>
> Add a recipe for installing the Wilink8 wlan firmware files into
> the target file system.
>
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
> ---
> .../wl18xx-firmware/wl18xx-firmware/Makefile | 7 +++++
> .../wl18xx-firmware/wl18xx-firmware_git.bb | 28
> ++++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> firmware/wl18xx-firmware/Makefile
> create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> firmware/wl18xx-firmware_git.bb
>
> diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> firmware/wl18xx-firmware/Makefile b/meta-arago-extras/recipes-
> bsp/wl18xx-firmware/wl18xx-firmware/Makefile
> new file mode 100644
> index 0000000..0bb7ab8
> --- /dev/null
> +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> firmware/Makefile
> @@ -0,0 +1,7 @@
> +# Installs the the ti-connectiviy wlan firmware files into the
> root file system
> +
> +install:
> + install -d $(DEST_DIR)/lib/firmware/ti-connectivity
> + cp -RpP * $(DEST_DIR)/lib/firmware/ti-connectivity/
> + rm -f $(DEST_DIR)/lib/firmware/ti-connectivity/Makefile
> +
> diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> firmware/wl18xx-firmware_git.bb b/meta-arago-extras/recipes-
> bsp/wl18xx-firmware/wl18xx-firmware_git.bb
Same comment as Franklin had about the wlconf recipe. Should you drop the _git version if you are going to be using releases with a version?
> new file mode 100644
> index 0000000..43c40bb
> --- /dev/null
> +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> firmware_git.bb
> @@ -0,0 +1,28 @@
> +DESCRIPTION = "Firmware files for use with TI wl18xx"
> +LICENSE = "TI-TSPA"
> +LIC_FILES_CHKSUM =
> "file://LICENCE;md5=b28122fd6678e89fd3a8d4bc80922969"
> +
> +PACKAGE_ARCH = "all"
> +
> +PR = "r1+gitr${SRCREV}"
> +
> +PROVIDES += "wl12xx-firmware"
> +RPROVIDES += "wl12xx-firmware"
Why does this PROVIDES and RPROVIDES wl12xx-firmware? Shouldn't this be wl18xx-firmware?
Should this RCONFLICTS with wl12xx-firmware? Or is it OK to install both? Does it make sense to install both though if they cannot co-exist?
> +
> +SRCREV = "ol_r8.a6.01"
> +SRC_URI = "git://github.com/TI-
> OpenLink/wl18xx_fw.git;protocol=git \
> + file://Makefile \
> + "
> +
> +S = "${WORKDIR}/git"
> +
> +do_compile() {
> + :
> +}
> +
> +do_install() {
> + cp ${WORKDIR}/Makefile ${S}
> + oe_runmake 'DEST_DIR=${D}' install
> +}
> +
> +FILES_${PN} = "/lib/firmware/ti-connectivity/*"
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files
2013-03-18 15:34 ` Maupin, Chase
@ 2013-03-18 15:41 ` Reizer, Eyal
2013-03-18 15:49 ` Denys Dmytriyenko
2013-03-18 15:56 ` Maupin, Chase
0 siblings, 2 replies; 27+ messages in thread
From: Reizer, Eyal @ 2013-03-18 15:41 UTC (permalink / raw)
To: Maupin, Chase, Eyal Reizer, meta-arago@arago-project.org
Hi,
Comments inline,
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Maupin, Chase
> Sent: Monday, March 18, 2013 5:35 PM
> To: Eyal Reizer; meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 2/9] wl18xx-firmware: install Wilink8
> wlan firmware files
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > Sent: Monday, March 18, 2013 8:36 AM
> > To: meta-arago@arago-project.org
> > Subject: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> > Wilink8 wlan firmware files
> >
> > Add a recipe for installing the Wilink8 wlan firmware files into the
> > target file system.
> >
> > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > ---
> > .../wl18xx-firmware/wl18xx-firmware/Makefile | 7 +++++
> > .../wl18xx-firmware/wl18xx-firmware_git.bb | 28
> > ++++++++++++++++++++
> > 2 files changed, 35 insertions(+)
> > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > firmware/wl18xx-firmware/Makefile
> > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > firmware/wl18xx-firmware_git.bb
> >
> > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > firmware/wl18xx-firmware/Makefile b/meta-arago-extras/recipes-
> > bsp/wl18xx-firmware/wl18xx-firmware/Makefile
> > new file mode 100644
> > index 0000000..0bb7ab8
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > firmware/Makefile
> > @@ -0,0 +1,7 @@
> > +# Installs the the ti-connectiviy wlan firmware files into the
> > root file system
> > +
> > +install:
> > + install -d $(DEST_DIR)/lib/firmware/ti-connectivity
> > + cp -RpP * $(DEST_DIR)/lib/firmware/ti-connectivity/
> > + rm -f $(DEST_DIR)/lib/firmware/ti-connectivity/Makefile
> > +
> > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > firmware/wl18xx-firmware_git.bb b/meta-arago-extras/recipes-
> > bsp/wl18xx-firmware/wl18xx-firmware_git.bb
>
> Same comment as Franklin had about the wlconf recipe. Should you drop
> the _git version if you are going to be using releases with a version?
>
E.R: Will be fixed
> > new file mode 100644
> > index 0000000..43c40bb
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > firmware_git.bb
> > @@ -0,0 +1,28 @@
> > +DESCRIPTION = "Firmware files for use with TI wl18xx"
> > +LICENSE = "TI-TSPA"
> > +LIC_FILES_CHKSUM =
> > "file://LICENCE;md5=b28122fd6678e89fd3a8d4bc80922969"
> > +
> > +PACKAGE_ARCH = "all"
> > +
> > +PR = "r1+gitr${SRCREV}"
> > +
> > +PROVIDES += "wl12xx-firmware"
> > +RPROVIDES += "wl12xx-firmware"
>
> Why does this PROVIDES and RPROVIDES wl12xx-firmware? Shouldn't this
> be wl18xx-firmware?
E.R: This is the intention so it will actually provide the same packages as the wilink6 recipe and based on the PREFFERED_PROVIDER in arago.conf it will be picked up instead.
>
> Should this RCONFLICTS with wl12xx-firmware? Or is it OK to install
> both? Does it make sense to install both though if they cannot co-
> exist?
E.R: As there is a selection in arago.conf between them is it really needed?
>
> > +
> > +SRCREV = "ol_r8.a6.01"
> > +SRC_URI = "git://github.com/TI-
> > OpenLink/wl18xx_fw.git;protocol=git \
> > + file://Makefile \
> > + "
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +do_compile() {
> > + :
> > +}
> > +
> > +do_install() {
> > + cp ${WORKDIR}/Makefile ${S}
> > + oe_runmake 'DEST_DIR=${D}' install }
> > +
> > +FILES_${PN} = "/lib/firmware/ti-connectivity/*"
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 13:35 ` [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release Eyal Reizer
@ 2013-03-18 15:46 ` Maupin, Chase
2013-03-18 15:53 ` Denys Dmytriyenko
2013-03-18 15:54 ` Reizer, Eyal
0 siblings, 2 replies; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 15:46 UTC (permalink / raw)
To: Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Eyal Reizer
> Sent: Monday, March 18, 2013 8:36 AM
> To: meta-arago@arago-project.org
> Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> daemon for ti wilink8 release
>
> From: Eyal Reizer <eyalr@ti.com>
>
> Add a new recipe for building the ti version of hostap-daemon
> 2.0-devel from release r8.a6.01
>
> This package replace the wilink6 package which is provided by the
> hostap-daemon recipe. Selection between the two is done using a
> "WILINK_VERSION" switch added to arago.conf
>
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
> ---
> ...d-change-conf-file-for-better-oob-startup.patch | 40 +++++
> .../hostap/hostap-daemon-wl18xx/defconfig | 183
> ++++++++++++++++++++
> .../hostap/hostap-daemon-wl18xx/init | 37 ++++
> .../hostap/hostap-daemon-wl18xx_git.bb | 64
> +++++++
> 4 files changed, 324 insertions(+)
> create mode 100644 meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> conf-file-for-better-oob-startup.patch
> create mode 100644 meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/defconfig
> create mode 100644 meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/init
> create mode 100644 meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx_git.bb
>
> diff --git a/meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> conf-file-for-better-oob-startup.patch b/meta-arago-
> extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> hostapd-change-conf-file-for-better-oob-startup.patch
> new file mode 100644
> index 0000000..824d250
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> startup.patch
> @@ -0,0 +1,40 @@
> +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> 00:00:00 2001
> +From: Eyal Reizer <eyalr@ti.com>
> +Date: Sun, 17 Mar 2013 07:18:55 -0700
> +Subject: [PATCH] hostapd: change conf file for better sdk out of
> box startup
> +
> +Change the default channel to 6 and change the ssid to a more
> +meaningful name.
> +
> +Upstream-status: inappropriate [SDK specific patch]
> +
> +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> +---
> + hostapd/hostapd.conf | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
> +index f71a881..00843aa 100644
> +--- a/hostapd/hostapd.conf
> ++++ b/hostapd/hostapd.conf
> +@@ -83,7 +83,7 @@ ctrl_interface_group=0
> + ##### IEEE 802.11 related configuration
> #######################################
> +
> + # SSID to be used in IEEE 802.11 management frames
> +-ssid=test
> ++ssid=TexasInstruments_0001
> +
> + # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
> + # Set as needed to indicate country in which device is
> operating.
> +@@ -107,7 +107,7 @@ hw_mode=g
> + # channel will need to be configured separately with iwconfig.
> + # When set to 0, automatic channel selection will be engaged. A
> channel
> + # will be selected from the desired hw_mode.
> +-channel=1
> ++channel=6
> +
> + # Automatic channel selection (ACS) whitelist
> + # (default: not set)
> +--
> +1.7.9.5
> +
> diff --git a/meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-arago-
> extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
> new file mode 100644
> index 0000000..1ea96c4
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> daemon-wl18xx/defconfig
> @@ -0,0 +1,183 @@
> +# Example hostapd 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.,
> +# 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 cass, these lines should use +=
> in order not
> +# to override previous values of the variables.
> +
> +# Driver interface for Host AP driver
> +CONFIG_DRIVER_HOSTAP=y
> +
> +# Driver interface for wired authenticator
> +#CONFIG_DRIVER_WIRED=y
> +
> +# Driver interface for madwifi driver
> +#CONFIG_DRIVER_MADWIFI=y
> +#CFLAGS += -I../../madwifi # change to the madwifi source
> directory
> +
> +# Driver interface for drivers using the nl80211 kernel
> interface
> +CONFIG_DRIVER_NL80211=y
> +CONFIG_LIBNL20=y
> +# driver_nl80211.c requires a rather new libnl (version 1.1)
> which may not be
> +# shipped with your distribution yet. If that is the case, you
> need to build
> +# newer libnl version and point the hostapd build to use it.
> +#LIBNL=/usr/src/libnl
> +#CFLAGS += -I$(LIBNL)/include
> +#LIBS += -L$(LIBNL)/lib
> +
> +# 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 no driver (e.g., RADIUS server only)
> +#CONFIG_DRIVER_NONE=y
> +
> +# IEEE 802.11F/IAPP
> +CONFIG_IAPP=y
> +
> +# WPA2/IEEE 802.11i RSN pre-authentication
> +CONFIG_RSN_PREAUTH=y
> +
> +# 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
> +
> +# Integrated EAP server
> +CONFIG_EAP=y
> +
> +# EAP-MD5 for the integrated EAP server
> +CONFIG_EAP_MD5=y
> +
> +# EAP-TLS for the integrated EAP server
> +CONFIG_EAP_TLS=y
> +
> +# EAP-MSCHAPv2 for the integrated EAP server
> +CONFIG_EAP_MSCHAPV2=y
> +
> +# EAP-PEAP for the integrated EAP server
> +CONFIG_EAP_PEAP=y
> +
> +# EAP-GTC for the integrated EAP server
> +CONFIG_EAP_GTC=y
> +
> +# EAP-TTLS for the integrated EAP server
> +CONFIG_EAP_TTLS=y
> +
> +# EAP-SIM for the integrated EAP server
> +#CONFIG_EAP_SIM=y
> +
> +# EAP-AKA for the integrated EAP server
> +#CONFIG_EAP_AKA=y
> +
> +# EAP-AKA' for the integrated EAP server
> +# This requires CONFIG_EAP_AKA to be enabled, too.
> +#CONFIG_EAP_AKA_PRIME=y
> +
> +# EAP-PAX for the integrated EAP server
> +#CONFIG_EAP_PAX=y
> +
> +# EAP-PSK for the integrated EAP server (this is _not_ needed
> for WPA-PSK)
> +#CONFIG_EAP_PSK=y
> +
> +# EAP-SAKE for the integrated EAP server
> +#CONFIG_EAP_SAKE=y
> +
> +# EAP-GPSK for the integrated EAP server
> +#CONFIG_EAP_GPSK=y
> +# Include support for optional SHA256 cipher suite in EAP-GPSK
> +#CONFIG_EAP_GPSK_SHA256=y
> +
> +# EAP-FAST for the integrated EAP server
> +# 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.9-session-
> ticket.patch)
> +# to add the needed functions.
> +#CONFIG_EAP_FAST=y
> +
> +# Wi-Fi Protected Setup (WPS)
> +CONFIG_WPS=y
> +# Enable WSC 2.0 support
> +CONFIG_WPS2=y
> +# Enable UPnP support for external WPS Registrars
> +CONFIG_WPS_UPNP=y
> +
> +# EAP-IKEv2
> +#CONFIG_EAP_IKEV2=y
> +
> +# Trusted Network Connect (EAP-TNC)
> +#CONFIG_EAP_TNC=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
> +
> +# RADIUS authentication server. This provides access to the
> integrated EAP
> +# server from external hosts using RADIUS.
> +#CONFIG_RADIUS_SERVER=y
> +
> +# Build IPv6 support for RADIUS operations
> +CONFIG_IPV6=y
> +
> +# IEEE Std 802.11r-2008 (Fast BSS Transition)
> +#CONFIG_IEEE80211R=y
> +
> +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> without
> +# the IEEE 802.11 Management capability (e.g., madwifi or
> FreeBSD/net80211)
> +#CONFIG_DRIVER_RADIUS_ACL=y
> +
> +# IEEE 802.11n (High Throughput) support
> +CONFIG_IEEE80211N=y
> +
> +# Remove debugging code that is printing out debug messages to
> stdout.
> +# This can be used to reduce the size of the hostapd
> considerably if debugging
> +# code is not needed.
> +#CONFIG_NO_STDOUT_DEBUG=y
> +
> +# Remove support for RADIUS accounting
> +#CONFIG_NO_ACCOUNTING=y
> +
> +# Remove support for RADIUS
> +#CONFIG_NO_RADIUS=y
> +
> +# Remove support for VLANs
> +#CONFIG_NO_VLAN=y
> +
> +# Remove support for dumping state into a file on SIGUSR1 signal
> +# This can be used to reduce binary size at the cost of
> disabling a debugging
> +# option.
> +#CONFIG_NO_DUMP_STATE=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
> +#
> +#
> +
> +CONFIG_NO_RANDOM_POOL=y
> +
I just eye-balled this here but the config looks the same as the config used in the hostap-daemon recipe. Same with the init file below. So then maybe the better way to do this is to add the hostap-daemon directory to the FILESEXTRAPATHS. i.e. like:
FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
I think the above line should work. Then you do not need to add this config and init files.
> diff --git a/meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> new file mode 100644
> index 0000000..79f74b6
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> daemon-wl18xx/init
> @@ -0,0 +1,37 @@
> +#!/bin/sh
> +DAEMON=/usr/sbin/hostapd
> +NAME=hostapd
> +DESC="HOSTAP Daemon"
> +ARGS="/etc/hostapd.conf -B"
> +
> +test -f $DAEMON || exit 0
> +
> +set -e
> +
> +case "$1" in
> + start)
> + echo -n "Starting $DESC: "
> + start-stop-daemon -S -x $DAEMON -- $ARGS
> + echo "$NAME."
> + ;;
> + stop)
> + echo -n "Stopping $DESC: "
> + start-stop-daemon -K -x $DAEMON
> + echo "$NAME."
> + ;;
> + restart)
> + $0 stop
> + $0 start
> + ;;
> + reload)
> + echo -n "Reloading $DESC: "
> + killall -HUP $(basename ${DAEMON})
> + echo "$NAME."
> + ;;
> + *)
> + echo "Usage: $0 {start|stop|restart|reload}"
> + exit 1
> + ;;
> +esac
> +
> +exit 0
> diff --git a/meta-arago-extras/recipes-
> connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
Same question about using the _git version.
> new file mode 100644
> index 0000000..6d1d5eb
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> daemon-wl18xx_git.bb
> @@ -0,0 +1,64 @@
> +# This is a TI specific version of the hostap-daemon recipe for
> use with the
> +# wl18xx wlan and bluetooth module.
> +
> +HOMEPAGE = "http://hostap.epitest.fi"
> +DESCRIPTION = "User space daemon for extended IEEE 802.11
> management"
> +SECTION = "kernel/userland"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM =
> "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> +
> +DEPENDS = "libnl openssl"
> +
> +# Since this is a TI customized version of hostap-daemon do not
> make this the
> +# default
> +DEFAULT_PREFERENCE = "-1"
> +
> +inherit update-rc.d
> +INITSCRIPT_NAME="hostapd"
> +
> +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> +
> +# Add TI to the end to make it clear that this is a TI
> customized version
> +# of hostap
> +PV = "2.0-devel-ti"
> +
> +PR = "r1+gitr${SRCREV}"
> +
> +SRCREV = "ol_r8.a6.01"
> +
> +PROVIDES += "hostap-daemon"
> +RPROVIDES += "hostap-daemon"
If you are using a variable to select between the two versions then why set the PROVIDES and RPROVIDES name? You are already setting the packagegroups, etc to use hostap-daemon-wl18xx. Have you tested that this does become the default wl6 version as well? Although, the PV is set to the same between both versions which seems wrong.
> +
> +SRC_URI = "git://github.com/TI-OpenLink/hostap.git;protocol=git
> \
> + file://0001-hostapd-change-conf-file-for-better-oob-
> startup.patch;patchdir=.. \
> + file://defconfig \
> + file://init"
> +
> +S = "${WORKDIR}/git/hostapd"
> +
> +do_configure() {
> + install -m 0644 ${WORKDIR}/defconfig ${S}/.config
> + echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
> + echo "LIBS += -L${STAGING_LIBDIR}" >> .config
> +}
> +
> +do_compile() {
> + make
> +}
> +
> +do_install() {
> + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
> + install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
> + install -m 0755 ${S}/hostapd ${D}${sbindir}
> + install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
> + install -m 755 ${WORKDIR}/init
> ${D}${sysconfdir}/init.d/hostapd
> +}
> +
> +# The default hostapd.conf file that is fetched from upstream is
> using
> +# "a" band which is not supported by the 1271 chip.
> +# modify it to use "g" band and default channel 6 and change the
> ssid from
> +# "test" to a more meaningful name.
> +
> +updatercd_postinst () {
> +:
> +}
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files
2013-03-18 15:41 ` Reizer, Eyal
@ 2013-03-18 15:49 ` Denys Dmytriyenko
2013-03-18 15:56 ` Maupin, Chase
1 sibling, 0 replies; 27+ messages in thread
From: Denys Dmytriyenko @ 2013-03-18 15:49 UTC (permalink / raw)
To: Reizer, Eyal; +Cc: meta-arago@arago-project.org
On Mon, Mar 18, 2013 at 03:41:44PM +0000, Reizer, Eyal wrote:
> Hi,
>
> Comments inline,
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Maupin, Chase
> > Sent: Monday, March 18, 2013 5:35 PM
> > To: Eyal Reizer; meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH 2/9] wl18xx-firmware: install Wilink8
> > wlan firmware files
> >
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > Sent: Monday, March 18, 2013 8:36 AM
> > > To: meta-arago@arago-project.org
> > > Subject: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> > > Wilink8 wlan firmware files
> > >
> > > Add a recipe for installing the Wilink8 wlan firmware files into the
> > > target file system.
> > >
> > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > ---
> > > .../wl18xx-firmware/wl18xx-firmware/Makefile | 7 +++++
> > > .../wl18xx-firmware/wl18xx-firmware_git.bb | 28
> > > ++++++++++++++++++++
> > > 2 files changed, 35 insertions(+)
> > > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware/Makefile
> > > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware_git.bb
> > >
> > > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware/Makefile b/meta-arago-extras/recipes-
> > > bsp/wl18xx-firmware/wl18xx-firmware/Makefile
> > > new file mode 100644
> > > index 0000000..0bb7ab8
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > > firmware/Makefile
> > > @@ -0,0 +1,7 @@
> > > +# Installs the the ti-connectiviy wlan firmware files into the
> > > root file system
> > > +
> > > +install:
> > > + install -d $(DEST_DIR)/lib/firmware/ti-connectivity
> > > + cp -RpP * $(DEST_DIR)/lib/firmware/ti-connectivity/
> > > + rm -f $(DEST_DIR)/lib/firmware/ti-connectivity/Makefile
> > > +
> > > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware_git.bb b/meta-arago-extras/recipes-
> > > bsp/wl18xx-firmware/wl18xx-firmware_git.bb
> >
> > Same comment as Franklin had about the wlconf recipe. Should you drop
> > the _git version if you are going to be using releases with a version?
> >
>
> E.R: Will be fixed
>
> > > new file mode 100644
> > > index 0000000..43c40bb
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > > firmware_git.bb
> > > @@ -0,0 +1,28 @@
> > > +DESCRIPTION = "Firmware files for use with TI wl18xx"
> > > +LICENSE = "TI-TSPA"
> > > +LIC_FILES_CHKSUM =
> > > "file://LICENCE;md5=b28122fd6678e89fd3a8d4bc80922969"
> > > +
> > > +PACKAGE_ARCH = "all"
> > > +
> > > +PR = "r1+gitr${SRCREV}"
> > > +
> > > +PROVIDES += "wl12xx-firmware"
> > > +RPROVIDES += "wl12xx-firmware"
> >
> > Why does this PROVIDES and RPROVIDES wl12xx-firmware? Shouldn't this
> > be wl18xx-firmware?
>
> E.R: This is the intention so it will actually provide the same packages as
> the wilink6 recipe and based on the PREFFERED_PROVIDER in arago.conf it will
> be picked up instead.
>
> >
> > Should this RCONFLICTS with wl12xx-firmware? Or is it OK to install
> > both? Does it make sense to install both though if they cannot co-
> > exist?
>
> E.R: As there is a selection in arago.conf between them is it really needed?
The PREFERRED_PROVIDER or PREFERRED_VERSION selects one or another at build
time. You still need to use RPROVIDES, RREPLACES and RCONFLICTS to tell the
package manager (i.e. opkg) that those packages cannot be installed at the
same time. That basically covers the run-time part, besides build-time.
--
Denys
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 13:35 ` [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8 Eyal Reizer
@ 2013-03-18 15:52 ` Maupin, Chase
2013-03-18 15:59 ` Denys Dmytriyenko
0 siblings, 1 reply; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 15:52 UTC (permalink / raw)
To: Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Eyal Reizer
> Sent: Monday, March 18, 2013 8:36 AM
> To: meta-arago@arago-project.org
> Subject: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> 2.0-devel version for wilink8
>
> From: Eyal Reizer <eyalr@ti.com>
>
> Add a recipe for building a ti specific 2.0-devel version for
> Wilink8.
>
> This package replace the wilink6 package which is provided by the
> wpa-supplicant recipe.
> Selection between the two is done using a "WILINK_VERSION" switch
> added
> to arago.conf.
>
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
Overall I have the same questions as for the hostap-daemon recipe.
> ---
> .../wpa-supplicant-wl18xx/99_wpa_supplicant | 1 +
> .../wpa-supplicant-wl18xx/defaults-sane | 8 +
> .../wpa-supplicant/wpa-supplicant-wl18xx/defconfig | 430
> ++++++++++++
> .../fi.epitest.hostap.WPASupplicant.service | 4 +
> .../fi.w1.wpa_supplicant1.service | 4 +
> .../wpa-supplicant-wl18xx/kill_wpa_supplicant.sh | 9 +
> .../wpa-supplicant-wl18xx/wpa-supplicant.sh | 85 +++
> .../wpa-supplicant-wl18xx/wpa_supplicant.conf | 690
> ++++++++++++++++++++
> .../wpa-supplicant-wl18xx/wpa_supplicant.conf-sane | 7 +
> .../wpa-supplicant/wpa-supplicant-wl18xx_git.bb | 23 +
> 10 files changed, 1261 insertions(+)
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/defaults-sane
> create mode 100755 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/defconfig
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-
> wl18xx/fi.epitest.hostap.WPASupplicant.service
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
> create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx_git.bb
>
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/99_wpa_supplicant
> new file mode 100644
> index 0000000..6ff4dd8
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/99_wpa_supplicant
> @@ -0,0 +1 @@
> +d root root 0700 /var/run/wpa_supplicant none
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/defaults-sane b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/defaults-sane
> new file mode 100644
> index 0000000..67c4cbd
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/defaults-sane
> @@ -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"
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/defconfig b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/defconfig
> new file mode 100755
> index 0000000..b982e2a
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/defconfig
> @@ -0,0 +1,430 @@
> +# 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.,
> +# 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
> +# to override previous values of the variables.
> +
> +
> +# Uncomment following two lines and fix the paths if you have
> installed OpenSSL
> +# 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
> +# 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)
> ######################################
> +#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
> +################################################################
> ###############
> +
> +#### openwrt (e.g., for Linksys WRT54G)
> #######################################
> +#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
> +################################################################
> ###############
> +
> +#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") supportsBG
> +# 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/libBG
> +#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
> +#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
> +# 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.
> +# 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
> +# 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)
> +# 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
> +# 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 testingBG
> +#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
> +
> +# for p2p
> +CONFIG_P2P=y
> +CONFIG_AP=y
> +
> +# IEEE 802.11n (High Throughput) support
> +CONFIG_IEEE80211N=y
> +
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-
> wl18xx/fi.epitest.hostap.WPASupplicant.service b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/fi.epitest.hostap.WPASupplicant.service
> new file mode 100644
> index 0000000..fb3f917
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
> @@ -0,0 +1,4 @@
> +[D-BUS Service]
> +Name=fi.epitest.hostap.WPASupplicant
> +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> c/etc/wpa_supplicant.conf -iwlan0 -B -u
> +User=root
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> new file mode 100644
> index 0000000..0bb1056
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> @@ -0,0 +1,4 @@
> +[D-BUS Service]
> +Name=fi.w1.wpa_supplicant1
> +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> c/etc/wpa_supplicant.conf -iwlan0 -B -u
> +User=root
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh b/meta-
> arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/kill_wpa_supplicant.sh
> new file mode 100644
> index 0000000..aab6474
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/kill_wpa_supplicant.sh
> @@ -0,0 +1,9 @@
> +#check if the wpa_suppicant is already running
> +#if it does, stop it.
> +StationRunning=`ps | grep -c wpa_supplicant`
> +if [ $StationRunning -eq 2 ]; then
> + killall wpa_supplicant
> +fi
> +
> +# start the application
> +$*
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/wpa-supplicant.sh
> new file mode 100644
> index 0000000..4f1001e
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/wpa-supplicant.sh
> @@ -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"
> + 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\""
> + 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"
> + fi
> +
> + start-stop-daemon --start --quiet \
> + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --
> pidfile $WPA_SUP_PIDFILE \
> + -- $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
> +
> + if [ "$VERBOSITY" = "1" ]; then
> + echo "$WPA_SUP_PNAME: ctrl_interface socket
> located at $WPA_COMMON_CTRL_IFACE/$IFACE"
> + 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
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf b/meta-
> arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/wpa_supplicant.conf
> new file mode 100644
> index 0000000..f0c993d
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/wpa_supplicant.conf
> @@ -0,0 +1,690 @@
> +##### Example wpa_supplicant configuration file
> ###############################
> +#
> +# This file describes configuration file format and lists all
> available option.
> +# 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
> +# 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.
> +
> +# 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
> +# 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
> +# 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
> +# 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
> +# will be created for UNIX domain sockets for listening to
> requests from
> +# external programs (CLI/GUI, etc.) for status information and
> configuration.
> +# 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
> +# 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.
> +# 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/
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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
> +# also be used when using wired Ethernet drivers.
> +# 2: like 0, but associate with APs using security policy and
> SSID (but not
> +# 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
> +# 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
> +# 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
> +# 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
> +# (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,
> +# e.g., with wpa_cli or wpa_gui)
> +#
> +# id_str: Network identifier string for external scripts. This
> value is passed
> +# 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
> +# 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)
> +#
> +# 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).
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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.,
> +# 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
> +# 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
> +# from ASCII passphrase. This process uses lot of CPU and
> wpa_supplicant
> +# startup and reconfiguration time can be optimized by
> generating the PSK only
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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
> +# or more trusted CA certificates. If ca_cert and ca_path are
> not
> +# included, server certificate will not be verified. This is
> insecure and
> +# a trusted CA certificate should always be configured when
> using
> +# EAP-TLS/TTLS/PEAP. Full path should be used since working
> directory may
> +# 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
> +# 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
> +# 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
> +# 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
> +# 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
> +# to blob://<blob name>.
> +# private_key_passwd: Password for private key file (if left
> out, this will be
> +# 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
> +# 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.
> +# The subject string is in following format:
> +# /C=US/ST=CA/L=San Francisco/CN=Test
> AS/emailAddress=as@example.com
> +# altsubject_match: Semicolon separated string of entries to be
> matched against
> +# the alternative subject name of the authentication server
> certificate.
> +# 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:server@example.com
> +# 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",
> +# 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
> +# interoperate with PEAPv1; see eap_testing.txt for more
> details.
> +# 'peap_outer_success=0' can be used to terminate PEAP
> authentication on
> +# 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
> +# "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
> +# trusted CA certificates. If ca_cert2 and ca_path2 are not
> included,
> +# server certificate will not be verified. This is insecure
> and a trusted
> +# 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
> +# 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)
> +# nai: user NAI (ID_Client)
> +#
> +# EAP-FAST variables:
> +# pac_file: File path for the PAC entries. wpa_supplicant will
> need to be able
> +# 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
> +# 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
> +# 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
> +network={
> + ssid="simple"
> + psk="very secret passphrase"
> + priority=5
> +}
> +
> +# Same as previous, but request SSID-specific scanning (for APs
> that reject
> +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> 6c72ac7bb
> + priority=2
> +}
> +
> +# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP
> that used WEP104
> +# 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="user@example.com"
> + 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
> +# (e.g., Radiator)
> +network={
> + ssid="example"
> + key_mgmt=WPA-EAP
> + eap=PEAP
> + identity="user@example.com"
> + 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.
> +network={
> + ssid="example"
> + key_mgmt=WPA-EAP
> + eap=TTLS
> + identity="user@example.com"
> + anonymous_identity="anonymous@example.com"
> + password="foobar"
> + ca_cert="/etc/cert/ca.pem"
> + priority=2
> +}
> +
> +# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for
> the unencrypted
> +# use. Real identity is sent only within an encrypted TLS
> tunnel.
> +network={
> + ssid="example"
> + key_mgmt=WPA-EAP
> + eap=TTLS
> + identity="user@example.com"
> + anonymous_identity="anonymous@example.com"
> + password="foobar"
> + ca_cert="/etc/cert/ca.pem"
> + phase2="auth=MSCHAPV2"
> +}
> +
> +# WPA-EAP, EAP-TTLS with different CA certificate used for outer
> and inner
> +# authentication.
> +network={
> + ssid="example"
> + key_mgmt=WPA-EAP
> + eap=TTLS
> + # Phase1 / outer authentication
> + anonymous_identity="anonymous@example.com"
> + 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
> +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> 6c72ac7bb
> +}
> +
> +# Special characters in SSID, so use hex string. Default to WPA-
> PSK, WPA-EAP
> +# and all valid ciphers.
> +network={
> + ssid=00010203
> +
> psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1
> b1c1d1e1f
> +}
> +
> +
> +# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e.,
> no WPA) using
> +# EAP-TLS for authentication and key generation; require both
> unicast and
> +# broadcast WEP keys.
> +network={
> + ssid="1x-test"
> + key_mgmt=IEEE8021X
> + eap=TLS
> + identity="user@example.com"
> + 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="user@example.com"
> + 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="user@example.com"
> + 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
> +# data instead of using external file
> +network={
> + ssid="example"
> + key_mgmt=WPA-EAP
> + eap=TTLS
> + identity="user@example.com"
> + anonymous_identity="anonymous@example.com"
> + 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
> +}
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane b/meta-
> arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx/wpa_supplicant.conf-sane
> new file mode 100644
> index 0000000..c91ffe0
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx/wpa_supplicant.conf-sane
> @@ -0,0 +1,7 @@
> +ctrl_interface=/var/run/wpa_supplicant
> +ctrl_interface_group=0
> +update_config=1
> +
> +network={
> + key_mgmt=NONE
> +}
> diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> supplicant/wpa-supplicant-wl18xx_git.bb b/meta-arago-
> extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> wl18xx_git.bb
> new file mode 100644
> index 0000000..65be767
> --- /dev/null
> +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> supplicant-wl18xx_git.bb
> @@ -0,0 +1,23 @@
> +# This is a TI specific version of the wpa-supplicant recipe for
> use with the
> +# wl18xx wlan module.
> +
> +require wpa-supplicant.inc
I'm not sure where this file is coming from. Maybe something in Franklin's tree?
> +
> +LICENSE = "GPLv2 | BSD"
> +LIC_FILES_CHKSUM =
> "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
> +
> file://../README;md5=5cb758942d25f6f61fd4ac388fd446fa \
> +
> file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8ca
> d6356ec7f39ebe3aba"
> +
> +# To prevent users from accidently picking up this customized
> version of
> +# wpa-supplicant the DEFAULT_PREFERENCE will be set to -1.
> +DEFAULT_PREFERENCE = "-1"
> +
> +SRCREV = "ol_r8.a6.01"
> +PR = "r3+gitr${SRCREV}"
> +# Add ti to the PV to indicate that this is a TI modify version
> of wpa-supplicant.
> +PV = "2.0-devel-ti"
> +
> +PROVIDES_${PN}+= "wpa-supplicant"
> +RPROVIDES_${PN} += "wpa-supplicant"
> +RRECOMMENDS_${PN} = "wpa-supplicant"
Why would you RRECOMMENDS wpa-supplicant. Wouldn't this give you the wl6 version?
> +RDEPENDS_${PN} = "wpa-supplicant-cli wpa-supplicant-passphrase"
This seems likely to hurt you as well.
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8
2013-03-18 13:35 ` [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8 Eyal Reizer
@ 2013-03-18 15:53 ` Maupin, Chase
0 siblings, 0 replies; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 15:53 UTC (permalink / raw)
To: Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Eyal Reizer
> Sent: Monday, March 18, 2013 8:36 AM
> To: meta-arago@arago-project.org
> Subject: [meta-arago] [PATCH 5/9] ti-wifi-utils-wl18xx: build the
> calibrator tool for wilin8
>
> From: Eyal Reizer <eyalr@ti.com>
>
> Add a recipe for building and installing the calibrator tool
> used with the wilink8 family of chips.
>
> This package replace the wilink6 package which is provided by the
> ti-wifi-utils. Selection between the two is done using a
> "WILINK_VERSION" switch added to arago.conf
>
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
> ---
> .../ti-wifi-utils/ti-wifi-utils-wl18xx_git.bb | 26
> ++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 meta-arago-extras/recipes-devtools/ti-wifi-
> utils/ti-wifi-utils-wl18xx_git.bb
>
> diff --git a/meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-
> wifi-utils-wl18xx_git.bb b/meta-arago-extras/recipes-devtools/ti-
> wifi-utils/ti-wifi-utils-wl18xx_git.bb
> new file mode 100644
> index 0000000..3d2d6f1
> --- /dev/null
> +++ b/meta-arago-extras/recipes-devtools/ti-wifi-utils/ti-wifi-
> utils-wl18xx_git.bb
Same comments as before about _git versions.
> @@ -0,0 +1,26 @@
> +DESCRIPTION = "The calibrator and other useful utilities for TI
> wireless solution based on wl12xx driver"
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM =
> "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"
> +
> +DEPENDS = "libnl"
> +RDEPENDS = "ti-compat-wireless-wl12xx wl12xx-firmware"
> +
> +PR ="r1+gitr${SRCREV}"
> +PV ="0.0"
> +
> +SRCREV = "ol_r8.a6.01"
> +SRC_URI = "git://github.com/TI-OpenLink/18xx-ti-utils.git \
> +"
> +
> +PROVIDES += "ti-wifi-utils"
> +RPROVIDES += "ti-wifi-utils"
Same comments as before. This seems like it should also RCONFLICT with ti-wifi-utils.
> +
> +S = "${WORKDIR}/git"
> +
> +export CROSS_COMPILE = "${TARGET_PREFIX}"
> +CFLAGS += " -DCONFIG_LIBNL20"
> +
> +do_install() {
> + install -d ${D}${bindir}
> + install -m 0755 calibrator ${D}${bindir}/
> +}
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 15:46 ` Maupin, Chase
@ 2013-03-18 15:53 ` Denys Dmytriyenko
2013-03-18 16:01 ` Reizer, Eyal
2013-03-18 15:54 ` Reizer, Eyal
1 sibling, 1 reply; 27+ messages in thread
From: Denys Dmytriyenko @ 2013-03-18 15:53 UTC (permalink / raw)
To: Maupin, Chase; +Cc: meta-arago@arago-project.org
On Mon, Mar 18, 2013 at 03:46:42PM +0000, Maupin, Chase wrote:
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > Sent: Monday, March 18, 2013 8:36 AM
> > To: meta-arago@arago-project.org
> > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> > daemon for ti wilink8 release
> >
> > From: Eyal Reizer <eyalr@ti.com>
> >
> > Add a new recipe for building the ti version of hostap-daemon
> > 2.0-devel from release r8.a6.01
> >
> > This package replace the wilink6 package which is provided by the
> > hostap-daemon recipe. Selection between the two is done using a
> > "WILINK_VERSION" switch added to arago.conf
> >
> > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > ---
> > ...d-change-conf-file-for-better-oob-startup.patch | 40 +++++
> > .../hostap/hostap-daemon-wl18xx/defconfig | 183
> > ++++++++++++++++++++
> > .../hostap/hostap-daemon-wl18xx/init | 37 ++++
> > .../hostap/hostap-daemon-wl18xx_git.bb | 64
> > +++++++
> > 4 files changed, 324 insertions(+)
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > conf-file-for-better-oob-startup.patch
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/init
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> >
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > conf-file-for-better-oob-startup.patch b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> > hostapd-change-conf-file-for-better-oob-startup.patch
> > new file mode 100644
> > index 0000000..824d250
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> > startup.patch
> > @@ -0,0 +1,40 @@
> > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > 00:00:00 2001
> > +From: Eyal Reizer <eyalr@ti.com>
> > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > +Subject: [PATCH] hostapd: change conf file for better sdk out of
> > box startup
> > +
> > +Change the default channel to 6 and change the ssid to a more
> > +meaningful name.
> > +
> > +Upstream-status: inappropriate [SDK specific patch]
> > +
> > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > +---
> > + hostapd/hostapd.conf | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
> > +index f71a881..00843aa 100644
> > +--- a/hostapd/hostapd.conf
> > ++++ b/hostapd/hostapd.conf
> > +@@ -83,7 +83,7 @@ ctrl_interface_group=0
> > + ##### IEEE 802.11 related configuration
> > #######################################
> > +
> > + # SSID to be used in IEEE 802.11 management frames
> > +-ssid=test
> > ++ssid=TexasInstruments_0001
> > +
> > + # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
> > + # Set as needed to indicate country in which device is
> > operating.
> > +@@ -107,7 +107,7 @@ hw_mode=g
> > + # channel will need to be configured separately with iwconfig.
> > + # When set to 0, automatic channel selection will be engaged. A
> > channel
> > + # will be selected from the desired hw_mode.
> > +-channel=1
> > ++channel=6
> > +
> > + # Automatic channel selection (ACS) whitelist
> > + # (default: not set)
> > +--
> > +1.7.9.5
> > +
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > new file mode 100644
> > index 0000000..1ea96c4
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/defconfig
> > @@ -0,0 +1,183 @@
> > +# Example hostapd 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.,
> > +# 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 cass, these lines should use +=
> > in order not
> > +# to override previous values of the variables.
> > +
> > +# Driver interface for Host AP driver
> > +CONFIG_DRIVER_HOSTAP=y
> > +
> > +# Driver interface for wired authenticator
> > +#CONFIG_DRIVER_WIRED=y
> > +
> > +# Driver interface for madwifi driver
> > +#CONFIG_DRIVER_MADWIFI=y
> > +#CFLAGS += -I../../madwifi # change to the madwifi source
> > directory
> > +
> > +# Driver interface for drivers using the nl80211 kernel
> > interface
> > +CONFIG_DRIVER_NL80211=y
> > +CONFIG_LIBNL20=y
> > +# driver_nl80211.c requires a rather new libnl (version 1.1)
> > which may not be
> > +# shipped with your distribution yet. If that is the case, you
> > need to build
> > +# newer libnl version and point the hostapd build to use it.
> > +#LIBNL=/usr/src/libnl
> > +#CFLAGS += -I$(LIBNL)/include
> > +#LIBS += -L$(LIBNL)/lib
> > +
> > +# 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 no driver (e.g., RADIUS server only)
> > +#CONFIG_DRIVER_NONE=y
> > +
> > +# IEEE 802.11F/IAPP
> > +CONFIG_IAPP=y
> > +
> > +# WPA2/IEEE 802.11i RSN pre-authentication
> > +CONFIG_RSN_PREAUTH=y
> > +
> > +# 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
> > +
> > +# Integrated EAP server
> > +CONFIG_EAP=y
> > +
> > +# EAP-MD5 for the integrated EAP server
> > +CONFIG_EAP_MD5=y
> > +
> > +# EAP-TLS for the integrated EAP server
> > +CONFIG_EAP_TLS=y
> > +
> > +# EAP-MSCHAPv2 for the integrated EAP server
> > +CONFIG_EAP_MSCHAPV2=y
> > +
> > +# EAP-PEAP for the integrated EAP server
> > +CONFIG_EAP_PEAP=y
> > +
> > +# EAP-GTC for the integrated EAP server
> > +CONFIG_EAP_GTC=y
> > +
> > +# EAP-TTLS for the integrated EAP server
> > +CONFIG_EAP_TTLS=y
> > +
> > +# EAP-SIM for the integrated EAP server
> > +#CONFIG_EAP_SIM=y
> > +
> > +# EAP-AKA for the integrated EAP server
> > +#CONFIG_EAP_AKA=y
> > +
> > +# EAP-AKA' for the integrated EAP server
> > +# This requires CONFIG_EAP_AKA to be enabled, too.
> > +#CONFIG_EAP_AKA_PRIME=y
> > +
> > +# EAP-PAX for the integrated EAP server
> > +#CONFIG_EAP_PAX=y
> > +
> > +# EAP-PSK for the integrated EAP server (this is _not_ needed
> > for WPA-PSK)
> > +#CONFIG_EAP_PSK=y
> > +
> > +# EAP-SAKE for the integrated EAP server
> > +#CONFIG_EAP_SAKE=y
> > +
> > +# EAP-GPSK for the integrated EAP server
> > +#CONFIG_EAP_GPSK=y
> > +# Include support for optional SHA256 cipher suite in EAP-GPSK
> > +#CONFIG_EAP_GPSK_SHA256=y
> > +
> > +# EAP-FAST for the integrated EAP server
> > +# 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.9-session-
> > ticket.patch)
> > +# to add the needed functions.
> > +#CONFIG_EAP_FAST=y
> > +
> > +# Wi-Fi Protected Setup (WPS)
> > +CONFIG_WPS=y
> > +# Enable WSC 2.0 support
> > +CONFIG_WPS2=y
> > +# Enable UPnP support for external WPS Registrars
> > +CONFIG_WPS_UPNP=y
> > +
> > +# EAP-IKEv2
> > +#CONFIG_EAP_IKEV2=y
> > +
> > +# Trusted Network Connect (EAP-TNC)
> > +#CONFIG_EAP_TNC=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
> > +
> > +# RADIUS authentication server. This provides access to the
> > integrated EAP
> > +# server from external hosts using RADIUS.
> > +#CONFIG_RADIUS_SERVER=y
> > +
> > +# Build IPv6 support for RADIUS operations
> > +CONFIG_IPV6=y
> > +
> > +# IEEE Std 802.11r-2008 (Fast BSS Transition)
> > +#CONFIG_IEEE80211R=y
> > +
> > +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> > without
> > +# the IEEE 802.11 Management capability (e.g., madwifi or
> > FreeBSD/net80211)
> > +#CONFIG_DRIVER_RADIUS_ACL=y
> > +
> > +# IEEE 802.11n (High Throughput) support
> > +CONFIG_IEEE80211N=y
> > +
> > +# Remove debugging code that is printing out debug messages to
> > stdout.
> > +# This can be used to reduce the size of the hostapd
> > considerably if debugging
> > +# code is not needed.
> > +#CONFIG_NO_STDOUT_DEBUG=y
> > +
> > +# Remove support for RADIUS accounting
> > +#CONFIG_NO_ACCOUNTING=y
> > +
> > +# Remove support for RADIUS
> > +#CONFIG_NO_RADIUS=y
> > +
> > +# Remove support for VLANs
> > +#CONFIG_NO_VLAN=y
> > +
> > +# Remove support for dumping state into a file on SIGUSR1 signal
> > +# This can be used to reduce binary size at the cost of
> > disabling a debugging
> > +# option.
> > +#CONFIG_NO_DUMP_STATE=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
> > +#
> > +#
> > +
> > +CONFIG_NO_RANDOM_POOL=y
> > +
>
> I just eye-balled this here but the config looks the same as the config used
> in the hostap-daemon recipe. Same with the init file below. So then maybe
> the better way to do this is to add the hostap-daemon directory to the
> FILESEXTRAPATHS. i.e. like:
>
> FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
>
> I think the above line should work. Then you do not need to add this config
> and init files.
>
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> > new file mode 100644
> > index 0000000..79f74b6
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/init
> > @@ -0,0 +1,37 @@
> > +#!/bin/sh
> > +DAEMON=/usr/sbin/hostapd
> > +NAME=hostapd
> > +DESC="HOSTAP Daemon"
> > +ARGS="/etc/hostapd.conf -B"
> > +
> > +test -f $DAEMON || exit 0
> > +
> > +set -e
> > +
> > +case "$1" in
> > + start)
> > + echo -n "Starting $DESC: "
> > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > + echo "$NAME."
> > + ;;
> > + stop)
> > + echo -n "Stopping $DESC: "
> > + start-stop-daemon -K -x $DAEMON
> > + echo "$NAME."
> > + ;;
> > + restart)
> > + $0 stop
> > + $0 start
> > + ;;
> > + reload)
> > + echo -n "Reloading $DESC: "
> > + killall -HUP $(basename ${DAEMON})
> > + echo "$NAME."
> > + ;;
> > + *)
> > + echo "Usage: $0 {start|stop|restart|reload}"
> > + exit 1
> > + ;;
> > +esac
> > +
> > +exit 0
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
>
> Same question about using the _git version.
>
> > new file mode 100644
> > index 0000000..6d1d5eb
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx_git.bb
> > @@ -0,0 +1,64 @@
> > +# This is a TI specific version of the hostap-daemon recipe for
> > use with the
> > +# wl18xx wlan and bluetooth module.
> > +
> > +HOMEPAGE = "http://hostap.epitest.fi"
> > +DESCRIPTION = "User space daemon for extended IEEE 802.11
> > management"
> > +SECTION = "kernel/userland"
> > +LICENSE = "GPLv2"
> > +LIC_FILES_CHKSUM =
> > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > +
> > +DEPENDS = "libnl openssl"
> > +
> > +# Since this is a TI customized version of hostap-daemon do not
> > make this the
> > +# default
> > +DEFAULT_PREFERENCE = "-1"
> > +
> > +inherit update-rc.d
> > +INITSCRIPT_NAME="hostapd"
> > +
> > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > +
> > +# Add TI to the end to make it clear that this is a TI
> > customized version
> > +# of hostap
> > +PV = "2.0-devel-ti"
> > +
> > +PR = "r1+gitr${SRCREV}"
> > +
> > +SRCREV = "ol_r8.a6.01"
> > +
> > +PROVIDES += "hostap-daemon"
> > +RPROVIDES += "hostap-daemon"
>
> If you are using a variable to select between the two versions then why set
> the PROVIDES and RPROVIDES name? You are already setting the packagegroups,
> etc to use hostap-daemon-wl18xx. Have you tested that this does become the
> default wl6 version as well? Although, the PV is set to the same between
> both versions which seems wrong.
If this package completely replaces the original hostap-daemon and they cannot
be installed side by side, then the correct way is to add RPROVIDES,
RREPLACES, RCONFLICTS and chose one or another with PREFERRED_PROVIDER.
--
Denys
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 15:46 ` Maupin, Chase
2013-03-18 15:53 ` Denys Dmytriyenko
@ 2013-03-18 15:54 ` Reizer, Eyal
2013-03-18 16:02 ` Maupin, Chase
1 sibling, 1 reply; 27+ messages in thread
From: Reizer, Eyal @ 2013-03-18 15:54 UTC (permalink / raw)
To: Maupin, Chase, Eyal Reizer, meta-arago@arago-project.org
Hi,
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Maupin, Chase
> Sent: Monday, March 18, 2013 5:47 PM
> To: Eyal Reizer; meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> daemon for ti wilink8 release
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > Sent: Monday, March 18, 2013 8:36 AM
> > To: meta-arago@arago-project.org
> > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> daemon
> > for ti wilink8 release
> >
> > From: Eyal Reizer <eyalr@ti.com>
> >
> > Add a new recipe for building the ti version of hostap-daemon
> > 2.0-devel from release r8.a6.01
> >
> > This package replace the wilink6 package which is provided by the
> > hostap-daemon recipe. Selection between the two is done using a
> > "WILINK_VERSION" switch added to arago.conf
> >
> > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > ---
> > ...d-change-conf-file-for-better-oob-startup.patch | 40 +++++
> > .../hostap/hostap-daemon-wl18xx/defconfig | 183
> > ++++++++++++++++++++
> > .../hostap/hostap-daemon-wl18xx/init | 37 ++++
> > .../hostap/hostap-daemon-wl18xx_git.bb | 64
> > +++++++
> > 4 files changed, 324 insertions(+)
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > conf-file-for-better-oob-startup.patch
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/init
> > create mode 100644 meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> >
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > conf-file-for-better-oob-startup.patch b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> > hostapd-change-conf-file-for-better-oob-startup.patch
> > new file mode 100644
> > index 0000000..824d250
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> > startup.patch
> > @@ -0,0 +1,40 @@
> > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > 00:00:00 2001
> > +From: Eyal Reizer <eyalr@ti.com>
> > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > +Subject: [PATCH] hostapd: change conf file for better sdk out of
> > box startup
> > +
> > +Change the default channel to 6 and change the ssid to a more
> > +meaningful name.
> > +
> > +Upstream-status: inappropriate [SDK specific patch]
> > +
> > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > +---
> > + hostapd/hostapd.conf | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index
> > +f71a881..00843aa 100644
> > +--- a/hostapd/hostapd.conf
> > ++++ b/hostapd/hostapd.conf
> > +@@ -83,7 +83,7 @@ ctrl_interface_group=0 ##### IEEE 802.11 related
> > +configuration
> > #######################################
> > +
> > + # SSID to be used in IEEE 802.11 management frames -ssid=test
> > ++ssid=TexasInstruments_0001
> > +
> > + # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
> > + # Set as needed to indicate country in which device is
> > operating.
> > +@@ -107,7 +107,7 @@ hw_mode=g
> > + # channel will need to be configured separately with iwconfig.
> > + # When set to 0, automatic channel selection will be engaged. A
> > channel
> > + # will be selected from the desired hw_mode.
> > +-channel=1
> > ++channel=6
> > +
> > + # Automatic channel selection (ACS) whitelist # (default: not set)
> > +--
> > +1.7.9.5
> > +
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > new file mode 100644
> > index 0000000..1ea96c4
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/defconfig
> > @@ -0,0 +1,183 @@
> > +# Example hostapd 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.,
> > +# 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 cass, these lines should use +=
> > in order not
> > +# to override previous values of the variables.
> > +
> > +# Driver interface for Host AP driver CONFIG_DRIVER_HOSTAP=y
> > +
> > +# Driver interface for wired authenticator #CONFIG_DRIVER_WIRED=y
> > +
> > +# Driver interface for madwifi driver #CONFIG_DRIVER_MADWIFI=y
> > +#CFLAGS += -I../../madwifi # change to the madwifi source
> > directory
> > +
> > +# Driver interface for drivers using the nl80211 kernel
> > interface
> > +CONFIG_DRIVER_NL80211=y
> > +CONFIG_LIBNL20=y
> > +# driver_nl80211.c requires a rather new libnl (version 1.1)
> > which may not be
> > +# shipped with your distribution yet. If that is the case, you
> > need to build
> > +# newer libnl version and point the hostapd build to use it.
> > +#LIBNL=/usr/src/libnl
> > +#CFLAGS += -I$(LIBNL)/include
> > +#LIBS += -L$(LIBNL)/lib
> > +
> > +# 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 no driver (e.g., RADIUS server only)
> > +#CONFIG_DRIVER_NONE=y
> > +
> > +# IEEE 802.11F/IAPP
> > +CONFIG_IAPP=y
> > +
> > +# WPA2/IEEE 802.11i RSN pre-authentication CONFIG_RSN_PREAUTH=y
> > +
> > +# 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
> > +
> > +# Integrated EAP server
> > +CONFIG_EAP=y
> > +
> > +# EAP-MD5 for the integrated EAP server CONFIG_EAP_MD5=y
> > +
> > +# EAP-TLS for the integrated EAP server CONFIG_EAP_TLS=y
> > +
> > +# EAP-MSCHAPv2 for the integrated EAP server CONFIG_EAP_MSCHAPV2=y
> > +
> > +# EAP-PEAP for the integrated EAP server CONFIG_EAP_PEAP=y
> > +
> > +# EAP-GTC for the integrated EAP server CONFIG_EAP_GTC=y
> > +
> > +# EAP-TTLS for the integrated EAP server CONFIG_EAP_TTLS=y
> > +
> > +# EAP-SIM for the integrated EAP server #CONFIG_EAP_SIM=y
> > +
> > +# EAP-AKA for the integrated EAP server #CONFIG_EAP_AKA=y
> > +
> > +# EAP-AKA' for the integrated EAP server # This requires
> > +CONFIG_EAP_AKA to be enabled, too.
> > +#CONFIG_EAP_AKA_PRIME=y
> > +
> > +# EAP-PAX for the integrated EAP server #CONFIG_EAP_PAX=y
> > +
> > +# EAP-PSK for the integrated EAP server (this is _not_ needed
> > for WPA-PSK)
> > +#CONFIG_EAP_PSK=y
> > +
> > +# EAP-SAKE for the integrated EAP server #CONFIG_EAP_SAKE=y
> > +
> > +# EAP-GPSK for the integrated EAP server #CONFIG_EAP_GPSK=y #
> Include
> > +support for optional SHA256 cipher suite in EAP-GPSK
> > +#CONFIG_EAP_GPSK_SHA256=y
> > +
> > +# EAP-FAST for the integrated EAP server # 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.9-session-
> > ticket.patch)
> > +# to add the needed functions.
> > +#CONFIG_EAP_FAST=y
> > +
> > +# Wi-Fi Protected Setup (WPS)
> > +CONFIG_WPS=y
> > +# Enable WSC 2.0 support
> > +CONFIG_WPS2=y
> > +# Enable UPnP support for external WPS Registrars CONFIG_WPS_UPNP=y
> > +
> > +# EAP-IKEv2
> > +#CONFIG_EAP_IKEV2=y
> > +
> > +# Trusted Network Connect (EAP-TNC)
> > +#CONFIG_EAP_TNC=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
> > +
> > +# RADIUS authentication server. This provides access to the
> > integrated EAP
> > +# server from external hosts using RADIUS.
> > +#CONFIG_RADIUS_SERVER=y
> > +
> > +# Build IPv6 support for RADIUS operations CONFIG_IPV6=y
> > +
> > +# IEEE Std 802.11r-2008 (Fast BSS Transition) #CONFIG_IEEE80211R=y
> > +
> > +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> > without
> > +# the IEEE 802.11 Management capability (e.g., madwifi or
> > FreeBSD/net80211)
> > +#CONFIG_DRIVER_RADIUS_ACL=y
> > +
> > +# IEEE 802.11n (High Throughput) support CONFIG_IEEE80211N=y
> > +
> > +# Remove debugging code that is printing out debug messages to
> > stdout.
> > +# This can be used to reduce the size of the hostapd
> > considerably if debugging
> > +# code is not needed.
> > +#CONFIG_NO_STDOUT_DEBUG=y
> > +
> > +# Remove support for RADIUS accounting #CONFIG_NO_ACCOUNTING=y
> > +
> > +# Remove support for RADIUS
> > +#CONFIG_NO_RADIUS=y
> > +
> > +# Remove support for VLANs
> > +#CONFIG_NO_VLAN=y
> > +
> > +# Remove support for dumping state into a file on SIGUSR1 signal #
> > +This can be used to reduce binary size at the cost of
> > disabling a debugging
> > +# option.
> > +#CONFIG_NO_DUMP_STATE=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
> > +#
> > +#
> > +
> > +CONFIG_NO_RANDOM_POOL=y
> > +
>
> I just eye-balled this here but the config looks the same as the config
> used in the hostap-daemon recipe. Same with the init file below. So
> then maybe the better way to do this is to add the hostap-daemon
> directory to the FILESEXTRAPATHS. i.e. like:
>
> FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
>
> I think the above line should work. Then you do not need to add this
> config and init files.
>
E.R: I will try this
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> > new file mode 100644
> > index 0000000..79f74b6
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx/init
> > @@ -0,0 +1,37 @@
> > +#!/bin/sh
> > +DAEMON=/usr/sbin/hostapd
> > +NAME=hostapd
> > +DESC="HOSTAP Daemon"
> > +ARGS="/etc/hostapd.conf -B"
> > +
> > +test -f $DAEMON || exit 0
> > +
> > +set -e
> > +
> > +case "$1" in
> > + start)
> > + echo -n "Starting $DESC: "
> > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > + echo "$NAME."
> > + ;;
> > + stop)
> > + echo -n "Stopping $DESC: "
> > + start-stop-daemon -K -x $DAEMON
> > + echo "$NAME."
> > + ;;
> > + restart)
> > + $0 stop
> > + $0 start
> > + ;;
> > + reload)
> > + echo -n "Reloading $DESC: "
> > + killall -HUP $(basename ${DAEMON})
> > + echo "$NAME."
> > + ;;
> > + *)
> > + echo "Usage: $0 {start|stop|restart|reload}"
> > + exit 1
> > + ;;
> > +esac
> > +
> > +exit 0
> > diff --git a/meta-arago-extras/recipes-
> > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
>
> Same question about using the _git version.
E.R: Will be changed
>
> > new file mode 100644
> > index 0000000..6d1d5eb
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > daemon-wl18xx_git.bb
> > @@ -0,0 +1,64 @@
> > +# This is a TI specific version of the hostap-daemon recipe for
> > use with the
> > +# wl18xx wlan and bluetooth module.
> > +
> > +HOMEPAGE = "http://hostap.epitest.fi"
> > +DESCRIPTION = "User space daemon for extended IEEE 802.11
> > management"
> > +SECTION = "kernel/userland"
> > +LICENSE = "GPLv2"
> > +LIC_FILES_CHKSUM =
> > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > +
> > +DEPENDS = "libnl openssl"
> > +
> > +# Since this is a TI customized version of hostap-daemon do not
> > make this the
> > +# default
> > +DEFAULT_PREFERENCE = "-1"
> > +
> > +inherit update-rc.d
> > +INITSCRIPT_NAME="hostapd"
> > +
> > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > +
> > +# Add TI to the end to make it clear that this is a TI
> > customized version
> > +# of hostap
> > +PV = "2.0-devel-ti"
> > +
> > +PR = "r1+gitr${SRCREV}"
> > +
> > +SRCREV = "ol_r8.a6.01"
> > +
> > +PROVIDES += "hostap-daemon"
> > +RPROVIDES += "hostap-daemon"
>
> If you are using a variable to select between the two versions then why
> set the PROVIDES and RPROVIDES name? You are already setting the
> packagegroups, etc to use hostap-daemon-wl18xx. Have you tested that
> this does become the default wl6 version as well? Although, the PV is
> set to the same between both versions which seems wrong.
packagegroups are not changing as the names of the packages provided by both wilink6 and wilink8 recipes are the same and there is no need to change them.
>
> > +
> > +SRC_URI = "git://github.com/TI-OpenLink/hostap.git;protocol=git
> > \
> > + file://0001-hostapd-change-conf-file-for-better-oob-
> > startup.patch;patchdir=.. \
> > + file://defconfig \
> > + file://init"
> > +
> > +S = "${WORKDIR}/git/hostapd"
> > +
> > +do_configure() {
> > + install -m 0644 ${WORKDIR}/defconfig ${S}/.config
> > + echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
> > + echo "LIBS += -L${STAGING_LIBDIR}" >> .config }
> > +
> > +do_compile() {
> > + make
> > +}
> > +
> > +do_install() {
> > + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
> > + install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
> > + install -m 0755 ${S}/hostapd ${D}${sbindir}
> > + install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
> > + install -m 755 ${WORKDIR}/init
> > ${D}${sysconfdir}/init.d/hostapd
> > +}
> > +
> > +# The default hostapd.conf file that is fetched from upstream is
> > using
> > +# "a" band which is not supported by the 1271 chip.
> > +# modify it to use "g" band and default channel 6 and change the
> > ssid from
> > +# "test" to a more meaningful name.
> > +
> > +updatercd_postinst () {
> > +:
> > +}
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files
2013-03-18 15:41 ` Reizer, Eyal
2013-03-18 15:49 ` Denys Dmytriyenko
@ 2013-03-18 15:56 ` Maupin, Chase
1 sibling, 0 replies; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 15:56 UTC (permalink / raw)
To: Reizer, Eyal, Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: Reizer, Eyal
> Sent: Monday, March 18, 2013 10:42 AM
> To: Maupin, Chase; Eyal Reizer; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> Wilink8 wlan firmware files
>
> Hi,
>
> Comments inline,
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Maupin, Chase
> > Sent: Monday, March 18, 2013 5:35 PM
> > To: Eyal Reizer; meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> Wilink8
> > wlan firmware files
> >
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-
> arago-
> > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > Sent: Monday, March 18, 2013 8:36 AM
> > > To: meta-arago@arago-project.org
> > > Subject: [meta-arago] [PATCH 2/9] wl18xx-firmware: install
> > > Wilink8 wlan firmware files
> > >
> > > Add a recipe for installing the Wilink8 wlan firmware files
> into the
> > > target file system.
> > >
> > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > ---
> > > .../wl18xx-firmware/wl18xx-firmware/Makefile | 7
> +++++
> > > .../wl18xx-firmware/wl18xx-firmware_git.bb | 28
> > > ++++++++++++++++++++
> > > 2 files changed, 35 insertions(+)
> > > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware/Makefile
> > > create mode 100644 meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware_git.bb
> > >
> > > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware/Makefile b/meta-arago-
> extras/recipes-
> > > bsp/wl18xx-firmware/wl18xx-firmware/Makefile
> > > new file mode 100644
> > > index 0000000..0bb7ab8
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > > firmware/Makefile
> > > @@ -0,0 +1,7 @@
> > > +# Installs the the ti-connectiviy wlan firmware files into
> the
> > > root file system
> > > +
> > > +install:
> > > + install -d $(DEST_DIR)/lib/firmware/ti-connectivity
> > > + cp -RpP * $(DEST_DIR)/lib/firmware/ti-connectivity/
> > > + rm -f $(DEST_DIR)/lib/firmware/ti-connectivity/Makefile
> > > +
> > > diff --git a/meta-arago-extras/recipes-bsp/wl18xx-
> > > firmware/wl18xx-firmware_git.bb b/meta-arago-extras/recipes-
> > > bsp/wl18xx-firmware/wl18xx-firmware_git.bb
> >
> > Same comment as Franklin had about the wlconf recipe. Should
> you drop
> > the _git version if you are going to be using releases with a
> version?
> >
>
> E.R: Will be fixed
>
> > > new file mode 100644
> > > index 0000000..43c40bb
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-bsp/wl18xx-firmware/wl18xx-
> > > firmware_git.bb
> > > @@ -0,0 +1,28 @@
> > > +DESCRIPTION = "Firmware files for use with TI wl18xx"
> > > +LICENSE = "TI-TSPA"
> > > +LIC_FILES_CHKSUM =
> > > "file://LICENCE;md5=b28122fd6678e89fd3a8d4bc80922969"
> > > +
> > > +PACKAGE_ARCH = "all"
> > > +
> > > +PR = "r1+gitr${SRCREV}"
> > > +
> > > +PROVIDES += "wl12xx-firmware"
> > > +RPROVIDES += "wl12xx-firmware"
> >
> > Why does this PROVIDES and RPROVIDES wl12xx-firmware?
> Shouldn't this
> > be wl18xx-firmware?
>
> E.R: This is the intention so it will actually provide the same
> packages as the wilink6 recipe and based on the
> PREFFERED_PROVIDER in arago.conf it will be picked up instead.
But in the packagegroup you are doing the selection to install either wl18xx-firmware or wl12xx-firmware. So you are installing them as different packages. In this case the wl18xx recipe provides BOTH wl18xx-firmware and wl12xx-firmware while the wl12xx recipe only does wl12xx-firmware. This seems wrong.
>
> >
> > Should this RCONFLICTS with wl12xx-firmware? Or is it OK to
> install
> > both? Does it make sense to install both though if they
> cannot co-
> > exist?
>
> E.R: As there is a selection in arago.conf between them is it
> really needed?
>
> >
> > > +
> > > +SRCREV = "ol_r8.a6.01"
> > > +SRC_URI = "git://github.com/TI-
> > > OpenLink/wl18xx_fw.git;protocol=git \
> > > + file://Makefile \
> > > + "
> > > +
> > > +S = "${WORKDIR}/git"
> > > +
> > > +do_compile() {
> > > + :
> > > +}
> > > +
> > > +do_install() {
> > > + cp ${WORKDIR}/Makefile ${S}
> > > + oe_runmake 'DEST_DIR=${D}' install }
> > > +
> > > +FILES_${PN} = "/lib/firmware/ti-connectivity/*"
> > > --
> > > 1.7.9.5
> > >
> > > _______________________________________________
> > > meta-arago mailing list
> > > meta-arago@arago-project.org
> > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 15:52 ` Maupin, Chase
@ 2013-03-18 15:59 ` Denys Dmytriyenko
2013-03-18 16:42 ` Reizer, Eyal
0 siblings, 1 reply; 27+ messages in thread
From: Denys Dmytriyenko @ 2013-03-18 15:59 UTC (permalink / raw)
To: Maupin, Chase; +Cc: meta-arago@arago-project.org
On Mon, Mar 18, 2013 at 03:52:22PM +0000, Maupin, Chase wrote:
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > Sent: Monday, March 18, 2013 8:36 AM
> > To: meta-arago@arago-project.org
> > Subject: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> > 2.0-devel version for wilink8
> >
> > From: Eyal Reizer <eyalr@ti.com>
> >
> > Add a recipe for building a ti specific 2.0-devel version for
> > Wilink8.
> >
> > This package replace the wilink6 package which is provided by the
> > wpa-supplicant recipe.
> > Selection between the two is done using a "WILINK_VERSION" switch
> > added
> > to arago.conf.
> >
> > Signed-off-by: Eyal Reizer <eyalr@ti.com>
>
>
> Overall I have the same questions as for the hostap-daemon recipe.
See way below...
> > ---
> > .../wpa-supplicant-wl18xx/99_wpa_supplicant | 1 +
> > .../wpa-supplicant-wl18xx/defaults-sane | 8 +
> > .../wpa-supplicant/wpa-supplicant-wl18xx/defconfig | 430
> > ++++++++++++
> > .../fi.epitest.hostap.WPASupplicant.service | 4 +
> > .../fi.w1.wpa_supplicant1.service | 4 +
> > .../wpa-supplicant-wl18xx/kill_wpa_supplicant.sh | 9 +
> > .../wpa-supplicant-wl18xx/wpa-supplicant.sh | 85 +++
> > .../wpa-supplicant-wl18xx/wpa_supplicant.conf | 690
> > ++++++++++++++++++++
> > .../wpa-supplicant-wl18xx/wpa_supplicant.conf-sane | 7 +
> > .../wpa-supplicant/wpa-supplicant-wl18xx_git.bb | 23 +
> > 10 files changed, 1261 insertions(+)
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/defaults-sane
> > create mode 100755 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/defconfig
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-
> > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
> > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx_git.bb
> >
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/99_wpa_supplicant
> > new file mode 100644
> > index 0000000..6ff4dd8
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/99_wpa_supplicant
> > @@ -0,0 +1 @@
> > +d root root 0700 /var/run/wpa_supplicant none
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/defaults-sane b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/defaults-sane
> > new file mode 100644
> > index 0000000..67c4cbd
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/defaults-sane
> > @@ -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"
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/defconfig b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/defconfig
> > new file mode 100755
> > index 0000000..b982e2a
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/defconfig
> > @@ -0,0 +1,430 @@
> > +# 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.,
> > +# 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
> > +# to override previous values of the variables.
> > +
> > +
> > +# Uncomment following two lines and fix the paths if you have
> > installed OpenSSL
> > +# 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
> > +# 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)
> > ######################################
> > +#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
> > +################################################################
> > ###############
> > +
> > +#### openwrt (e.g., for Linksys WRT54G)
> > #######################################
> > +#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
> > +################################################################
> > ###############
> > +
> > +#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") supportsBG
> > +# 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/libBG
> > +#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
> > +#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
> > +# 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.
> > +# 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
> > +# 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)
> > +# 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
> > +# 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 testingBG
> > +#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
> > +
> > +# for p2p
> > +CONFIG_P2P=y
> > +CONFIG_AP=y
> > +
> > +# IEEE 802.11n (High Throughput) support
> > +CONFIG_IEEE80211N=y
> > +
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-
> > wl18xx/fi.epitest.hostap.WPASupplicant.service b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > new file mode 100644
> > index 0000000..fb3f917
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
> > @@ -0,0 +1,4 @@
> > +[D-BUS Service]
> > +Name=fi.epitest.hostap.WPASupplicant
> > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > +User=root
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > new file mode 100644
> > index 0000000..0bb1056
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > @@ -0,0 +1,4 @@
> > +[D-BUS Service]
> > +Name=fi.w1.wpa_supplicant1
> > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > +User=root
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh b/meta-
> > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/kill_wpa_supplicant.sh
> > new file mode 100644
> > index 0000000..aab6474
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/kill_wpa_supplicant.sh
> > @@ -0,0 +1,9 @@
> > +#check if the wpa_suppicant is already running
> > +#if it does, stop it.
> > +StationRunning=`ps | grep -c wpa_supplicant`
> > +if [ $StationRunning -eq 2 ]; then
> > + killall wpa_supplicant
> > +fi
> > +
> > +# start the application
> > +$*
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/wpa-supplicant.sh
> > new file mode 100644
> > index 0000000..4f1001e
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/wpa-supplicant.sh
> > @@ -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"
> > + 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\""
> > + 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"
> > + fi
> > +
> > + start-stop-daemon --start --quiet \
> > + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --
> > pidfile $WPA_SUP_PIDFILE \
> > + -- $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
> > +
> > + if [ "$VERBOSITY" = "1" ]; then
> > + echo "$WPA_SUP_PNAME: ctrl_interface socket
> > located at $WPA_COMMON_CTRL_IFACE/$IFACE"
> > + 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
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf b/meta-
> > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/wpa_supplicant.conf
> > new file mode 100644
> > index 0000000..f0c993d
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/wpa_supplicant.conf
> > @@ -0,0 +1,690 @@
> > +##### Example wpa_supplicant configuration file
> > ###############################
> > +#
> > +# This file describes configuration file format and lists all
> > available option.
> > +# 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
> > +# 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.
> > +
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# will be created for UNIX domain sockets for listening to
> > requests from
> > +# external programs (CLI/GUI, etc.) for status information and
> > configuration.
> > +# 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
> > +# 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.
> > +# 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/
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# also be used when using wired Ethernet drivers.
> > +# 2: like 0, but associate with APs using security policy and
> > SSID (but not
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# (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,
> > +# e.g., with wpa_cli or wpa_gui)
> > +#
> > +# id_str: Network identifier string for external scripts. This
> > value is passed
> > +# 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
> > +# 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)
> > +#
> > +# 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).
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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.,
> > +# 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
> > +# 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
> > +# from ASCII passphrase. This process uses lot of CPU and
> > wpa_supplicant
> > +# startup and reconfiguration time can be optimized by
> > generating the PSK only
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# or more trusted CA certificates. If ca_cert and ca_path are
> > not
> > +# included, server certificate will not be verified. This is
> > insecure and
> > +# a trusted CA certificate should always be configured when
> > using
> > +# EAP-TLS/TTLS/PEAP. Full path should be used since working
> > directory may
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# 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
> > +# to blob://<blob name>.
> > +# private_key_passwd: Password for private key file (if left
> > out, this will be
> > +# 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
> > +# 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.
> > +# The subject string is in following format:
> > +# /C=US/ST=CA/L=San Francisco/CN=Test
> > AS/emailAddress=as@example.com
> > +# altsubject_match: Semicolon separated string of entries to be
> > matched against
> > +# the alternative subject name of the authentication server
> > certificate.
> > +# 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:server@example.com
> > +# 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",
> > +# 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
> > +# interoperate with PEAPv1; see eap_testing.txt for more
> > details.
> > +# 'peap_outer_success=0' can be used to terminate PEAP
> > authentication on
> > +# 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
> > +# "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
> > +# trusted CA certificates. If ca_cert2 and ca_path2 are not
> > included,
> > +# server certificate will not be verified. This is insecure
> > and a trusted
> > +# 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
> > +# 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)
> > +# nai: user NAI (ID_Client)
> > +#
> > +# EAP-FAST variables:
> > +# pac_file: File path for the PAC entries. wpa_supplicant will
> > need to be able
> > +# 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
> > +# 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
> > +# 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
> > +network={
> > + ssid="simple"
> > + psk="very secret passphrase"
> > + priority=5
> > +}
> > +
> > +# Same as previous, but request SSID-specific scanning (for APs
> > that reject
> > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > 6c72ac7bb
> > + priority=2
> > +}
> > +
> > +# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP
> > that used WEP104
> > +# 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="user@example.com"
> > + 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
> > +# (e.g., Radiator)
> > +network={
> > + ssid="example"
> > + key_mgmt=WPA-EAP
> > + eap=PEAP
> > + identity="user@example.com"
> > + 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.
> > +network={
> > + ssid="example"
> > + key_mgmt=WPA-EAP
> > + eap=TTLS
> > + identity="user@example.com"
> > + anonymous_identity="anonymous@example.com"
> > + password="foobar"
> > + ca_cert="/etc/cert/ca.pem"
> > + priority=2
> > +}
> > +
> > +# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for
> > the unencrypted
> > +# use. Real identity is sent only within an encrypted TLS
> > tunnel.
> > +network={
> > + ssid="example"
> > + key_mgmt=WPA-EAP
> > + eap=TTLS
> > + identity="user@example.com"
> > + anonymous_identity="anonymous@example.com"
> > + password="foobar"
> > + ca_cert="/etc/cert/ca.pem"
> > + phase2="auth=MSCHAPV2"
> > +}
> > +
> > +# WPA-EAP, EAP-TTLS with different CA certificate used for outer
> > and inner
> > +# authentication.
> > +network={
> > + ssid="example"
> > + key_mgmt=WPA-EAP
> > + eap=TTLS
> > + # Phase1 / outer authentication
> > + anonymous_identity="anonymous@example.com"
> > + 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
> > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > 6c72ac7bb
> > +}
> > +
> > +# Special characters in SSID, so use hex string. Default to WPA-
> > PSK, WPA-EAP
> > +# and all valid ciphers.
> > +network={
> > + ssid=00010203
> > +
> > psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1
> > b1c1d1e1f
> > +}
> > +
> > +
> > +# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e.,
> > no WPA) using
> > +# EAP-TLS for authentication and key generation; require both
> > unicast and
> > +# broadcast WEP keys.
> > +network={
> > + ssid="1x-test"
> > + key_mgmt=IEEE8021X
> > + eap=TLS
> > + identity="user@example.com"
> > + 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="user@example.com"
> > + 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="user@example.com"
> > + 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
> > +# data instead of using external file
> > +network={
> > + ssid="example"
> > + key_mgmt=WPA-EAP
> > + eap=TTLS
> > + identity="user@example.com"
> > + anonymous_identity="anonymous@example.com"
> > + 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
> > +}
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane b/meta-
> > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx/wpa_supplicant.conf-sane
> > new file mode 100644
> > index 0000000..c91ffe0
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx/wpa_supplicant.conf-sane
> > @@ -0,0 +1,7 @@
> > +ctrl_interface=/var/run/wpa_supplicant
> > +ctrl_interface_group=0
> > +update_config=1
> > +
> > +network={
> > + key_mgmt=NONE
> > +}
> > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > supplicant/wpa-supplicant-wl18xx_git.bb b/meta-arago-
> > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > wl18xx_git.bb
> > new file mode 100644
> > index 0000000..65be767
> > --- /dev/null
> > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > supplicant-wl18xx_git.bb
> > @@ -0,0 +1,23 @@
> > +# This is a TI specific version of the wpa-supplicant recipe for
> > use with the
> > +# wl18xx wlan module.
> > +
> > +require wpa-supplicant.inc
>
> I'm not sure where this file is coming from. Maybe something in Franklin's
> tree?
If it's not in the main meta-arago tree or oe-core, then you would need to add
it to the patch series. If the file is pending submission from Franklin, then
you need to specify the dependency. If this series is meant for Franklin's
tree only, then we need to have a serious discussion... :)
> > +LICENSE = "GPLv2 | BSD"
> > +LIC_FILES_CHKSUM =
> > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
> > +
> > file://../README;md5=5cb758942d25f6f61fd4ac388fd446fa \
> > +
> > file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8ca
> > d6356ec7f39ebe3aba"
> > +
> > +# To prevent users from accidently picking up this customized
> > version of
> > +# wpa-supplicant the DEFAULT_PREFERENCE will be set to -1.
> > +DEFAULT_PREFERENCE = "-1"
> > +
> > +SRCREV = "ol_r8.a6.01"
> > +PR = "r3+gitr${SRCREV}"
> > +# Add ti to the PV to indicate that this is a TI modify version
> > of wpa-supplicant.
> > +PV = "2.0-devel-ti"
> > +
> > +PROVIDES_${PN}+= "wpa-supplicant"
> > +RPROVIDES_${PN} += "wpa-supplicant"
> > +RRECOMMENDS_${PN} = "wpa-supplicant"
>
> Why would you RRECOMMENDS wpa-supplicant. Wouldn't this give you the wl6
> version?
>
> > +RDEPENDS_${PN} = "wpa-supplicant-cli wpa-supplicant-passphrase"
>
> This seems likely to hurt you as well.
--
Denys
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 15:53 ` Denys Dmytriyenko
@ 2013-03-18 16:01 ` Reizer, Eyal
0 siblings, 0 replies; 27+ messages in thread
From: Reizer, Eyal @ 2013-03-18 16:01 UTC (permalink / raw)
To: Dmytriyenko, Denys, Maupin, Chase; +Cc: meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys
> Sent: Monday, March 18, 2013 5:54 PM
> To: Maupin, Chase
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> daemon for ti wilink8 release
>
> On Mon, Mar 18, 2013 at 03:46:42PM +0000, Maupin, Chase wrote:
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > Sent: Monday, March 18, 2013 8:36 AM
> > > To: meta-arago@arago-project.org
> > > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> > > daemon for ti wilink8 release
> > >
> > > From: Eyal Reizer <eyalr@ti.com>
> > >
> > > Add a new recipe for building the ti version of hostap-daemon
> > > 2.0-devel from release r8.a6.01
> > >
> > > This package replace the wilink6 package which is provided by the
> > > hostap-daemon recipe. Selection between the two is done using a
> > > "WILINK_VERSION" switch added to arago.conf
> > >
> > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > ---
> > > ...d-change-conf-file-for-better-oob-startup.patch | 40 +++++
> > > .../hostap/hostap-daemon-wl18xx/defconfig | 183
> > > ++++++++++++++++++++
> > > .../hostap/hostap-daemon-wl18xx/init | 37 ++++
> > > .../hostap/hostap-daemon-wl18xx_git.bb | 64
> > > +++++++
> > > 4 files changed, 324 insertions(+)
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > conf-file-for-better-oob-startup.patch
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/init
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> > >
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > conf-file-for-better-oob-startup.patch b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> > > hostapd-change-conf-file-for-better-oob-startup.patch
> > > new file mode 100644
> > > index 0000000..824d250
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> > > startup.patch
> > > @@ -0,0 +1,40 @@
> > > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > > 00:00:00 2001
> > > +From: Eyal Reizer <eyalr@ti.com>
> > > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > > +Subject: [PATCH] hostapd: change conf file for better sdk out of
> > > box startup
> > > +
> > > +Change the default channel to 6 and change the ssid to a more
> > > +meaningful name.
> > > +
> > > +Upstream-status: inappropriate [SDK specific patch]
> > > +
> > > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > +---
> > > + hostapd/hostapd.conf | 4 ++--
> > > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > > +
> > > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index
> > > +f71a881..00843aa 100644
> > > +--- a/hostapd/hostapd.conf
> > > ++++ b/hostapd/hostapd.conf
> > > +@@ -83,7 +83,7 @@ ctrl_interface_group=0 ##### IEEE 802.11
> related
> > > +configuration
> > > #######################################
> > > +
> > > + # SSID to be used in IEEE 802.11 management frames -ssid=test
> > > ++ssid=TexasInstruments_0001
> > > +
> > > + # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
> > > + # Set as needed to indicate country in which device is
> > > operating.
> > > +@@ -107,7 +107,7 @@ hw_mode=g
> > > + # channel will need to be configured separately with iwconfig.
> > > + # When set to 0, automatic channel selection will be engaged. A
> > > channel
> > > + # will be selected from the desired hw_mode.
> > > +-channel=1
> > > ++channel=6
> > > +
> > > + # Automatic channel selection (ACS) whitelist # (default: not
> > > +set)
> > > +--
> > > +1.7.9.5
> > > +
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > > new file mode 100644
> > > index 0000000..1ea96c4
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/defconfig
> > > @@ -0,0 +1,183 @@
> > > +# Example hostapd 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.,
> > > +# 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 cass, these lines should use +=
> > > in order not
> > > +# to override previous values of the variables.
> > > +
> > > +# Driver interface for Host AP driver CONFIG_DRIVER_HOSTAP=y
> > > +
> > > +# Driver interface for wired authenticator #CONFIG_DRIVER_WIRED=y
> > > +
> > > +# Driver interface for madwifi driver #CONFIG_DRIVER_MADWIFI=y
> > > +#CFLAGS += -I../../madwifi # change to the madwifi source
> > > directory
> > > +
> > > +# Driver interface for drivers using the nl80211 kernel
> > > interface
> > > +CONFIG_DRIVER_NL80211=y
> > > +CONFIG_LIBNL20=y
> > > +# driver_nl80211.c requires a rather new libnl (version 1.1)
> > > which may not be
> > > +# shipped with your distribution yet. If that is the case, you
> > > need to build
> > > +# newer libnl version and point the hostapd build to use it.
> > > +#LIBNL=/usr/src/libnl
> > > +#CFLAGS += -I$(LIBNL)/include
> > > +#LIBS += -L$(LIBNL)/lib
> > > +
> > > +# 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 no driver (e.g., RADIUS server only)
> > > +#CONFIG_DRIVER_NONE=y
> > > +
> > > +# IEEE 802.11F/IAPP
> > > +CONFIG_IAPP=y
> > > +
> > > +# WPA2/IEEE 802.11i RSN pre-authentication CONFIG_RSN_PREAUTH=y
> > > +
> > > +# 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
> > > +
> > > +# Integrated EAP server
> > > +CONFIG_EAP=y
> > > +
> > > +# EAP-MD5 for the integrated EAP server CONFIG_EAP_MD5=y
> > > +
> > > +# EAP-TLS for the integrated EAP server CONFIG_EAP_TLS=y
> > > +
> > > +# EAP-MSCHAPv2 for the integrated EAP server CONFIG_EAP_MSCHAPV2=y
> > > +
> > > +# EAP-PEAP for the integrated EAP server CONFIG_EAP_PEAP=y
> > > +
> > > +# EAP-GTC for the integrated EAP server CONFIG_EAP_GTC=y
> > > +
> > > +# EAP-TTLS for the integrated EAP server CONFIG_EAP_TTLS=y
> > > +
> > > +# EAP-SIM for the integrated EAP server #CONFIG_EAP_SIM=y
> > > +
> > > +# EAP-AKA for the integrated EAP server #CONFIG_EAP_AKA=y
> > > +
> > > +# EAP-AKA' for the integrated EAP server # This requires
> > > +CONFIG_EAP_AKA to be enabled, too.
> > > +#CONFIG_EAP_AKA_PRIME=y
> > > +
> > > +# EAP-PAX for the integrated EAP server #CONFIG_EAP_PAX=y
> > > +
> > > +# EAP-PSK for the integrated EAP server (this is _not_ needed
> > > for WPA-PSK)
> > > +#CONFIG_EAP_PSK=y
> > > +
> > > +# EAP-SAKE for the integrated EAP server #CONFIG_EAP_SAKE=y
> > > +
> > > +# EAP-GPSK for the integrated EAP server #CONFIG_EAP_GPSK=y #
> > > +Include support for optional SHA256 cipher suite in EAP-GPSK
> > > +#CONFIG_EAP_GPSK_SHA256=y
> > > +
> > > +# EAP-FAST for the integrated EAP server # 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.9-session-
> > > ticket.patch)
> > > +# to add the needed functions.
> > > +#CONFIG_EAP_FAST=y
> > > +
> > > +# Wi-Fi Protected Setup (WPS)
> > > +CONFIG_WPS=y
> > > +# Enable WSC 2.0 support
> > > +CONFIG_WPS2=y
> > > +# Enable UPnP support for external WPS Registrars
> CONFIG_WPS_UPNP=y
> > > +
> > > +# EAP-IKEv2
> > > +#CONFIG_EAP_IKEV2=y
> > > +
> > > +# Trusted Network Connect (EAP-TNC) #CONFIG_EAP_TNC=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
> > > +
> > > +# RADIUS authentication server. This provides access to the
> > > integrated EAP
> > > +# server from external hosts using RADIUS.
> > > +#CONFIG_RADIUS_SERVER=y
> > > +
> > > +# Build IPv6 support for RADIUS operations CONFIG_IPV6=y
> > > +
> > > +# IEEE Std 802.11r-2008 (Fast BSS Transition) #CONFIG_IEEE80211R=y
> > > +
> > > +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> > > without
> > > +# the IEEE 802.11 Management capability (e.g., madwifi or
> > > FreeBSD/net80211)
> > > +#CONFIG_DRIVER_RADIUS_ACL=y
> > > +
> > > +# IEEE 802.11n (High Throughput) support CONFIG_IEEE80211N=y
> > > +
> > > +# Remove debugging code that is printing out debug messages to
> > > stdout.
> > > +# This can be used to reduce the size of the hostapd
> > > considerably if debugging
> > > +# code is not needed.
> > > +#CONFIG_NO_STDOUT_DEBUG=y
> > > +
> > > +# Remove support for RADIUS accounting #CONFIG_NO_ACCOUNTING=y
> > > +
> > > +# Remove support for RADIUS
> > > +#CONFIG_NO_RADIUS=y
> > > +
> > > +# Remove support for VLANs
> > > +#CONFIG_NO_VLAN=y
> > > +
> > > +# Remove support for dumping state into a file on SIGUSR1 signal #
> > > +This can be used to reduce binary size at the cost of
> > > disabling a debugging
> > > +# option.
> > > +#CONFIG_NO_DUMP_STATE=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
> > > +#
> > > +#
> > > +
> > > +CONFIG_NO_RANDOM_POOL=y
> > > +
> >
> > I just eye-balled this here but the config looks the same as the
> > config used in the hostap-daemon recipe. Same with the init file
> > below. So then maybe the better way to do this is to add the
> > hostap-daemon directory to the FILESEXTRAPATHS. i.e. like:
> >
> > FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
> >
> > I think the above line should work. Then you do not need to add this
> > config and init files.
> >
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> > > new file mode 100644
> > > index 0000000..79f74b6
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/init
> > > @@ -0,0 +1,37 @@
> > > +#!/bin/sh
> > > +DAEMON=/usr/sbin/hostapd
> > > +NAME=hostapd
> > > +DESC="HOSTAP Daemon"
> > > +ARGS="/etc/hostapd.conf -B"
> > > +
> > > +test -f $DAEMON || exit 0
> > > +
> > > +set -e
> > > +
> > > +case "$1" in
> > > + start)
> > > + echo -n "Starting $DESC: "
> > > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > > + echo "$NAME."
> > > + ;;
> > > + stop)
> > > + echo -n "Stopping $DESC: "
> > > + start-stop-daemon -K -x $DAEMON
> > > + echo "$NAME."
> > > + ;;
> > > + restart)
> > > + $0 stop
> > > + $0 start
> > > + ;;
> > > + reload)
> > > + echo -n "Reloading $DESC: "
> > > + killall -HUP $(basename ${DAEMON})
> > > + echo "$NAME."
> > > + ;;
> > > + *)
> > > + echo "Usage: $0 {start|stop|restart|reload}"
> > > + exit 1
> > > + ;;
> > > +esac
> > > +
> > > +exit 0
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx_git.bb
> >
> > Same question about using the _git version.
> >
> > > new file mode 100644
> > > index 0000000..6d1d5eb
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx_git.bb
> > > @@ -0,0 +1,64 @@
> > > +# This is a TI specific version of the hostap-daemon recipe for
> > > use with the
> > > +# wl18xx wlan and bluetooth module.
> > > +
> > > +HOMEPAGE = "http://hostap.epitest.fi"
> > > +DESCRIPTION = "User space daemon for extended IEEE 802.11
> > > management"
> > > +SECTION = "kernel/userland"
> > > +LICENSE = "GPLv2"
> > > +LIC_FILES_CHKSUM =
> > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > > +
> > > +DEPENDS = "libnl openssl"
> > > +
> > > +# Since this is a TI customized version of hostap-daemon do not
> > > make this the
> > > +# default
> > > +DEFAULT_PREFERENCE = "-1"
> > > +
> > > +inherit update-rc.d
> > > +INITSCRIPT_NAME="hostapd"
> > > +
> > > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > > +
> > > +# Add TI to the end to make it clear that this is a TI
> > > customized version
> > > +# of hostap
> > > +PV = "2.0-devel-ti"
> > > +
> > > +PR = "r1+gitr${SRCREV}"
> > > +
> > > +SRCREV = "ol_r8.a6.01"
> > > +
> > > +PROVIDES += "hostap-daemon"
> > > +RPROVIDES += "hostap-daemon"
> >
> > If you are using a variable to select between the two versions then
> > why set the PROVIDES and RPROVIDES name? You are already setting the
> > packagegroups, etc to use hostap-daemon-wl18xx. Have you tested that
> > this does become the default wl6 version as well? Although, the PV
> is
> > set to the same between both versions which seems wrong.
>
> If this package completely replaces the original hostap-daemon and they
> cannot be installed side by side, then the correct way is to add
> RPROVIDES, RREPLACES, RCONFLICTS and chose one or another with
> PREFERRED_PROVIDER.
>
OK, I will add this. Your comment in this case is true for the other recipes as well.
Regards,
Best Eyal
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 15:54 ` Reizer, Eyal
@ 2013-03-18 16:02 ` Maupin, Chase
2013-03-18 16:16 ` Reizer, Eyal
0 siblings, 1 reply; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 16:02 UTC (permalink / raw)
To: Reizer, Eyal, Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: Reizer, Eyal
> Sent: Monday, March 18, 2013 10:55 AM
> To: Maupin, Chase; Eyal Reizer; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> hostap-daemon for ti wilink8 release
>
> Hi,
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Maupin, Chase
> > Sent: Monday, March 18, 2013 5:47 PM
> > To: Eyal Reizer; meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> hostap-
> > daemon for ti wilink8 release
> >
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-
> arago-
> > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > Sent: Monday, March 18, 2013 8:36 AM
> > > To: meta-arago@arago-project.org
> > > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> hostap-
> > daemon
> > > for ti wilink8 release
> > >
> > > From: Eyal Reizer <eyalr@ti.com>
> > >
> > > Add a new recipe for building the ti version of hostap-daemon
> > > 2.0-devel from release r8.a6.01
> > >
> > > This package replace the wilink6 package which is provided by
> the
> > > hostap-daemon recipe. Selection between the two is done using
> a
> > > "WILINK_VERSION" switch added to arago.conf
> > >
> > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > ---
> > > ...d-change-conf-file-for-better-oob-startup.patch | 40
> +++++
> > > .../hostap/hostap-daemon-wl18xx/defconfig | 183
> > > ++++++++++++++++++++
> > > .../hostap/hostap-daemon-wl18xx/init | 37
> ++++
> > > .../hostap/hostap-daemon-wl18xx_git.bb | 64
> > > +++++++
> > > 4 files changed, 324 insertions(+)
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > conf-file-for-better-oob-startup.patch
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/init
> > > create mode 100644 meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> > >
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > conf-file-for-better-oob-startup.patch b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> > > hostapd-change-conf-file-for-better-oob-startup.patch
> > > new file mode 100644
> > > index 0000000..824d250
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> > > startup.patch
> > > @@ -0,0 +1,40 @@
> > > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > > 00:00:00 2001
> > > +From: Eyal Reizer <eyalr@ti.com>
> > > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > > +Subject: [PATCH] hostapd: change conf file for better sdk
> out of
> > > box startup
> > > +
> > > +Change the default channel to 6 and change the ssid to a
> more
> > > +meaningful name.
> > > +
> > > +Upstream-status: inappropriate [SDK specific patch]
> > > +
> > > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > +---
> > > + hostapd/hostapd.conf | 4 ++--
> > > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > > +
> > > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
> index
> > > +f71a881..00843aa 100644
> > > +--- a/hostapd/hostapd.conf
> > > ++++ b/hostapd/hostapd.conf
> > > +@@ -83,7 +83,7 @@ ctrl_interface_group=0 ##### IEEE 802.11
> related
> > > +configuration
> > > #######################################
> > > +
> > > + # SSID to be used in IEEE 802.11 management frames -
> ssid=test
> > > ++ssid=TexasInstruments_0001
> > > +
> > > + # Country code (ISO/IEC 3166-1). Used to set regulatory
> domain.
> > > + # Set as needed to indicate country in which device is
> > > operating.
> > > +@@ -107,7 +107,7 @@ hw_mode=g
> > > + # channel will need to be configured separately with
> iwconfig.
> > > + # When set to 0, automatic channel selection will be
> engaged. A
> > > channel
> > > + # will be selected from the desired hw_mode.
> > > +-channel=1
> > > ++channel=6
> > > +
> > > + # Automatic channel selection (ACS) whitelist # (default:
> not set)
> > > +--
> > > +1.7.9.5
> > > +
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-
> arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-
> wl18xx/defconfig
> > > new file mode 100644
> > > index 0000000..1ea96c4
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/defconfig
> > > @@ -0,0 +1,183 @@
> > > +# Example hostapd 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.,
> > > +# 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 cass, these lines should
> use +=
> > > in order not
> > > +# to override previous values of the variables.
> > > +
> > > +# Driver interface for Host AP driver CONFIG_DRIVER_HOSTAP=y
> > > +
> > > +# Driver interface for wired authenticator
> #CONFIG_DRIVER_WIRED=y
> > > +
> > > +# Driver interface for madwifi driver
> #CONFIG_DRIVER_MADWIFI=y
> > > +#CFLAGS += -I../../madwifi # change to the madwifi source
> > > directory
> > > +
> > > +# Driver interface for drivers using the nl80211 kernel
> > > interface
> > > +CONFIG_DRIVER_NL80211=y
> > > +CONFIG_LIBNL20=y
> > > +# driver_nl80211.c requires a rather new libnl (version 1.1)
> > > which may not be
> > > +# shipped with your distribution yet. If that is the case,
> you
> > > need to build
> > > +# newer libnl version and point the hostapd build to use it.
> > > +#LIBNL=/usr/src/libnl
> > > +#CFLAGS += -I$(LIBNL)/include
> > > +#LIBS += -L$(LIBNL)/lib
> > > +
> > > +# 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 no driver (e.g., RADIUS server only)
> > > +#CONFIG_DRIVER_NONE=y
> > > +
> > > +# IEEE 802.11F/IAPP
> > > +CONFIG_IAPP=y
> > > +
> > > +# WPA2/IEEE 802.11i RSN pre-authentication
> CONFIG_RSN_PREAUTH=y
> > > +
> > > +# 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
> > > +
> > > +# Integrated EAP server
> > > +CONFIG_EAP=y
> > > +
> > > +# EAP-MD5 for the integrated EAP server CONFIG_EAP_MD5=y
> > > +
> > > +# EAP-TLS for the integrated EAP server CONFIG_EAP_TLS=y
> > > +
> > > +# EAP-MSCHAPv2 for the integrated EAP server
> CONFIG_EAP_MSCHAPV2=y
> > > +
> > > +# EAP-PEAP for the integrated EAP server CONFIG_EAP_PEAP=y
> > > +
> > > +# EAP-GTC for the integrated EAP server CONFIG_EAP_GTC=y
> > > +
> > > +# EAP-TTLS for the integrated EAP server CONFIG_EAP_TTLS=y
> > > +
> > > +# EAP-SIM for the integrated EAP server #CONFIG_EAP_SIM=y
> > > +
> > > +# EAP-AKA for the integrated EAP server #CONFIG_EAP_AKA=y
> > > +
> > > +# EAP-AKA' for the integrated EAP server # This requires
> > > +CONFIG_EAP_AKA to be enabled, too.
> > > +#CONFIG_EAP_AKA_PRIME=y
> > > +
> > > +# EAP-PAX for the integrated EAP server #CONFIG_EAP_PAX=y
> > > +
> > > +# EAP-PSK for the integrated EAP server (this is _not_
> needed
> > > for WPA-PSK)
> > > +#CONFIG_EAP_PSK=y
> > > +
> > > +# EAP-SAKE for the integrated EAP server #CONFIG_EAP_SAKE=y
> > > +
> > > +# EAP-GPSK for the integrated EAP server #CONFIG_EAP_GPSK=y
> #
> > Include
> > > +support for optional SHA256 cipher suite in EAP-GPSK
> > > +#CONFIG_EAP_GPSK_SHA256=y
> > > +
> > > +# EAP-FAST for the integrated EAP server # 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.9-
> session-
> > > ticket.patch)
> > > +# to add the needed functions.
> > > +#CONFIG_EAP_FAST=y
> > > +
> > > +# Wi-Fi Protected Setup (WPS)
> > > +CONFIG_WPS=y
> > > +# Enable WSC 2.0 support
> > > +CONFIG_WPS2=y
> > > +# Enable UPnP support for external WPS Registrars
> CONFIG_WPS_UPNP=y
> > > +
> > > +# EAP-IKEv2
> > > +#CONFIG_EAP_IKEV2=y
> > > +
> > > +# Trusted Network Connect (EAP-TNC)
> > > +#CONFIG_EAP_TNC=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
> > > +
> > > +# RADIUS authentication server. This provides access to the
> > > integrated EAP
> > > +# server from external hosts using RADIUS.
> > > +#CONFIG_RADIUS_SERVER=y
> > > +
> > > +# Build IPv6 support for RADIUS operations CONFIG_IPV6=y
> > > +
> > > +# IEEE Std 802.11r-2008 (Fast BSS Transition)
> #CONFIG_IEEE80211R=y
> > > +
> > > +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> > > without
> > > +# the IEEE 802.11 Management capability (e.g., madwifi or
> > > FreeBSD/net80211)
> > > +#CONFIG_DRIVER_RADIUS_ACL=y
> > > +
> > > +# IEEE 802.11n (High Throughput) support CONFIG_IEEE80211N=y
> > > +
> > > +# Remove debugging code that is printing out debug messages
> to
> > > stdout.
> > > +# This can be used to reduce the size of the hostapd
> > > considerably if debugging
> > > +# code is not needed.
> > > +#CONFIG_NO_STDOUT_DEBUG=y
> > > +
> > > +# Remove support for RADIUS accounting
> #CONFIG_NO_ACCOUNTING=y
> > > +
> > > +# Remove support for RADIUS
> > > +#CONFIG_NO_RADIUS=y
> > > +
> > > +# Remove support for VLANs
> > > +#CONFIG_NO_VLAN=y
> > > +
> > > +# Remove support for dumping state into a file on SIGUSR1
> signal #
> > > +This can be used to reduce binary size at the cost of
> > > disabling a debugging
> > > +# option.
> > > +#CONFIG_NO_DUMP_STATE=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
> > > +#
> > > +#
> > > +
> > > +CONFIG_NO_RANDOM_POOL=y
> > > +
> >
> > I just eye-balled this here but the config looks the same as
> the config
> > used in the hostap-daemon recipe. Same with the init file
> below. So
> > then maybe the better way to do this is to add the hostap-
> daemon
> > directory to the FILESEXTRAPATHS. i.e. like:
> >
> > FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
> >
> > I think the above line should work. Then you do not need to
> add this
> > config and init files.
> >
>
> E.R: I will try this
>
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> > > new file mode 100644
> > > index 0000000..79f74b6
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx/init
> > > @@ -0,0 +1,37 @@
> > > +#!/bin/sh
> > > +DAEMON=/usr/sbin/hostapd
> > > +NAME=hostapd
> > > +DESC="HOSTAP Daemon"
> > > +ARGS="/etc/hostapd.conf -B"
> > > +
> > > +test -f $DAEMON || exit 0
> > > +
> > > +set -e
> > > +
> > > +case "$1" in
> > > + start)
> > > + echo -n "Starting $DESC: "
> > > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > > + echo "$NAME."
> > > + ;;
> > > + stop)
> > > + echo -n "Stopping $DESC: "
> > > + start-stop-daemon -K -x $DAEMON
> > > + echo "$NAME."
> > > + ;;
> > > + restart)
> > > + $0 stop
> > > + $0 start
> > > + ;;
> > > + reload)
> > > + echo -n "Reloading $DESC: "
> > > + killall -HUP $(basename ${DAEMON})
> > > + echo "$NAME."
> > > + ;;
> > > + *)
> > > + echo "Usage: $0 {start|stop|restart|reload}"
> > > + exit 1
> > > + ;;
> > > +esac
> > > +
> > > +exit 0
> > > diff --git a/meta-arago-extras/recipes-
> > > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> > > extras/recipes-connectivity/hostap/hostap-daemon-
> wl18xx_git.bb
> >
> > Same question about using the _git version.
>
> E.R: Will be changed
>
> >
> > > new file mode 100644
> > > index 0000000..6d1d5eb
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > daemon-wl18xx_git.bb
> > > @@ -0,0 +1,64 @@
> > > +# This is a TI specific version of the hostap-daemon recipe
> for
> > > use with the
> > > +# wl18xx wlan and bluetooth module.
> > > +
> > > +HOMEPAGE = "http://hostap.epitest.fi"
> > > +DESCRIPTION = "User space daemon for extended IEEE 802.11
> > > management"
> > > +SECTION = "kernel/userland"
> > > +LICENSE = "GPLv2"
> > > +LIC_FILES_CHKSUM =
> > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > > +
> > > +DEPENDS = "libnl openssl"
> > > +
> > > +# Since this is a TI customized version of hostap-daemon do
> not
> > > make this the
> > > +# default
> > > +DEFAULT_PREFERENCE = "-1"
> > > +
> > > +inherit update-rc.d
> > > +INITSCRIPT_NAME="hostapd"
> > > +
> > > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > > +
> > > +# Add TI to the end to make it clear that this is a TI
> > > customized version
> > > +# of hostap
> > > +PV = "2.0-devel-ti"
> > > +
> > > +PR = "r1+gitr${SRCREV}"
> > > +
> > > +SRCREV = "ol_r8.a6.01"
> > > +
> > > +PROVIDES += "hostap-daemon"
> > > +RPROVIDES += "hostap-daemon"
> >
> > If you are using a variable to select between the two versions
> then why
> > set the PROVIDES and RPROVIDES name? You are already setting
> the
> > packagegroups, etc to use hostap-daemon-wl18xx. Have you
> tested that
> > this does become the default wl6 version as well? Although,
> the PV is
> > set to the same between both versions which seems wrong.
>
> packagegroups are not changing as the names of the packages
> provided by both wilink6 and wilink8 recipes are the same and
> there is no need to change them.
Sorry, you are right. I completely misread patch 8. So for the packages that don't have wl12xx in the name the approach seems sane. I still have an issue with things like wl18xx-firmware providing wl12xx-firmware. So my feedback was based on a mis-read of what you were doing but I think you still need to fixup package names where possible to not have the wl part in the name.
>
> >
> > > +
> > > +SRC_URI = "git://github.com/TI-
> OpenLink/hostap.git;protocol=git
> > > \
> > > + file://0001-hostapd-change-conf-file-for-better-oob-
> > > startup.patch;patchdir=.. \
> > > + file://defconfig \
> > > + file://init"
> > > +
> > > +S = "${WORKDIR}/git/hostapd"
> > > +
> > > +do_configure() {
> > > + install -m 0644 ${WORKDIR}/defconfig ${S}/.config
> > > + echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
> > > + echo "LIBS += -L${STAGING_LIBDIR}" >> .config }
> > > +
> > > +do_compile() {
> > > + make
> > > +}
> > > +
> > > +do_install() {
> > > + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
> > > + install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
> > > + install -m 0755 ${S}/hostapd ${D}${sbindir}
> > > + install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
> > > + install -m 755 ${WORKDIR}/init
> > > ${D}${sysconfdir}/init.d/hostapd
> > > +}
> > > +
> > > +# The default hostapd.conf file that is fetched from
> upstream is
> > > using
> > > +# "a" band which is not supported by the 1271 chip.
> > > +# modify it to use "g" band and default channel 6 and change
> the
> > > ssid from
> > > +# "test" to a more meaningful name.
> > > +
> > > +updatercd_postinst () {
> > > +:
> > > +}
> > > --
> > > 1.7.9.5
> > >
> > > _______________________________________________
> > > meta-arago mailing list
> > > meta-arago@arago-project.org
> > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 16:02 ` Maupin, Chase
@ 2013-03-18 16:16 ` Reizer, Eyal
2013-03-18 16:22 ` Maupin, Chase
0 siblings, 1 reply; 27+ messages in thread
From: Reizer, Eyal @ 2013-03-18 16:16 UTC (permalink / raw)
To: Maupin, Chase, Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: Maupin, Chase
> Sent: Monday, March 18, 2013 6:02 PM
> To: Reizer, Eyal; Eyal Reizer; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx: hostap-
> daemon for ti wilink8 release
>
> > -----Original Message-----
> > From: Reizer, Eyal
> > Sent: Monday, March 18, 2013 10:55 AM
> > To: Maupin, Chase; Eyal Reizer; meta-arago@arago-project.org
> > Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > hostap-daemon for ti wilink8 release
> >
> > Hi,
> >
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > bounces@arago-project.org] On Behalf Of Maupin, Chase
> > > Sent: Monday, March 18, 2013 5:47 PM
> > > To: Eyal Reizer; meta-arago@arago-project.org
> > > Subject: Re: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > hostap-
> > > daemon for ti wilink8 release
> > >
> > > > -----Original Message-----
> > > > From: meta-arago-bounces@arago-project.org [mailto:meta-
> > arago-
> > > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > > Sent: Monday, March 18, 2013 8:36 AM
> > > > To: meta-arago@arago-project.org
> > > > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > hostap-
> > > daemon
> > > > for ti wilink8 release
> > > >
> > > > From: Eyal Reizer <eyalr@ti.com>
> > > >
> > > > Add a new recipe for building the ti version of hostap-daemon
> > > > 2.0-devel from release r8.a6.01
> > > >
> > > > This package replace the wilink6 package which is provided by
> > the
> > > > hostap-daemon recipe. Selection between the two is done using
> > a
> > > > "WILINK_VERSION" switch added to arago.conf
> > > >
> > > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > > ---
> > > > ...d-change-conf-file-for-better-oob-startup.patch | 40
> > +++++
> > > > .../hostap/hostap-daemon-wl18xx/defconfig | 183
> > > > ++++++++++++++++++++
> > > > .../hostap/hostap-daemon-wl18xx/init | 37
> > ++++
> > > > .../hostap/hostap-daemon-wl18xx_git.bb | 64
> > > > +++++++
> > > > 4 files changed, 324 insertions(+) create mode 100644
> > > > meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > > conf-file-for-better-oob-startup.patch
> > > > create mode 100644 meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > > > create mode 100644 meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/init
> > > > create mode 100644 meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> > > >
> > > > diff --git a/meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-change-
> > > > conf-file-for-better-oob-startup.patch b/meta-arago-
> > > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/0001-
> > > > hostapd-change-conf-file-for-better-oob-startup.patch
> > > > new file mode 100644
> > > > index 0000000..824d250
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-oob-
> > > > startup.patch
> > > > @@ -0,0 +1,40 @@
> > > > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > > > 00:00:00 2001
> > > > +From: Eyal Reizer <eyalr@ti.com>
> > > > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > > > +Subject: [PATCH] hostapd: change conf file for better sdk
> > out of
> > > > box startup
> > > > +
> > > > +Change the default channel to 6 and change the ssid to a
> > more
> > > > +meaningful name.
> > > > +
> > > > +Upstream-status: inappropriate [SDK specific patch]
> > > > +
> > > > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > > +---
> > > > + hostapd/hostapd.conf | 4 ++--
> > > > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > > > +
> > > > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
> > index
> > > > +f71a881..00843aa 100644
> > > > +--- a/hostapd/hostapd.conf
> > > > ++++ b/hostapd/hostapd.conf
> > > > +@@ -83,7 +83,7 @@ ctrl_interface_group=0 ##### IEEE 802.11
> > related
> > > > +configuration
> > > > #######################################
> > > > +
> > > > + # SSID to be used in IEEE 802.11 management frames -
> > ssid=test
> > > > ++ssid=TexasInstruments_0001
> > > > +
> > > > + # Country code (ISO/IEC 3166-1). Used to set regulatory
> > domain.
> > > > + # Set as needed to indicate country in which device is
> > > > operating.
> > > > +@@ -107,7 +107,7 @@ hw_mode=g
> > > > + # channel will need to be configured separately with
> > iwconfig.
> > > > + # When set to 0, automatic channel selection will be
> > engaged. A
> > > > channel
> > > > + # will be selected from the desired hw_mode.
> > > > +-channel=1
> > > > ++channel=6
> > > > +
> > > > + # Automatic channel selection (ACS) whitelist # (default:
> > not set)
> > > > +--
> > > > +1.7.9.5
> > > > +
> > > > diff --git a/meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/defconfig b/meta-
> > arago-
> > > > extras/recipes-connectivity/hostap/hostap-daemon-
> > wl18xx/defconfig
> > > > new file mode 100644
> > > > index 0000000..1ea96c4
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > > daemon-wl18xx/defconfig
> > > > @@ -0,0 +1,183 @@
> > > > +# Example hostapd 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.,
> > > > +# 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 cass, these lines should
> > use +=
> > > > in order not
> > > > +# to override previous values of the variables.
> > > > +
> > > > +# Driver interface for Host AP driver CONFIG_DRIVER_HOSTAP=y
> > > > +
> > > > +# Driver interface for wired authenticator
> > #CONFIG_DRIVER_WIRED=y
> > > > +
> > > > +# Driver interface for madwifi driver
> > #CONFIG_DRIVER_MADWIFI=y
> > > > +#CFLAGS += -I../../madwifi # change to the madwifi source
> > > > directory
> > > > +
> > > > +# Driver interface for drivers using the nl80211 kernel
> > > > interface
> > > > +CONFIG_DRIVER_NL80211=y
> > > > +CONFIG_LIBNL20=y
> > > > +# driver_nl80211.c requires a rather new libnl (version 1.1)
> > > > which may not be
> > > > +# shipped with your distribution yet. If that is the case,
> > you
> > > > need to build
> > > > +# newer libnl version and point the hostapd build to use it.
> > > > +#LIBNL=/usr/src/libnl
> > > > +#CFLAGS += -I$(LIBNL)/include
> > > > +#LIBS += -L$(LIBNL)/lib
> > > > +
> > > > +# 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 no driver (e.g., RADIUS server only)
> > > > +#CONFIG_DRIVER_NONE=y
> > > > +
> > > > +# IEEE 802.11F/IAPP
> > > > +CONFIG_IAPP=y
> > > > +
> > > > +# WPA2/IEEE 802.11i RSN pre-authentication
> > CONFIG_RSN_PREAUTH=y
> > > > +
> > > > +# 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
> > > > +
> > > > +# Integrated EAP server
> > > > +CONFIG_EAP=y
> > > > +
> > > > +# EAP-MD5 for the integrated EAP server CONFIG_EAP_MD5=y
> > > > +
> > > > +# EAP-TLS for the integrated EAP server CONFIG_EAP_TLS=y
> > > > +
> > > > +# EAP-MSCHAPv2 for the integrated EAP server
> > CONFIG_EAP_MSCHAPV2=y
> > > > +
> > > > +# EAP-PEAP for the integrated EAP server CONFIG_EAP_PEAP=y
> > > > +
> > > > +# EAP-GTC for the integrated EAP server CONFIG_EAP_GTC=y
> > > > +
> > > > +# EAP-TTLS for the integrated EAP server CONFIG_EAP_TTLS=y
> > > > +
> > > > +# EAP-SIM for the integrated EAP server #CONFIG_EAP_SIM=y
> > > > +
> > > > +# EAP-AKA for the integrated EAP server #CONFIG_EAP_AKA=y
> > > > +
> > > > +# EAP-AKA' for the integrated EAP server # This requires
> > > > +CONFIG_EAP_AKA to be enabled, too.
> > > > +#CONFIG_EAP_AKA_PRIME=y
> > > > +
> > > > +# EAP-PAX for the integrated EAP server #CONFIG_EAP_PAX=y
> > > > +
> > > > +# EAP-PSK for the integrated EAP server (this is _not_
> > needed
> > > > for WPA-PSK)
> > > > +#CONFIG_EAP_PSK=y
> > > > +
> > > > +# EAP-SAKE for the integrated EAP server #CONFIG_EAP_SAKE=y
> > > > +
> > > > +# EAP-GPSK for the integrated EAP server #CONFIG_EAP_GPSK=y
> > #
> > > Include
> > > > +support for optional SHA256 cipher suite in EAP-GPSK
> > > > +#CONFIG_EAP_GPSK_SHA256=y
> > > > +
> > > > +# EAP-FAST for the integrated EAP server # 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.9-
> > session-
> > > > ticket.patch)
> > > > +# to add the needed functions.
> > > > +#CONFIG_EAP_FAST=y
> > > > +
> > > > +# Wi-Fi Protected Setup (WPS)
> > > > +CONFIG_WPS=y
> > > > +# Enable WSC 2.0 support
> > > > +CONFIG_WPS2=y
> > > > +# Enable UPnP support for external WPS Registrars
> > CONFIG_WPS_UPNP=y
> > > > +
> > > > +# EAP-IKEv2
> > > > +#CONFIG_EAP_IKEV2=y
> > > > +
> > > > +# Trusted Network Connect (EAP-TNC) #CONFIG_EAP_TNC=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
> > > > +
> > > > +# RADIUS authentication server. This provides access to the
> > > > integrated EAP
> > > > +# server from external hosts using RADIUS.
> > > > +#CONFIG_RADIUS_SERVER=y
> > > > +
> > > > +# Build IPv6 support for RADIUS operations CONFIG_IPV6=y
> > > > +
> > > > +# IEEE Std 802.11r-2008 (Fast BSS Transition)
> > #CONFIG_IEEE80211R=y
> > > > +
> > > > +# Use the hostapd's IEEE 802.11 authentication (ACL), but
> > > > without
> > > > +# the IEEE 802.11 Management capability (e.g., madwifi or
> > > > FreeBSD/net80211)
> > > > +#CONFIG_DRIVER_RADIUS_ACL=y
> > > > +
> > > > +# IEEE 802.11n (High Throughput) support CONFIG_IEEE80211N=y
> > > > +
> > > > +# Remove debugging code that is printing out debug messages
> > to
> > > > stdout.
> > > > +# This can be used to reduce the size of the hostapd
> > > > considerably if debugging
> > > > +# code is not needed.
> > > > +#CONFIG_NO_STDOUT_DEBUG=y
> > > > +
> > > > +# Remove support for RADIUS accounting
> > #CONFIG_NO_ACCOUNTING=y
> > > > +
> > > > +# Remove support for RADIUS
> > > > +#CONFIG_NO_RADIUS=y
> > > > +
> > > > +# Remove support for VLANs
> > > > +#CONFIG_NO_VLAN=y
> > > > +
> > > > +# Remove support for dumping state into a file on SIGUSR1
> > signal #
> > > > +This can be used to reduce binary size at the cost of
> > > > disabling a debugging
> > > > +# option.
> > > > +#CONFIG_NO_DUMP_STATE=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
> > > > +#
> > > > +#
> > > > +
> > > > +CONFIG_NO_RANDOM_POOL=y
> > > > +
> > >
> > > I just eye-balled this here but the config looks the same as
> > the config
> > > used in the hostap-daemon recipe. Same with the init file
> > below. So
> > > then maybe the better way to do this is to add the hostap-
> > daemon
> > > directory to the FILESEXTRAPATHS. i.e. like:
> > >
> > > FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
> > >
> > > I think the above line should work. Then you do not need to
> > add this
> > > config and init files.
> > >
> >
> > E.R: I will try this
> >
> > > > diff --git a/meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-arago-
> > > > extras/recipes-connectivity/hostap/hostap-daemon-wl18xx/init
> > > > new file mode 100644
> > > > index 0000000..79f74b6
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > > daemon-wl18xx/init
> > > > @@ -0,0 +1,37 @@
> > > > +#!/bin/sh
> > > > +DAEMON=/usr/sbin/hostapd
> > > > +NAME=hostapd
> > > > +DESC="HOSTAP Daemon"
> > > > +ARGS="/etc/hostapd.conf -B"
> > > > +
> > > > +test -f $DAEMON || exit 0
> > > > +
> > > > +set -e
> > > > +
> > > > +case "$1" in
> > > > + start)
> > > > + echo -n "Starting $DESC: "
> > > > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > > > + echo "$NAME."
> > > > + ;;
> > > > + stop)
> > > > + echo -n "Stopping $DESC: "
> > > > + start-stop-daemon -K -x $DAEMON
> > > > + echo "$NAME."
> > > > + ;;
> > > > + restart)
> > > > + $0 stop
> > > > + $0 start
> > > > + ;;
> > > > + reload)
> > > > + echo -n "Reloading $DESC: "
> > > > + killall -HUP $(basename ${DAEMON})
> > > > + echo "$NAME."
> > > > + ;;
> > > > + *)
> > > > + echo "Usage: $0 {start|stop|restart|reload}"
> > > > + exit 1
> > > > + ;;
> > > > +esac
> > > > +
> > > > +exit 0
> > > > diff --git a/meta-arago-extras/recipes-
> > > > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-arago-
> > > > extras/recipes-connectivity/hostap/hostap-daemon-
> > wl18xx_git.bb
> > >
> > > Same question about using the _git version.
> >
> > E.R: Will be changed
> >
> > >
> > > > new file mode 100644
> > > > index 0000000..6d1d5eb
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/hostap/hostap-
> > > > daemon-wl18xx_git.bb
> > > > @@ -0,0 +1,64 @@
> > > > +# This is a TI specific version of the hostap-daemon recipe
> > for
> > > > use with the
> > > > +# wl18xx wlan and bluetooth module.
> > > > +
> > > > +HOMEPAGE = "http://hostap.epitest.fi"
> > > > +DESCRIPTION = "User space daemon for extended IEEE 802.11
> > > > management"
> > > > +SECTION = "kernel/userland"
> > > > +LICENSE = "GPLv2"
> > > > +LIC_FILES_CHKSUM =
> > > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > > > +
> > > > +DEPENDS = "libnl openssl"
> > > > +
> > > > +# Since this is a TI customized version of hostap-daemon do
> > not
> > > > make this the
> > > > +# default
> > > > +DEFAULT_PREFERENCE = "-1"
> > > > +
> > > > +inherit update-rc.d
> > > > +INITSCRIPT_NAME="hostapd"
> > > > +
> > > > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > > > +
> > > > +# Add TI to the end to make it clear that this is a TI
> > > > customized version
> > > > +# of hostap
> > > > +PV = "2.0-devel-ti"
> > > > +
> > > > +PR = "r1+gitr${SRCREV}"
> > > > +
> > > > +SRCREV = "ol_r8.a6.01"
> > > > +
> > > > +PROVIDES += "hostap-daemon"
> > > > +RPROVIDES += "hostap-daemon"
> > >
> > > If you are using a variable to select between the two versions
> > then why
> > > set the PROVIDES and RPROVIDES name? You are already setting
> > the
> > > packagegroups, etc to use hostap-daemon-wl18xx. Have you
> > tested that
> > > this does become the default wl6 version as well? Although,
> > the PV is
> > > set to the same between both versions which seems wrong.
> >
> > packagegroups are not changing as the names of the packages provided
> > by both wilink6 and wilink8 recipes are the same and there is no need
> > to change them.
>
> Sorry, you are right. I completely misread patch 8. So for the
> packages that don't have wl12xx in the name the approach seems sane. I
> still have an issue with things like wl18xx-firmware providing wl12xx-
> firmware. So my feedback was based on a mis-read of what you were
> doing but I think you still need to fixup package names where possible
> to not have the wl part in the name.
>
You are right about the package names, I just didn't want to start modifying wilink6 recipes for changing names at this point.
Wanted to work only on adding wilink8 with minimal changes to the wilink6 build and allow selecting between them.
If this is needed I would probably need to change also ti-compat-wirelss-wl12xx recipe and update the recipes dependent upon it (like ti-compat-bluetooth).
Will also need to change the packagegroups for the new names.
How do you suggest we proceed?
> >
> > >
> > > > +
> > > > +SRC_URI = "git://github.com/TI-
> > OpenLink/hostap.git;protocol=git
> > > > \
> > > > + file://0001-hostapd-change-conf-file-for-better-oob-
> > > > startup.patch;patchdir=.. \
> > > > + file://defconfig \
> > > > + file://init"
> > > > +
> > > > +S = "${WORKDIR}/git/hostapd"
> > > > +
> > > > +do_configure() {
> > > > + install -m 0644 ${WORKDIR}/defconfig ${S}/.config
> > > > + echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
> > > > + echo "LIBS += -L${STAGING_LIBDIR}" >> .config }
> > > > +
> > > > +do_compile() {
> > > > + make
> > > > +}
> > > > +
> > > > +do_install() {
> > > > + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
> > > > + install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
> > > > + install -m 0755 ${S}/hostapd ${D}${sbindir}
> > > > + install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
> > > > + install -m 755 ${WORKDIR}/init
> > > > ${D}${sysconfdir}/init.d/hostapd
> > > > +}
> > > > +
> > > > +# The default hostapd.conf file that is fetched from
> > upstream is
> > > > using
> > > > +# "a" band which is not supported by the 1271 chip.
> > > > +# modify it to use "g" band and default channel 6 and change
> > the
> > > > ssid from
> > > > +# "test" to a more meaningful name.
> > > > +
> > > > +updatercd_postinst () {
> > > > +:
> > > > +}
> > > > --
> > > > 1.7.9.5
> > > >
> > > > _______________________________________________
> > > > meta-arago mailing list
> > > > meta-arago@arago-project.org
> > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> > > _______________________________________________
> > > meta-arago mailing list
> > > meta-arago@arago-project.org
> > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release
2013-03-18 16:16 ` Reizer, Eyal
@ 2013-03-18 16:22 ` Maupin, Chase
0 siblings, 0 replies; 27+ messages in thread
From: Maupin, Chase @ 2013-03-18 16:22 UTC (permalink / raw)
To: Reizer, Eyal, Eyal Reizer, meta-arago@arago-project.org
> -----Original Message-----
> From: Reizer, Eyal
> Sent: Monday, March 18, 2013 11:16 AM
> To: Maupin, Chase; Eyal Reizer; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> hostap-daemon for ti wilink8 release
>
>
> > -----Original Message-----
> > From: Maupin, Chase
> > Sent: Monday, March 18, 2013 6:02 PM
> > To: Reizer, Eyal; Eyal Reizer; meta-arago@arago-project.org
> > Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> hostap-
> > daemon for ti wilink8 release
> >
> > > -----Original Message-----
> > > From: Reizer, Eyal
> > > Sent: Monday, March 18, 2013 10:55 AM
> > > To: Maupin, Chase; Eyal Reizer; meta-arago@arago-project.org
> > > Subject: RE: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > > hostap-daemon for ti wilink8 release
> > >
> > > Hi,
> > >
> > > > -----Original Message-----
> > > > From: meta-arago-bounces@arago-project.org [mailto:meta-
> arago-
> > > > bounces@arago-project.org] On Behalf Of Maupin, Chase
> > > > Sent: Monday, March 18, 2013 5:47 PM
> > > > To: Eyal Reizer; meta-arago@arago-project.org
> > > > Subject: Re: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > > hostap-
> > > > daemon for ti wilink8 release
> > > >
> > > > > -----Original Message-----
> > > > > From: meta-arago-bounces@arago-project.org [mailto:meta-
> > > arago-
> > > > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > > > Sent: Monday, March 18, 2013 8:36 AM
> > > > > To: meta-arago@arago-project.org
> > > > > Subject: [meta-arago] [PATCH 3/9] hostap-daemon-wl18xx:
> > > hostap-
> > > > daemon
> > > > > for ti wilink8 release
> > > > >
> > > > > From: Eyal Reizer <eyalr@ti.com>
> > > > >
> > > > > Add a new recipe for building the ti version of hostap-
> daemon
> > > > > 2.0-devel from release r8.a6.01
> > > > >
> > > > > This package replace the wilink6 package which is
> provided by
> > > the
> > > > > hostap-daemon recipe. Selection between the two is done
> using
> > > a
> > > > > "WILINK_VERSION" switch added to arago.conf
> > > > >
> > > > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > > > ---
> > > > > ...d-change-conf-file-for-better-oob-startup.patch |
> 40
> > > +++++
> > > > > .../hostap/hostap-daemon-wl18xx/defconfig |
> 183
> > > > > ++++++++++++++++++++
> > > > > .../hostap/hostap-daemon-wl18xx/init |
> 37
> > > ++++
> > > > > .../hostap/hostap-daemon-wl18xx_git.bb |
> 64
> > > > > +++++++
> > > > > 4 files changed, 324 insertions(+) create mode 100644
> > > > > meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-
> change-
> > > > > conf-file-for-better-oob-startup.patch
> > > > > create mode 100644 meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> > > > > create mode 100644 meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/init
> > > > > create mode 100644 meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx_git.bb
> > > > >
> > > > > diff --git a/meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/0001-hostapd-
> change-
> > > > > conf-file-for-better-oob-startup.patch b/meta-arago-
> > > > > extras/recipes-connectivity/hostap/hostap-daemon-
> wl18xx/0001-
> > > > > hostapd-change-conf-file-for-better-oob-startup.patch
> > > > > new file mode 100644
> > > > > index 0000000..824d250
> > > > > --- /dev/null
> > > > > +++ b/meta-arago-extras/recipes-
> connectivity/hostap/hostap-
> > > > > daemon-wl18xx/0001-hostapd-change-conf-file-for-better-
> oob-
> > > > > startup.patch
> > > > > @@ -0,0 +1,40 @@
> > > > > +From f7c1b9d4e18dc650dd0b9da97a91f27f6a4bb5b7 Mon Sep 17
> > > > > 00:00:00 2001
> > > > > +From: Eyal Reizer <eyalr@ti.com>
> > > > > +Date: Sun, 17 Mar 2013 07:18:55 -0700
> > > > > +Subject: [PATCH] hostapd: change conf file for better
> sdk
> > > out of
> > > > > box startup
> > > > > +
> > > > > +Change the default channel to 6 and change the ssid to a
> > > more
> > > > > +meaningful name.
> > > > > +
> > > > > +Upstream-status: inappropriate [SDK specific patch]
> > > > > +
> > > > > +Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > > > > +---
> > > > > + hostapd/hostapd.conf | 4 ++--
> > > > > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > > > > +
> > > > > +diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
> > > index
> > > > > +f71a881..00843aa 100644
> > > > > +--- a/hostapd/hostapd.conf
> > > > > ++++ b/hostapd/hostapd.conf
> > > > > +@@ -83,7 +83,7 @@ ctrl_interface_group=0 ##### IEEE
> 802.11
> > > related
> > > > > +configuration
> > > > > #######################################
> > > > > +
> > > > > + # SSID to be used in IEEE 802.11 management frames -
> > > ssid=test
> > > > > ++ssid=TexasInstruments_0001
> > > > > +
> > > > > + # Country code (ISO/IEC 3166-1). Used to set regulatory
> > > domain.
> > > > > + # Set as needed to indicate country in which device is
> > > > > operating.
> > > > > +@@ -107,7 +107,7 @@ hw_mode=g
> > > > > + # channel will need to be configured separately with
> > > iwconfig.
> > > > > + # When set to 0, automatic channel selection will be
> > > engaged. A
> > > > > channel
> > > > > + # will be selected from the desired hw_mode.
> > > > > +-channel=1
> > > > > ++channel=6
> > > > > +
> > > > > + # Automatic channel selection (ACS) whitelist #
> (default:
> > > not set)
> > > > > +--
> > > > > +1.7.9.5
> > > > > +
> > > > > diff --git a/meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/defconfig
> b/meta-
> > > arago-
> > > > > extras/recipes-connectivity/hostap/hostap-daemon-
> > > wl18xx/defconfig
> > > > > new file mode 100644
> > > > > index 0000000..1ea96c4
> > > > > --- /dev/null
> > > > > +++ b/meta-arago-extras/recipes-
> connectivity/hostap/hostap-
> > > > > daemon-wl18xx/defconfig
> > > > > @@ -0,0 +1,183 @@
> > > > > +# Example hostapd 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.,
> > > > > +# 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 cass, these lines
> should
> > > use +=
> > > > > in order not
> > > > > +# to override previous values of the variables.
> > > > > +
> > > > > +# Driver interface for Host AP driver
> CONFIG_DRIVER_HOSTAP=y
> > > > > +
> > > > > +# Driver interface for wired authenticator
> > > #CONFIG_DRIVER_WIRED=y
> > > > > +
> > > > > +# Driver interface for madwifi driver
> > > #CONFIG_DRIVER_MADWIFI=y
> > > > > +#CFLAGS += -I../../madwifi # change to the madwifi
> source
> > > > > directory
> > > > > +
> > > > > +# Driver interface for drivers using the nl80211 kernel
> > > > > interface
> > > > > +CONFIG_DRIVER_NL80211=y
> > > > > +CONFIG_LIBNL20=y
> > > > > +# driver_nl80211.c requires a rather new libnl (version
> 1.1)
> > > > > which may not be
> > > > > +# shipped with your distribution yet. If that is the
> case,
> > > you
> > > > > need to build
> > > > > +# newer libnl version and point the hostapd build to use
> it.
> > > > > +#LIBNL=/usr/src/libnl
> > > > > +#CFLAGS += -I$(LIBNL)/include
> > > > > +#LIBS += -L$(LIBNL)/lib
> > > > > +
> > > > > +# 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 no driver (e.g., RADIUS server
> only)
> > > > > +#CONFIG_DRIVER_NONE=y
> > > > > +
> > > > > +# IEEE 802.11F/IAPP
> > > > > +CONFIG_IAPP=y
> > > > > +
> > > > > +# WPA2/IEEE 802.11i RSN pre-authentication
> > > CONFIG_RSN_PREAUTH=y
> > > > > +
> > > > > +# 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
> > > > > +
> > > > > +# Integrated EAP server
> > > > > +CONFIG_EAP=y
> > > > > +
> > > > > +# EAP-MD5 for the integrated EAP server CONFIG_EAP_MD5=y
> > > > > +
> > > > > +# EAP-TLS for the integrated EAP server CONFIG_EAP_TLS=y
> > > > > +
> > > > > +# EAP-MSCHAPv2 for the integrated EAP server
> > > CONFIG_EAP_MSCHAPV2=y
> > > > > +
> > > > > +# EAP-PEAP for the integrated EAP server
> CONFIG_EAP_PEAP=y
> > > > > +
> > > > > +# EAP-GTC for the integrated EAP server CONFIG_EAP_GTC=y
> > > > > +
> > > > > +# EAP-TTLS for the integrated EAP server
> CONFIG_EAP_TTLS=y
> > > > > +
> > > > > +# EAP-SIM for the integrated EAP server
> #CONFIG_EAP_SIM=y
> > > > > +
> > > > > +# EAP-AKA for the integrated EAP server
> #CONFIG_EAP_AKA=y
> > > > > +
> > > > > +# EAP-AKA' for the integrated EAP server # This requires
> > > > > +CONFIG_EAP_AKA to be enabled, too.
> > > > > +#CONFIG_EAP_AKA_PRIME=y
> > > > > +
> > > > > +# EAP-PAX for the integrated EAP server
> #CONFIG_EAP_PAX=y
> > > > > +
> > > > > +# EAP-PSK for the integrated EAP server (this is _not_
> > > needed
> > > > > for WPA-PSK)
> > > > > +#CONFIG_EAP_PSK=y
> > > > > +
> > > > > +# EAP-SAKE for the integrated EAP server
> #CONFIG_EAP_SAKE=y
> > > > > +
> > > > > +# EAP-GPSK for the integrated EAP server
> #CONFIG_EAP_GPSK=y
> > > #
> > > > Include
> > > > > +support for optional SHA256 cipher suite in EAP-GPSK
> > > > > +#CONFIG_EAP_GPSK_SHA256=y
> > > > > +
> > > > > +# EAP-FAST for the integrated EAP server # 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.9-
> > > session-
> > > > > ticket.patch)
> > > > > +# to add the needed functions.
> > > > > +#CONFIG_EAP_FAST=y
> > > > > +
> > > > > +# Wi-Fi Protected Setup (WPS)
> > > > > +CONFIG_WPS=y
> > > > > +# Enable WSC 2.0 support
> > > > > +CONFIG_WPS2=y
> > > > > +# Enable UPnP support for external WPS Registrars
> > > CONFIG_WPS_UPNP=y
> > > > > +
> > > > > +# EAP-IKEv2
> > > > > +#CONFIG_EAP_IKEV2=y
> > > > > +
> > > > > +# Trusted Network Connect (EAP-TNC) #CONFIG_EAP_TNC=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
> > > > > +
> > > > > +# RADIUS authentication server. This provides access to
> the
> > > > > integrated EAP
> > > > > +# server from external hosts using RADIUS.
> > > > > +#CONFIG_RADIUS_SERVER=y
> > > > > +
> > > > > +# Build IPv6 support for RADIUS operations CONFIG_IPV6=y
> > > > > +
> > > > > +# IEEE Std 802.11r-2008 (Fast BSS Transition)
> > > #CONFIG_IEEE80211R=y
> > > > > +
> > > > > +# Use the hostapd's IEEE 802.11 authentication (ACL),
> but
> > > > > without
> > > > > +# the IEEE 802.11 Management capability (e.g., madwifi
> or
> > > > > FreeBSD/net80211)
> > > > > +#CONFIG_DRIVER_RADIUS_ACL=y
> > > > > +
> > > > > +# IEEE 802.11n (High Throughput) support
> CONFIG_IEEE80211N=y
> > > > > +
> > > > > +# Remove debugging code that is printing out debug
> messages
> > > to
> > > > > stdout.
> > > > > +# This can be used to reduce the size of the hostapd
> > > > > considerably if debugging
> > > > > +# code is not needed.
> > > > > +#CONFIG_NO_STDOUT_DEBUG=y
> > > > > +
> > > > > +# Remove support for RADIUS accounting
> > > #CONFIG_NO_ACCOUNTING=y
> > > > > +
> > > > > +# Remove support for RADIUS
> > > > > +#CONFIG_NO_RADIUS=y
> > > > > +
> > > > > +# Remove support for VLANs
> > > > > +#CONFIG_NO_VLAN=y
> > > > > +
> > > > > +# Remove support for dumping state into a file on
> SIGUSR1
> > > signal #
> > > > > +This can be used to reduce binary size at the cost of
> > > > > disabling a debugging
> > > > > +# option.
> > > > > +#CONFIG_NO_DUMP_STATE=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
> > > > > +#
> > > > > +#
> > > > > +
> > > > > +CONFIG_NO_RANDOM_POOL=y
> > > > > +
> > > >
> > > > I just eye-balled this here but the config looks the same
> as
> > > the config
> > > > used in the hostap-daemon recipe. Same with the init file
> > > below. So
> > > > then maybe the better way to do this is to add the hostap-
> > > daemon
> > > > directory to the FILESEXTRAPATHS. i.e. like:
> > > >
> > > > FILESEXTRAPATHS_append := "${THISDIR}/hostap-daemon:"
> > > >
> > > > I think the above line should work. Then you do not need
> to
> > > add this
> > > > config and init files.
> > > >
> > >
> > > E.R: I will try this
> > >
> > > > > diff --git a/meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx/init b/meta-
> arago-
> > > > > extras/recipes-connectivity/hostap/hostap-daemon-
> wl18xx/init
> > > > > new file mode 100644
> > > > > index 0000000..79f74b6
> > > > > --- /dev/null
> > > > > +++ b/meta-arago-extras/recipes-
> connectivity/hostap/hostap-
> > > > > daemon-wl18xx/init
> > > > > @@ -0,0 +1,37 @@
> > > > > +#!/bin/sh
> > > > > +DAEMON=/usr/sbin/hostapd
> > > > > +NAME=hostapd
> > > > > +DESC="HOSTAP Daemon"
> > > > > +ARGS="/etc/hostapd.conf -B"
> > > > > +
> > > > > +test -f $DAEMON || exit 0
> > > > > +
> > > > > +set -e
> > > > > +
> > > > > +case "$1" in
> > > > > + start)
> > > > > + echo -n "Starting $DESC: "
> > > > > + start-stop-daemon -S -x $DAEMON -- $ARGS
> > > > > + echo "$NAME."
> > > > > + ;;
> > > > > + stop)
> > > > > + echo -n "Stopping $DESC: "
> > > > > + start-stop-daemon -K -x $DAEMON
> > > > > + echo "$NAME."
> > > > > + ;;
> > > > > + restart)
> > > > > + $0 stop
> > > > > + $0 start
> > > > > + ;;
> > > > > + reload)
> > > > > + echo -n "Reloading $DESC: "
> > > > > + killall -HUP $(basename ${DAEMON})
> > > > > + echo "$NAME."
> > > > > + ;;
> > > > > + *)
> > > > > + echo "Usage: $0 {start|stop|restart|reload}"
> > > > > + exit 1
> > > > > + ;;
> > > > > +esac
> > > > > +
> > > > > +exit 0
> > > > > diff --git a/meta-arago-extras/recipes-
> > > > > connectivity/hostap/hostap-daemon-wl18xx_git.bb b/meta-
> arago-
> > > > > extras/recipes-connectivity/hostap/hostap-daemon-
> > > wl18xx_git.bb
> > > >
> > > > Same question about using the _git version.
> > >
> > > E.R: Will be changed
> > >
> > > >
> > > > > new file mode 100644
> > > > > index 0000000..6d1d5eb
> > > > > --- /dev/null
> > > > > +++ b/meta-arago-extras/recipes-
> connectivity/hostap/hostap-
> > > > > daemon-wl18xx_git.bb
> > > > > @@ -0,0 +1,64 @@
> > > > > +# This is a TI specific version of the hostap-daemon
> recipe
> > > for
> > > > > use with the
> > > > > +# wl18xx wlan and bluetooth module.
> > > > > +
> > > > > +HOMEPAGE = "http://hostap.epitest.fi"
> > > > > +DESCRIPTION = "User space daemon for extended IEEE
> 802.11
> > > > > management"
> > > > > +SECTION = "kernel/userland"
> > > > > +LICENSE = "GPLv2"
> > > > > +LIC_FILES_CHKSUM =
> > > > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e"
> > > > > +
> > > > > +DEPENDS = "libnl openssl"
> > > > > +
> > > > > +# Since this is a TI customized version of hostap-daemon
> do
> > > not
> > > > > make this the
> > > > > +# default
> > > > > +DEFAULT_PREFERENCE = "-1"
> > > > > +
> > > > > +inherit update-rc.d
> > > > > +INITSCRIPT_NAME="hostapd"
> > > > > +
> > > > > +CONFFILES_${PN} += "${sysconfdir}/hostapd.conf"
> > > > > +
> > > > > +# Add TI to the end to make it clear that this is a TI
> > > > > customized version
> > > > > +# of hostap
> > > > > +PV = "2.0-devel-ti"
> > > > > +
> > > > > +PR = "r1+gitr${SRCREV}"
> > > > > +
> > > > > +SRCREV = "ol_r8.a6.01"
> > > > > +
> > > > > +PROVIDES += "hostap-daemon"
> > > > > +RPROVIDES += "hostap-daemon"
> > > >
> > > > If you are using a variable to select between the two
> versions
> > > then why
> > > > set the PROVIDES and RPROVIDES name? You are already
> setting
> > > the
> > > > packagegroups, etc to use hostap-daemon-wl18xx. Have you
> > > tested that
> > > > this does become the default wl6 version as well?
> Although,
> > > the PV is
> > > > set to the same between both versions which seems wrong.
> > >
> > > packagegroups are not changing as the names of the packages
> provided
> > > by both wilink6 and wilink8 recipes are the same and there is
> no need
> > > to change them.
> >
> > Sorry, you are right. I completely misread patch 8. So for
> the
> > packages that don't have wl12xx in the name the approach seems
> sane. I
> > still have an issue with things like wl18xx-firmware providing
> wl12xx-
> > firmware. So my feedback was based on a mis-read of what you
> were
> > doing but I think you still need to fixup package names where
> possible
> > to not have the wl part in the name.
> >
>
> You are right about the package names, I just didn't want to
> start modifying wilink6 recipes for changing names at this point.
> Wanted to work only on adding wilink8 with minimal changes to the
> wilink6 build and allow selecting between them.
> If this is needed I would probably need to change also ti-compat-
> wirelss-wl12xx recipe and update the recipes dependent upon it
> (like ti-compat-bluetooth).
> Will also need to change the packagegroups for the new names.
> How do you suggest we proceed?
My ideal is actually to update to generic package names to avoid confusion. I'll let Franklin comment here as well though.
>
> > >
> > > >
> > > > > +
> > > > > +SRC_URI = "git://github.com/TI-
> > > OpenLink/hostap.git;protocol=git
> > > > > \
> > > > > + file://0001-hostapd-change-conf-file-for-better-oob-
> > > > > startup.patch;patchdir=.. \
> > > > > + file://defconfig \
> > > > > + file://init"
> > > > > +
> > > > > +S = "${WORKDIR}/git/hostapd"
> > > > > +
> > > > > +do_configure() {
> > > > > + install -m 0644 ${WORKDIR}/defconfig ${S}/.config
> > > > > + echo "CFLAGS += -I${STAGING_INCDIR}" >> .config
> > > > > + echo "LIBS += -L${STAGING_LIBDIR}" >> .config }
> > > > > +
> > > > > +do_compile() {
> > > > > + make
> > > > > +}
> > > > > +
> > > > > +do_install() {
> > > > > + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d
> > > > > + install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir}
> > > > > + install -m 0755 ${S}/hostapd ${D}${sbindir}
> > > > > + install -m 0755 ${S}/hostapd_cli ${D}${sbindir}
> > > > > + install -m 755 ${WORKDIR}/init
> > > > > ${D}${sysconfdir}/init.d/hostapd
> > > > > +}
> > > > > +
> > > > > +# The default hostapd.conf file that is fetched from
> > > upstream is
> > > > > using
> > > > > +# "a" band which is not supported by the 1271 chip.
> > > > > +# modify it to use "g" band and default channel 6 and
> change
> > > the
> > > > > ssid from
> > > > > +# "test" to a more meaningful name.
> > > > > +
> > > > > +updatercd_postinst () {
> > > > > +:
> > > > > +}
> > > > > --
> > > > > 1.7.9.5
> > > > >
> > > > > _______________________________________________
> > > > > meta-arago mailing list
> > > > > meta-arago@arago-project.org
> > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-
> arago
> > > > _______________________________________________
> > > > meta-arago mailing list
> > > > meta-arago@arago-project.org
> > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-
> arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 15:59 ` Denys Dmytriyenko
@ 2013-03-18 16:42 ` Reizer, Eyal
2013-03-18 17:46 ` Cooper Jr., Franklin
0 siblings, 1 reply; 27+ messages in thread
From: Reizer, Eyal @ 2013-03-18 16:42 UTC (permalink / raw)
To: Dmytriyenko, Denys, Maupin, Chase; +Cc: meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys
> Sent: Monday, March 18, 2013 5:59 PM
> To: Maupin, Chase
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> 2.0-devel version for wilink8
>
> On Mon, Mar 18, 2013 at 03:52:22PM +0000, Maupin, Chase wrote:
> > > -----Original Message-----
> > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > Sent: Monday, March 18, 2013 8:36 AM
> > > To: meta-arago@arago-project.org
> > > Subject: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> > > 2.0-devel version for wilink8
> > >
> > > From: Eyal Reizer <eyalr@ti.com>
> > >
> > > Add a recipe for building a ti specific 2.0-devel version for
> > > Wilink8.
> > >
> > > This package replace the wilink6 package which is provided by the
> > > wpa-supplicant recipe.
> > > Selection between the two is done using a "WILINK_VERSION" switch
> > > added
> > > to arago.conf.
> > >
> > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> >
> >
> > Overall I have the same questions as for the hostap-daemon recipe.
>
> See way below...
>
>
> > > ---
> > > .../wpa-supplicant-wl18xx/99_wpa_supplicant | 1 +
> > > .../wpa-supplicant-wl18xx/defaults-sane | 8 +
> > > .../wpa-supplicant/wpa-supplicant-wl18xx/defconfig | 430
> > > ++++++++++++
> > > .../fi.epitest.hostap.WPASupplicant.service | 4 +
> > > .../fi.w1.wpa_supplicant1.service | 4 +
> > > .../wpa-supplicant-wl18xx/kill_wpa_supplicant.sh | 9 +
> > > .../wpa-supplicant-wl18xx/wpa-supplicant.sh | 85 +++
> > > .../wpa-supplicant-wl18xx/wpa_supplicant.conf | 690
> > > ++++++++++++++++++++
> > > .../wpa-supplicant-wl18xx/wpa_supplicant.conf-sane | 7 +
> > > .../wpa-supplicant/wpa-supplicant-wl18xx_git.bb | 23 +
> > > 10 files changed, 1261 insertions(+)
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/defaults-sane
> > > create mode 100755 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/defconfig
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-
> > > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
> > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx_git.bb
> > >
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/99_wpa_supplicant
> > > new file mode 100644
> > > index 0000000..6ff4dd8
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/99_wpa_supplicant
> > > @@ -0,0 +1 @@
> > > +d root root 0700 /var/run/wpa_supplicant none
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/defaults-sane b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/defaults-sane
> > > new file mode 100644
> > > index 0000000..67c4cbd
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/defaults-sane
> > > @@ -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"
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/defconfig b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/defconfig
> > > new file mode 100755
> > > index 0000000..b982e2a
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/defconfig
> > > @@ -0,0 +1,430 @@
> > > +# 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.,
> > > +# 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
> > > +# to override previous values of the variables.
> > > +
> > > +
> > > +# Uncomment following two lines and fix the paths if you have
> > > installed OpenSSL
> > > +# 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
> > > +# 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)
> > > ######################################
> > > +#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
> > > +################################################################
> > > ###############
> > > +
> > > +#### openwrt (e.g., for Linksys WRT54G)
> > > #######################################
> > > +#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
> > > +################################################################
> > > ###############
> > > +
> > > +#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") supportsBG
> > > +# 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/libBG
> > > +#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
> > > +#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
> > > +# 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.
> > > +# 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
> > > +# 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)
> > > +# 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
> > > +# 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 testingBG
> > > +#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
> > > +
> > > +# for p2p
> > > +CONFIG_P2P=y
> > > +CONFIG_AP=y
> > > +
> > > +# IEEE 802.11n (High Throughput) support
> > > +CONFIG_IEEE80211N=y
> > > +
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-
> > > wl18xx/fi.epitest.hostap.WPASupplicant.service b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > new file mode 100644
> > > index 0000000..fb3f917
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > @@ -0,0 +1,4 @@
> > > +[D-BUS Service]
> > > +Name=fi.epitest.hostap.WPASupplicant
> > > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > > +User=root
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > new file mode 100644
> > > index 0000000..0bb1056
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > @@ -0,0 +1,4 @@
> > > +[D-BUS Service]
> > > +Name=fi.w1.wpa_supplicant1
> > > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > > +User=root
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh b/meta-
> > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/kill_wpa_supplicant.sh
> > > new file mode 100644
> > > index 0000000..aab6474
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/kill_wpa_supplicant.sh
> > > @@ -0,0 +1,9 @@
> > > +#check if the wpa_suppicant is already running
> > > +#if it does, stop it.
> > > +StationRunning=`ps | grep -c wpa_supplicant`
> > > +if [ $StationRunning -eq 2 ]; then
> > > + killall wpa_supplicant
> > > +fi
> > > +
> > > +# start the application
> > > +$*
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/wpa-supplicant.sh
> > > new file mode 100644
> > > index 0000000..4f1001e
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/wpa-supplicant.sh
> > > @@ -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"
> > > + 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\""
> > > + 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"
> > > + fi
> > > +
> > > + start-stop-daemon --start --quiet \
> > > + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --
> > > pidfile $WPA_SUP_PIDFILE \
> > > + -- $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
> > > +
> > > + if [ "$VERBOSITY" = "1" ]; then
> > > + echo "$WPA_SUP_PNAME: ctrl_interface socket
> > > located at $WPA_COMMON_CTRL_IFACE/$IFACE"
> > > + 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
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf b/meta-
> > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/wpa_supplicant.conf
> > > new file mode 100644
> > > index 0000000..f0c993d
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/wpa_supplicant.conf
> > > @@ -0,0 +1,690 @@
> > > +##### Example wpa_supplicant configuration file
> > > ###############################
> > > +#
> > > +# This file describes configuration file format and lists all
> > > available option.
> > > +# 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
> > > +# 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.
> > > +
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# will be created for UNIX domain sockets for listening to
> > > requests from
> > > +# external programs (CLI/GUI, etc.) for status information and
> > > configuration.
> > > +# 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
> > > +# 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.
> > > +# 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/
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# also be used when using wired Ethernet drivers.
> > > +# 2: like 0, but associate with APs using security policy and
> > > SSID (but not
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# (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,
> > > +# e.g., with wpa_cli or wpa_gui)
> > > +#
> > > +# id_str: Network identifier string for external scripts. This
> > > value is passed
> > > +# 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
> > > +# 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)
> > > +#
> > > +# 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).
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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.,
> > > +# 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
> > > +# 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
> > > +# from ASCII passphrase. This process uses lot of CPU and
> > > wpa_supplicant
> > > +# startup and reconfiguration time can be optimized by
> > > generating the PSK only
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# or more trusted CA certificates. If ca_cert and ca_path are
> > > not
> > > +# included, server certificate will not be verified. This is
> > > insecure and
> > > +# a trusted CA certificate should always be configured when
> > > using
> > > +# EAP-TLS/TTLS/PEAP. Full path should be used since working
> > > directory may
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# 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
> > > +# to blob://<blob name>.
> > > +# private_key_passwd: Password for private key file (if left
> > > out, this will be
> > > +# 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
> > > +# 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.
> > > +# The subject string is in following format:
> > > +# /C=US/ST=CA/L=San Francisco/CN=Test
> > > AS/emailAddress=as@example.com
> > > +# altsubject_match: Semicolon separated string of entries to be
> > > matched against
> > > +# the alternative subject name of the authentication server
> > > certificate.
> > > +# 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:server@example.com
> > > +# 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",
> > > +# 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
> > > +# interoperate with PEAPv1; see eap_testing.txt for more
> > > details.
> > > +# 'peap_outer_success=0' can be used to terminate PEAP
> > > authentication on
> > > +# 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
> > > +# "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
> > > +# trusted CA certificates. If ca_cert2 and ca_path2 are not
> > > included,
> > > +# server certificate will not be verified. This is insecure
> > > and a trusted
> > > +# 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
> > > +# 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)
> > > +# nai: user NAI (ID_Client)
> > > +#
> > > +# EAP-FAST variables:
> > > +# pac_file: File path for the PAC entries. wpa_supplicant will
> > > need to be able
> > > +# 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
> > > +# 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
> > > +# 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
> > > +network={
> > > + ssid="simple"
> > > + psk="very secret passphrase"
> > > + priority=5
> > > +}
> > > +
> > > +# Same as previous, but request SSID-specific scanning (for APs
> > > that reject
> > > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > > 6c72ac7bb
> > > + priority=2
> > > +}
> > > +
> > > +# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP
> > > that used WEP104
> > > +# 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="user@example.com"
> > > + 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
> > > +# (e.g., Radiator)
> > > +network={
> > > + ssid="example"
> > > + key_mgmt=WPA-EAP
> > > + eap=PEAP
> > > + identity="user@example.com"
> > > + 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.
> > > +network={
> > > + ssid="example"
> > > + key_mgmt=WPA-EAP
> > > + eap=TTLS
> > > + identity="user@example.com"
> > > + anonymous_identity="anonymous@example.com"
> > > + password="foobar"
> > > + ca_cert="/etc/cert/ca.pem"
> > > + priority=2
> > > +}
> > > +
> > > +# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for
> > > the unencrypted
> > > +# use. Real identity is sent only within an encrypted TLS
> > > tunnel.
> > > +network={
> > > + ssid="example"
> > > + key_mgmt=WPA-EAP
> > > + eap=TTLS
> > > + identity="user@example.com"
> > > + anonymous_identity="anonymous@example.com"
> > > + password="foobar"
> > > + ca_cert="/etc/cert/ca.pem"
> > > + phase2="auth=MSCHAPV2"
> > > +}
> > > +
> > > +# WPA-EAP, EAP-TTLS with different CA certificate used for outer
> > > and inner
> > > +# authentication.
> > > +network={
> > > + ssid="example"
> > > + key_mgmt=WPA-EAP
> > > + eap=TTLS
> > > + # Phase1 / outer authentication
> > > + anonymous_identity="anonymous@example.com"
> > > + 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
> > > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > > 6c72ac7bb
> > > +}
> > > +
> > > +# Special characters in SSID, so use hex string. Default to WPA-
> > > PSK, WPA-EAP
> > > +# and all valid ciphers.
> > > +network={
> > > + ssid=00010203
> > > +
> > > psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1
> > > b1c1d1e1f
> > > +}
> > > +
> > > +
> > > +# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e.,
> > > no WPA) using
> > > +# EAP-TLS for authentication and key generation; require both
> > > unicast and
> > > +# broadcast WEP keys.
> > > +network={
> > > + ssid="1x-test"
> > > + key_mgmt=IEEE8021X
> > > + eap=TLS
> > > + identity="user@example.com"
> > > + 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="user@example.com"
> > > + 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="user@example.com"
> > > + 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
> > > +# data instead of using external file
> > > +network={
> > > + ssid="example"
> > > + key_mgmt=WPA-EAP
> > > + eap=TTLS
> > > + identity="user@example.com"
> > > + anonymous_identity="anonymous@example.com"
> > > + 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
> > > +}
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane b/meta-
> > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx/wpa_supplicant.conf-sane
> > > new file mode 100644
> > > index 0000000..c91ffe0
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx/wpa_supplicant.conf-sane
> > > @@ -0,0 +1,7 @@
> > > +ctrl_interface=/var/run/wpa_supplicant
> > > +ctrl_interface_group=0
> > > +update_config=1
> > > +
> > > +network={
> > > + key_mgmt=NONE
> > > +}
> > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > supplicant/wpa-supplicant-wl18xx_git.bb b/meta-arago-
> > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > wl18xx_git.bb
> > > new file mode 100644
> > > index 0000000..65be767
> > > --- /dev/null
> > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > supplicant-wl18xx_git.bb
> > > @@ -0,0 +1,23 @@
> > > +# This is a TI specific version of the wpa-supplicant recipe for
> > > use with the
> > > +# wl18xx wlan module.
> > > +
> > > +require wpa-supplicant.inc
> >
> > I'm not sure where this file is coming from. Maybe something in
> Franklin's
> > tree?
>
> If it's not in the main meta-arago tree or oe-core, then you would need
> to add
> it to the patch series. If the file is pending submission from
> Franklin, then
> you need to specify the dependency. If this series is meant for
> Franklin's
> tree only, then we need to have a serious discussion... :)
>
>
Yes I guess it is dependent on a set of patches Franklin is about to send As it did use his branch.
I was not aware it was not submitted yet.
Franklin, Are you sending this patch set soon?
> > > +LICENSE = "GPLv2 | BSD"
> > > +LIC_FILES_CHKSUM =
> > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
> > > +
> > > file://../README;md5=5cb758942d25f6f61fd4ac388fd446fa \
> > > +
> > > file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8ca
> > > d6356ec7f39ebe3aba"
> > > +
> > > +# To prevent users from accidently picking up this customized
> > > version of
> > > +# wpa-supplicant the DEFAULT_PREFERENCE will be set to -1.
> > > +DEFAULT_PREFERENCE = "-1"
> > > +
> > > +SRCREV = "ol_r8.a6.01"
> > > +PR = "r3+gitr${SRCREV}"
> > > +# Add ti to the PV to indicate that this is a TI modify version
> > > of wpa-supplicant.
> > > +PV = "2.0-devel-ti"
> > > +
> > > +PROVIDES_${PN}+= "wpa-supplicant"
> > > +RPROVIDES_${PN} += "wpa-supplicant"
> > > +RRECOMMENDS_${PN} = "wpa-supplicant"
> >
> > Why would you RRECOMMENDS wpa-supplicant. Wouldn't this give you the
> wl6
> > version?
> >
> > > +RDEPENDS_${PN} = "wpa-supplicant-cli wpa-supplicant-passphrase"
> >
> > This seems likely to hurt you as well.
>
> --
> Denys
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Best Regards,
Eyal
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 16:42 ` Reizer, Eyal
@ 2013-03-18 17:46 ` Cooper Jr., Franklin
2013-03-18 17:50 ` Denys Dmytriyenko
0 siblings, 1 reply; 27+ messages in thread
From: Cooper Jr., Franklin @ 2013-03-18 17:46 UTC (permalink / raw)
To: Reizer, Eyal, Dmytriyenko, Denys, Maupin, Chase
Cc: meta-arago@arago-project.org
> -----Original Message-----
> From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> bounces@arago-project.org] On Behalf Of Reizer, Eyal
> Sent: Monday, March 18, 2013 11:42 AM
> To: Dmytriyenko, Denys; Maupin, Chase
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-
> devel version for wilink8
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Dmytriyenko, Denys
> > Sent: Monday, March 18, 2013 5:59 PM
> > To: Maupin, Chase
> > Cc: meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> > 2.0-devel version for wilink8
> >
> > On Mon, Mar 18, 2013 at 03:52:22PM +0000, Maupin, Chase wrote:
> > > > -----Original Message-----
> > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > > bounces@arago-project.org] On Behalf Of Eyal Reizer
> > > > Sent: Monday, March 18, 2013 8:36 AM
> > > > To: meta-arago@arago-project.org
> > > > Subject: [meta-arago] [PATCH 4/9] wpa-supplicant-wl18xx: build ti
> > > > 2.0-devel version for wilink8
> > > >
> > > > From: Eyal Reizer <eyalr@ti.com>
> > > >
> > > > Add a recipe for building a ti specific 2.0-devel version for
> > > > Wilink8.
> > > >
> > > > This package replace the wilink6 package which is provided by the
> > > > wpa-supplicant recipe.
> > > > Selection between the two is done using a "WILINK_VERSION" switch
> > > > added
> > > > to arago.conf.
> > > >
> > > > Signed-off-by: Eyal Reizer <eyalr@ti.com>
> > >
> > >
> > > Overall I have the same questions as for the hostap-daemon recipe.
> >
> > See way below...
> >
> >
> > > > ---
> > > > .../wpa-supplicant-wl18xx/99_wpa_supplicant | 1 +
> > > > .../wpa-supplicant-wl18xx/defaults-sane | 8 +
> > > > .../wpa-supplicant/wpa-supplicant-wl18xx/defconfig | 430
> > > > ++++++++++++
> > > > .../fi.epitest.hostap.WPASupplicant.service | 4 +
> > > > .../fi.w1.wpa_supplicant1.service | 4 +
> > > > .../wpa-supplicant-wl18xx/kill_wpa_supplicant.sh | 9 +
> > > > .../wpa-supplicant-wl18xx/wpa-supplicant.sh | 85 +++
> > > > .../wpa-supplicant-wl18xx/wpa_supplicant.conf | 690
> > > > ++++++++++++++++++++
> > > > .../wpa-supplicant-wl18xx/wpa_supplicant.conf-sane | 7 +
> > > > .../wpa-supplicant/wpa-supplicant-wl18xx_git.bb | 23 +
> > > > 10 files changed, 1261 insertions(+)
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/defaults-sane
> > > > create mode 100755 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/defconfig
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-
> > > > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane
> > > > create mode 100644 meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx_git.bb
> > > >
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/99_wpa_supplicant b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/99_wpa_supplicant
> > > > new file mode 100644
> > > > index 0000000..6ff4dd8
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/99_wpa_supplicant
> > > > @@ -0,0 +1 @@
> > > > +d root root 0700 /var/run/wpa_supplicant none
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/defaults-sane b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/defaults-sane
> > > > new file mode 100644
> > > > index 0000000..67c4cbd
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/defaults-sane
> > > > @@ -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"
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/defconfig b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/defconfig
> > > > new file mode 100755
> > > > index 0000000..b982e2a
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/defconfig
> > > > @@ -0,0 +1,430 @@
> > > > +# 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.,
> > > > +# 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
> > > > +# to override previous values of the variables.
> > > > +
> > > > +
> > > > +# Uncomment following two lines and fix the paths if you have
> > > > installed OpenSSL
> > > > +# 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
> > > > +# 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)
> > > > ######################################
> > > > +#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
> > > >
> +###############################################################
> #
> > > > ###############
> > > > +
> > > > +#### openwrt (e.g., for Linksys WRT54G)
> > > > #######################################
> > > > +#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
> > > >
> +###############################################################
> #
> > > > ###############
> > > > +
> > > > +#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") supportsBG
> > > > +# 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/libBG
> > > > +#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
> > > > +#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
> > > > +# 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.
> > > > +# 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
> > > > +# 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)
> > > > +# 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
> > > > +# 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 testingBG
> > > > +#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
> > > > +
> > > > +# for p2p
> > > > +CONFIG_P2P=y
> > > > +CONFIG_AP=y
> > > > +
> > > > +# IEEE 802.11n (High Throughput) support
> > > > +CONFIG_IEEE80211N=y
> > > > +
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-
> > > > wl18xx/fi.epitest.hostap.WPASupplicant.service b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > > new file mode 100644
> > > > index 0000000..fb3f917
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/fi.epitest.hostap.WPASupplicant.service
> > > > @@ -0,0 +1,4 @@
> > > > +[D-BUS Service]
> > > > +Name=fi.epitest.hostap.WPASupplicant
> > > > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > > > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > > > +User=root
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > > b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > > new file mode 100644
> > > > index 0000000..0bb1056
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/fi.w1.wpa_supplicant1.service
> > > > @@ -0,0 +1,4 @@
> > > > +[D-BUS Service]
> > > > +Name=fi.w1.wpa_supplicant1
> > > > +Exec=/usr/sbin/wpa_supplicant -d -Dnl80211 -
> > > > c/etc/wpa_supplicant.conf -iwlan0 -B -u
> > > > +User=root
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/kill_wpa_supplicant.sh b/meta-
> > > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/kill_wpa_supplicant.sh
> > > > new file mode 100644
> > > > index 0000000..aab6474
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/kill_wpa_supplicant.sh
> > > > @@ -0,0 +1,9 @@
> > > > +#check if the wpa_suppicant is already running
> > > > +#if it does, stop it.
> > > > +StationRunning=`ps | grep -c wpa_supplicant`
> > > > +if [ $StationRunning -eq 2 ]; then
> > > > + killall wpa_supplicant
> > > > +fi
> > > > +
> > > > +# start the application
> > > > +$*
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa-supplicant.sh b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/wpa-supplicant.sh
> > > > new file mode 100644
> > > > index 0000000..4f1001e
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/wpa-supplicant.sh
> > > > @@ -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"
> > > > + 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\""
> > > > + 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"
> > > > + fi
> > > > +
> > > > + start-stop-daemon --start --quiet \
> > > > + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --
> > > > pidfile $WPA_SUP_PIDFILE \
> > > > + -- $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
> > > > +
> > > > + if [ "$VERBOSITY" = "1" ]; then
> > > > + echo "$WPA_SUP_PNAME: ctrl_interface socket
> > > > located at $WPA_COMMON_CTRL_IFACE/$IFACE"
> > > > + 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
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf b/meta-
> > > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/wpa_supplicant.conf
> > > > new file mode 100644
> > > > index 0000000..f0c993d
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/wpa_supplicant.conf
> > > > @@ -0,0 +1,690 @@
> > > > +##### Example wpa_supplicant configuration file
> > > > ###############################
> > > > +#
> > > > +# This file describes configuration file format and lists all
> > > > available option.
> > > > +# 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
> > > > +# 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.
> > > > +
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# will be created for UNIX domain sockets for listening to
> > > > requests from
> > > > +# external programs (CLI/GUI, etc.) for status information and
> > > > configuration.
> > > > +# 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
> > > > +# 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.
> > > > +# 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/
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# also be used when using wired Ethernet drivers.
> > > > +# 2: like 0, but associate with APs using security policy and
> > > > SSID (but not
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# (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,
> > > > +# e.g., with wpa_cli or wpa_gui)
> > > > +#
> > > > +# id_str: Network identifier string for external scripts. This
> > > > value is passed
> > > > +# 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
> > > > +# 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)
> > > > +#
> > > > +# 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).
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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.,
> > > > +# 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
> > > > +# 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
> > > > +# from ASCII passphrase. This process uses lot of CPU and
> > > > wpa_supplicant
> > > > +# startup and reconfiguration time can be optimized by
> > > > generating the PSK only
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# or more trusted CA certificates. If ca_cert and ca_path are
> > > > not
> > > > +# included, server certificate will not be verified. This is
> > > > insecure and
> > > > +# a trusted CA certificate should always be configured when
> > > > using
> > > > +# EAP-TLS/TTLS/PEAP. Full path should be used since working
> > > > directory may
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +# to blob://<blob name>.
> > > > +# private_key_passwd: Password for private key file (if left
> > > > out, this will be
> > > > +# 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
> > > > +# 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.
> > > > +# The subject string is in following format:
> > > > +# /C=US/ST=CA/L=San Francisco/CN=Test
> > > > AS/emailAddress=as@example.com
> > > > +# altsubject_match: Semicolon separated string of entries to be
> > > > matched against
> > > > +# the alternative subject name of the authentication server
> > > > certificate.
> > > > +# 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:server@example.com
> > > > +# 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",
> > > > +# 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
> > > > +# interoperate with PEAPv1; see eap_testing.txt for more
> > > > details.
> > > > +# 'peap_outer_success=0' can be used to terminate PEAP
> > > > authentication on
> > > > +# 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
> > > > +# "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
> > > > +# trusted CA certificates. If ca_cert2 and ca_path2 are not
> > > > included,
> > > > +# server certificate will not be verified. This is insecure
> > > > and a trusted
> > > > +# 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
> > > > +# 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)
> > > > +# nai: user NAI (ID_Client)
> > > > +#
> > > > +# EAP-FAST variables:
> > > > +# pac_file: File path for the PAC entries. wpa_supplicant will
> > > > need to be able
> > > > +# 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
> > > > +# 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
> > > > +# 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
> > > > +network={
> > > > + ssid="simple"
> > > > + psk="very secret passphrase"
> > > > + priority=5
> > > > +}
> > > > +
> > > > +# Same as previous, but request SSID-specific scanning (for APs
> > > > that reject
> > > > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > > > 6c72ac7bb
> > > > + priority=2
> > > > +}
> > > > +
> > > > +# Only WPA-EAP is used. Both CCMP and TKIP is accepted. An AP
> > > > that used WEP104
> > > > +# 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="user@example.com"
> > > > + 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
> > > > +# (e.g., Radiator)
> > > > +network={
> > > > + ssid="example"
> > > > + key_mgmt=WPA-EAP
> > > > + eap=PEAP
> > > > + identity="user@example.com"
> > > > + 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.
> > > > +network={
> > > > + ssid="example"
> > > > + key_mgmt=WPA-EAP
> > > > + eap=TTLS
> > > > + identity="user@example.com"
> > > > + anonymous_identity="anonymous@example.com"
> > > > + password="foobar"
> > > > + ca_cert="/etc/cert/ca.pem"
> > > > + priority=2
> > > > +}
> > > > +
> > > > +# EAP-TTLS/MSCHAPv2 configuration with anonymous identity for
> > > > the unencrypted
> > > > +# use. Real identity is sent only within an encrypted TLS
> > > > tunnel.
> > > > +network={
> > > > + ssid="example"
> > > > + key_mgmt=WPA-EAP
> > > > + eap=TTLS
> > > > + identity="user@example.com"
> > > > + anonymous_identity="anonymous@example.com"
> > > > + password="foobar"
> > > > + ca_cert="/etc/cert/ca.pem"
> > > > + phase2="auth=MSCHAPV2"
> > > > +}
> > > > +
> > > > +# WPA-EAP, EAP-TTLS with different CA certificate used for outer
> > > > and inner
> > > > +# authentication.
> > > > +network={
> > > > + ssid="example"
> > > > + key_mgmt=WPA-EAP
> > > > + eap=TTLS
> > > > + # Phase1 / outer authentication
> > > > + anonymous_identity="anonymous@example.com"
> > > > + 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
> > > > +# 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=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb010
> > > > 6c72ac7bb
> > > > +}
> > > > +
> > > > +# Special characters in SSID, so use hex string. Default to WPA-
> > > > PSK, WPA-EAP
> > > > +# and all valid ciphers.
> > > > +network={
> > > > + ssid=00010203
> > > > +
> > > > psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1
> > > > b1c1d1e1f
> > > > +}
> > > > +
> > > > +
> > > > +# IEEE 802.1X/EAPOL with dynamically generated WEP keys (i.e.,
> > > > no WPA) using
> > > > +# EAP-TLS for authentication and key generation; require both
> > > > unicast and
> > > > +# broadcast WEP keys.
> > > > +network={
> > > > + ssid="1x-test"
> > > > + key_mgmt=IEEE8021X
> > > > + eap=TLS
> > > > + identity="user@example.com"
> > > > + 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="user@example.com"
> > > > + 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="user@example.com"
> > > > + 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
> > > > +# data instead of using external file
> > > > +network={
> > > > + ssid="example"
> > > > + key_mgmt=WPA-EAP
> > > > + eap=TTLS
> > > > + identity="user@example.com"
> > > > + anonymous_identity="anonymous@example.com"
> > > > + 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
> > > > +}
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx/wpa_supplicant.conf-sane b/meta-
> > > > arago-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx/wpa_supplicant.conf-sane
> > > > new file mode 100644
> > > > index 0000000..c91ffe0
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx/wpa_supplicant.conf-sane
> > > > @@ -0,0 +1,7 @@
> > > > +ctrl_interface=/var/run/wpa_supplicant
> > > > +ctrl_interface_group=0
> > > > +update_config=1
> > > > +
> > > > +network={
> > > > + key_mgmt=NONE
> > > > +}
> > > > diff --git a/meta-arago-extras/recipes-connectivity/wpa-
> > > > supplicant/wpa-supplicant-wl18xx_git.bb b/meta-arago-
> > > > extras/recipes-connectivity/wpa-supplicant/wpa-supplicant-
> > > > wl18xx_git.bb
> > > > new file mode 100644
> > > > index 0000000..65be767
> > > > --- /dev/null
> > > > +++ b/meta-arago-extras/recipes-connectivity/wpa-supplicant/wpa-
> > > > supplicant-wl18xx_git.bb
> > > > @@ -0,0 +1,23 @@
> > > > +# This is a TI specific version of the wpa-supplicant recipe for
> > > > use with the
> > > > +# wl18xx wlan module.
> > > > +
> > > > +require wpa-supplicant.inc
> > >
> > > I'm not sure where this file is coming from. Maybe something in
> > Franklin's
> > > tree?
> >
> > If it's not in the main meta-arago tree or oe-core, then you would need
> > to add
> > it to the patch series. If the file is pending submission from
> > Franklin, then
> > you need to specify the dependency. If this series is meant for
> > Franklin's
> > tree only, then we need to have a serious discussion... :)
> >
> >
>
> Yes I guess it is dependent on a set of patches Franklin is about to send As it did
> use his branch.
> I was not aware it was not submitted yet.
> Franklin, Are you sending this patch set soon?
I can send those patches. Its 17 patches total that includes all of the changes. Those patches depended on the 4 patches I sent earlier today.
Denys,
If you can commit those patches today I'll send my next patch set that Eyal's patches depend on.
>
> > > > +LICENSE = "GPLv2 | BSD"
> > > > +LIC_FILES_CHKSUM =
> > > > "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
> > > > +
> > > > file://../README;md5=5cb758942d25f6f61fd4ac388fd446fa \
> > > > +
> > > > file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8ca
> > > > d6356ec7f39ebe3aba"
> > > > +
> > > > +# To prevent users from accidently picking up this customized
> > > > version of
> > > > +# wpa-supplicant the DEFAULT_PREFERENCE will be set to -1.
> > > > +DEFAULT_PREFERENCE = "-1"
> > > > +
> > > > +SRCREV = "ol_r8.a6.01"
> > > > +PR = "r3+gitr${SRCREV}"
> > > > +# Add ti to the PV to indicate that this is a TI modify version
> > > > of wpa-supplicant.
> > > > +PV = "2.0-devel-ti"
> > > > +
> > > > +PROVIDES_${PN}+= "wpa-supplicant"
> > > > +RPROVIDES_${PN} += "wpa-supplicant"
> > > > +RRECOMMENDS_${PN} = "wpa-supplicant"
> > >
> > > Why would you RRECOMMENDS wpa-supplicant. Wouldn't this give you the
> > wl6
> > > version?
> > >
> > > > +RDEPENDS_${PN} = "wpa-supplicant-cli wpa-supplicant-passphrase"
> > >
> > > This seems likely to hurt you as well.
> >
> > --
> > Denys
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
>
> Best Regards,
> Eyal
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8
2013-03-18 17:46 ` Cooper Jr., Franklin
@ 2013-03-18 17:50 ` Denys Dmytriyenko
0 siblings, 0 replies; 27+ messages in thread
From: Denys Dmytriyenko @ 2013-03-18 17:50 UTC (permalink / raw)
To: Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org
On Mon, Mar 18, 2013 at 01:46:52PM -0400, Cooper Jr., Franklin wrote:
[snip]
> > > If it's not in the main meta-arago tree or oe-core, then you would need
> > > to add
> > > it to the patch series. If the file is pending submission from
> > > Franklin, then
> > > you need to specify the dependency. If this series is meant for
> > > Franklin's
> > > tree only, then we need to have a serious discussion... :)
> > >
> > >
> >
> > Yes I guess it is dependent on a set of patches Franklin is about to send As it did
> > use his branch.
> > I was not aware it was not submitted yet.
> > Franklin, Are you sending this patch set soon?
>
> I can send those patches. Its 17 patches total that includes all of the
> changes. Those patches depended on the 4 patches I sent earlier today.
>
> Denys,
>
> If you can commit those patches today I'll send my next patch set that
> Eyal's patches depend on.
Ok, fair enough.
Speaking of patches - how soon will you be submitting the patch to make
linux-libc-headers machine-specific, as we are now seeing weird issues with
different machines using different kernel versions and ltp-ddt trying to
support them all... Thanks.
--
Denys
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2013-03-18 17:50 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18 13:35 [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Eyal Reizer
2013-03-18 13:35 ` [PATCH 2/9] wl18xx-firmware: install Wilink8 wlan firmware files Eyal Reizer
2013-03-18 15:34 ` Maupin, Chase
2013-03-18 15:41 ` Reizer, Eyal
2013-03-18 15:49 ` Denys Dmytriyenko
2013-03-18 15:56 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 3/9] hostap-daemon-wl18xx: hostap-daemon for ti wilink8 release Eyal Reizer
2013-03-18 15:46 ` Maupin, Chase
2013-03-18 15:53 ` Denys Dmytriyenko
2013-03-18 16:01 ` Reizer, Eyal
2013-03-18 15:54 ` Reizer, Eyal
2013-03-18 16:02 ` Maupin, Chase
2013-03-18 16:16 ` Reizer, Eyal
2013-03-18 16:22 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 4/9] wpa-supplicant-wl18xx: build ti 2.0-devel version for wilink8 Eyal Reizer
2013-03-18 15:52 ` Maupin, Chase
2013-03-18 15:59 ` Denys Dmytriyenko
2013-03-18 16:42 ` Reizer, Eyal
2013-03-18 17:46 ` Cooper Jr., Franklin
2013-03-18 17:50 ` Denys Dmytriyenko
2013-03-18 13:35 ` [PATCH 5/9] ti-wifi-utils-wl18xx: build the calibrator tool for wilin8 Eyal Reizer
2013-03-18 15:53 ` Maupin, Chase
2013-03-18 13:35 ` [PATCH 6/9] ti-compat-wireless-wl18xx: build Wilink8 drivers from TI-OpenLink Eyal Reizer
2013-03-18 13:35 ` [PATCH 7/9] bt-firmware: update for including the wl18xx bt firmware Eyal Reizer
2013-03-18 13:36 ` [PATCH 8/9] arago conf: add rule for selecting between wilink chips Eyal Reizer
2013-03-18 13:36 ` [PATCH 9/9] connectivity packagegroup: add wlconf for wilink8 Eyal Reizer
2013-03-18 13:48 ` [PATCH 1/9] wlconf: configuration utility for wilink8 wireless driver Cooper Jr., Franklin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.