summaryrefslogtreecommitdiffstats
path: root/src/8021x
diff options
context:
space:
mode:
Diffstat (limited to 'src/8021x')
-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"