commit ba9ffebcadd6d58b57caf2724115b7751f76a28d
parent 94bbf1d0309786f73ce763658bd6ac85aef306e8
Author: Andrea Giammarchi <andrea.giammarchi@gmail.com>
Date: Sat, 14 Dec 2013 17:18:54 -0800
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
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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}