make hosted able to use rtl871xdrv or other drivers

there are devices that are not supported as nl80211 … this change makes possible to specify `--driver rtl871xdrv` when/if needed
This commit is contained in:
Andrea Giammarchi 2013-12-14 17:18:54 -08:00
parent 94bbf1d030
commit ba9ffebcad

View File

@ -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}