diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/8021x | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" |