summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndre Herbst <moormaster@gmx.net>2011-06-05 22:13:45 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-05 22:13:45 +0200
commit8d47849360732ef32cc77f65961fa8797a202d78 (patch)
tree29c520d61acda86d2de8904d87911a8384f7ce5a /src
parent2756a60e20f78c2b4d8a35adfb0c38b2ecf9e20e (diff)
downloadnetctl-8d47849360732ef32cc77f65961fa8797a202d78.tar.gz
netctl-8d47849360732ef32cc77f65961fa8797a202d78.tar.xz
Add support for specificying explicit BSSID (FS#24582)
Diffstat (limited to 'src')
-rw-r--r--src/8021x12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/8021x b/src/8021x
index f510944..cb49199 100644
--- a/src/8021x
+++ b/src/8021x
@@ -71,9 +71,17 @@ make_wpa_config() {
else
echo "ssid=\"$ESSID\" \nkey_mgmt=NONE \nwep_key0=$KEY \nwep_tx_keyidx=0"
fi
+
+ if [[ -n "$AP" ]]; then
+ echo " bssid=$AP"
+ fi
;;
none|none-old)
echo "ssid=\"$ESSID\" \nkey_mgmt=NONE"
+
+ if [[ -n "$AP" ]]; then
+ echo " bssid=$AP"
+ fi
;;
wpa)
if [[ "${#KEY}" -eq 64 ]]; then
@@ -81,6 +89,10 @@ make_wpa_config() {
else
echo "proto=RSN WPA\n ssid=\"$ESSID\" \npsk=\"$KEY\""
fi
+
+ if [[ -n "$AP" ]]; then
+ echo " bssid=$AP"
+ fi
;;
wpa-configsection)
echo "$CONFIGSECTION"