2014-07-28

Slitaz -- wpa / wext


-D = driver name (can be multiple drivers: nl80211,wext)

example:
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf


1.
root@slitaz:/home/tux# wpa_supplicant -help | grep -A 3 drivers:
drivers:
nl80211 = Linux nl80211/cfg80211
wext = Linux wireless extensions (generic)
wired = Wired Ethernet driver
--
-D = driver name (can be multiple drivers: nl80211,wext)
-e = entropy file
-g = global ctrl_interface
-G = global ctrl_interface group


2.
Update wpa_supplicant (2.1) And use /etc/wpa
http://hg.slitaz.org/wok/raw-rev/62082fa37457

diff -r f2f0afdddde7 -r 62082fa37457 wpa_supplicant/receipt
--- a/wpa_supplicant/receipt Sat Feb 15 15:38:27 2014 +0100
+++ b/wpa_supplicant/receipt Sat Feb 15 19:55:40 2014 +0100
@@ -1,7 +1,7 @@
# SliTaz package receipt.

PACKAGE="wpa_supplicant"
-VERSION="1.1"
+VERSION="2.1"
CATEGORY="utilities"
SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
MAINTAINER="0dddba11@googlemail.com"
@@ -57,20 +57,22 @@
$src/wpa_supplicant/dbus/dbus-wpa_supplicant.conf \
$fs/etc/dbus-1/system.d/wpa_supplicant.conf

- # Startup script and cleaned up wpa_supplicant.conf
- cp -a stuff/etc $fs
- # dont copy the original
- # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
+ # Startup script and cleaned up wpa_empty.conf
+ cp -a $stuff/etc $fs
+ cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc/wpa
}


3.
root@slitaz:/home/tux# head -15 /etc/init.d/wpa_supplicant
#!/bin/sh
# /etc/init.d/wpa_supplicant: Start, stop and restart wpa_supplicant deamon
# on SliTaz, at boot time or with the command line.
#
# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
#
. /etc/init.d/rc.functions
. /etc/daemons.conf

NAME=wpa_supplicant
DESC="wpa_supplicant deamon"
DAEMON=/usr/bin/wpa_supplicant
OPTIONS=$WPA_OPTIONS
PIDFILE=/var/run/wpa_supplicant.pid


4.
root@slitaz:/home/tux# tail -2 /etc/daemons.conf
# wpa_supplicant daemon options
WPA_OPTIONS="-B -u -D wext -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf ; echo $WIFI_INTERFACE)"


5.
root@slitaz:/home/tux# ps | grep wpa
1675 root 0:00 /usr/bin/wpa_supplicant -B -u -D wext -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i wlan0
1955 root 0:00 grep wpa
root@slitaz:/home/tux#