diff options
author | Andre Herbst <moormaster@gmx.net> | 2011-06-05 22:13:45 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-05 22:13:45 +0200 |
commit | 8d47849360732ef32cc77f65961fa8797a202d78 (patch) | |
tree | 29c520d61acda86d2de8904d87911a8384f7ce5a | |
parent | 2756a60e20f78c2b4d8a35adfb0c38b2ecf9e20e (diff) | |
download | netctl-8d47849360732ef32cc77f65961fa8797a202d78.tar.gz netctl-8d47849360732ef32cc77f65961fa8797a202d78.tar.xz |
Add support for specificying explicit BSSID (FS#24582)
-rw-r--r-- | src/8021x | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |