diff --git a/create_ap b/create_ap index c1edfa0..5cdbbf9 100755 --- a/create_ap +++ b/create_ap @@ -121,6 +121,7 @@ WPA_VERSION=1+2 ETC_HOSTS=0 HIDDEN=0 SHARE_METHOD=nat +DRIVER=nl80211 CONFDIR= VWIFI_IFACE= @@ -218,6 +219,11 @@ while :; do SHARE_METHOD="$1" shift ;; + --driver) + shift + DRIVER="$1" + shift + ;; --) shift break @@ -333,7 +339,7 @@ networkmanager_add_unmanaged ${VWIFI_IFACE} cat << EOF > $CONFDIR/hostapd.conf ssid=${SSID} interface=${VWIFI_IFACE} -driver=nl80211 +driver=${DRIVER} hw_mode=g channel=${CHANNEL}