summaryrefslogtreecommitdiffstats
path: root/src/8021x
diff options
context:
space:
mode:
authorhamelg <hamelg@laposte.net>2011-06-06 08:07:56 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-06 08:08:43 +0200
commit2283c352ac2cc829ffc8c75e12c335369f94acde (patch)
treec3f8a4a48e919f3b2ca9754e1d6b77bcbb851e8c /src/8021x
parent9f1c0a2725d55d05a506427d4c253efbf4738e71 (diff)
downloadnetctl-2283c352ac2cc829ffc8c75e12c335369f94acde.tar.gz
netctl-2283c352ac2cc829ffc8c75e12c335369f94acde.tar.xz
Add support for ad-hoc Wi-Fi (FS#19683)
Diffstat (limited to 'src/8021x')
-rw-r--r--src/8021x2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/8021x b/src/8021x
index 6f0edf2..2c49334 100644
--- a/src/8021x
+++ b/src/8021x
@@ -59,6 +59,7 @@ make_wpa_config_file() {
echo "ctrl_interface=/var/run/wpa_supplicant" >> "$WPA_CONF/wpa.conf" # we know $WPA_CONF now has no spaces, but it may have other nasty chars, so still needs to be quoted
echo "ctrl_interface_group=${WPA_GROUP:-wheel}" >> "$WPA_CONF/wpa.conf"
[[ $WPA_COUNTRY ]] && echo "country=$WPA_COUNTRY" >> "$WPA_CONF/wpa.conf"
+ [[ -n "$ADHOC" ]] && echo "ap_scan=2" >> "$WPA_CONF/wpa.conf"
echo "$WPA_CONF/wpa.conf"
}
@@ -70,6 +71,7 @@ make_wpa_config() {
if [[ -n "$AP" ]]; then
echo "bssid=$AP"
fi
+ [[ -n "$ADHOC" ]] && echo "mode=1"
;;
wpa-configsection)
echo "$CONFIGSECTION"