diff options
-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" |